kubeflowmodelregistrysource

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 30 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const Type catalogcollector.ComponentType = "kubeflowmodelregistry"

Type is the component type for the Kubeflow Model Registry source.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() catalogcollector.SourceFactory

NewFactory returns a SourceFactory for the Kubeflow Model Registry source.

Types

type AuthConfig

type AuthConfig struct {
	// Authenticator is the component ID of the extension that provides HTTP
	// authentication, for example "bearertokenauth/model-registry".
	Authenticator string `json:"authenticator"`
}

AuthConfig holds a reference to an authentication extension used by this source.

type Config

type Config struct {
	// Endpoint is the absolute HTTP or HTTPS base URL of the Model Registry
	// REST API, for example
	// "https://model-registry-rhoai-rest.apps.example.com".
	Endpoint string `json:"endpoint"`

	// Catalog is the name of the target Flightctl Catalog resource.
	Catalog string `json:"catalog"`

	// PollInterval is the wait between successive successful collection
	// cycles. Defaults to 5m.
	PollInterval *util.Duration `json:"pollInterval,omitempty"`

	// PageSize is the number of items requested per paginated API call.
	// Zero selects the default of 100.
	PageSize int `json:"pageSize,omitempty"`

	// RequestTimeout bounds a single HTTP request. Defaults to 30s.
	RequestTimeout *util.Duration `json:"requestTimeout,omitempty"`

	// CollectionTimeout bounds an entire collection cycle, including all
	// pagination and normalization. Defaults to 5m.
	CollectionTimeout *util.Duration `json:"collectionTimeout,omitempty"`

	// Selection configures server-side filtering for registered models and
	// model versions. When omitted, the default LIVE-state filters apply.
	Selection *SelectionConfig `json:"selection,omitempty"`

	// Auth optionally references an authentication extension. When omitted,
	// requests are sent without authentication.
	Auth *AuthConfig `json:"auth,omitempty"`

	// CertificateAuthority is the path to a PEM CA bundle used to verify the
	// registry TLS certificate. System roots are used when omitted.
	CertificateAuthority string `json:"certificateAuthority,omitempty"`

	// InsecureSkipVerify disables TLS certificate verification.
	// This option is intended for development only.
	InsecureSkipVerify bool `json:"insecureSkipVerify,omitempty"`

	// Backoff holds the bounded exponential backoff parameters used after
	// failed collection or downstream-consumption attempts.
	Backoff pollsource.BackoffConfig `json:"backoff,omitempty"`
}

Config holds the provider-specific configuration for the Kubeflow Model Registry source. It implements config.Validator.

func (*Config) Validate

func (c *Config) Validate() error

Validate implements config.Validator.

type SelectionConfig

type SelectionConfig struct {
	// ModelFilter is passed as filterQuery to the registered-models endpoint.
	// When nil, the default "state = 'LIVE'" is used.
	// When explicitly set to "", filterQuery is omitted from the request.
	ModelFilter *string `json:"modelFilter,omitempty"`

	// VersionFilter is passed as filterQuery to the model-versions endpoint.
	// When nil, the default "state = 'LIVE'" is used.
	// When explicitly set to "", filterQuery is omitted from the request.
	VersionFilter *string `json:"versionFilter,omitempty"`
}

SelectionConfig configures server-side filtering for registered models and model versions. Pointer fields distinguish omitted (nil -> use default) from explicitly empty (ptr to "" -> disable filtering).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL