Documentation
¶
Index ¶
Constants ¶
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.
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).