You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/v1alpha2/llamastackdistribution_types.go
+3-18Lines changed: 3 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -106,11 +106,6 @@ type ProvidersSpec struct {
106
106
// +kubebuilder:validation:MinItems=1
107
107
// +kubebuilder:validation:XValidation:rule="self.size() <= 1 || self.all(p, has(p.id))",message="each provider must have an explicit id when multiple providers are specified"
// +kubebuilder:validation:XValidation:rule="self.size() <= 1 || self.all(p, has(p.id))",message="each provider must have an explicit id when multiple providers are specified"
// ResourcesSpec defines declarative registration of models, tools, and shields.
150
+
// ResourcesSpec defines declarative registration of modelsand tools.
156
151
typeResourcesSpecstruct {
157
152
// Models to register with inference providers.
158
153
// +optional
@@ -163,11 +158,6 @@ type ResourcesSpec struct {
163
158
// +kubebuilder:validation:MinItems=1
164
159
// +kubebuilder:validation:items:MinLength=1
165
160
Tools []string`json:"tools,omitempty"`
166
-
// Shields are safety shield names to register with the safety provider.
167
-
// +optional
168
-
// +kubebuilder:validation:MinItems=1
169
-
// +kubebuilder:validation:items:MinLength=1
170
-
Shields []string`json:"shields,omitempty"`
171
161
}
172
162
173
163
// KVStorageSpec configures the key-value storage backend.
@@ -423,16 +413,11 @@ type ExternalProvidersSpec struct {
423
413
// +kubebuilder:validation:XValidation:rule="!has(self.overrideConfig) || !has(self.storage)",message="overrideConfig and storage are mutually exclusive"
424
414
// +kubebuilder:validation:XValidation:rule="!has(self.overrideConfig) || !has(self.disabled)",message="overrideConfig and disabled are mutually exclusive"
425
415
// +kubebuilder:validation:XValidation:rule="!has(self.providers) || !has(self.disabled) || !self.disabled.exists(d, d == 'inference') || !has(self.providers.inference) || self.providers.inference.size() == 0",message="inference cannot be both in providers and disabled"
426
-
// +kubebuilder:validation:XValidation:rule="!has(self.providers) || !has(self.disabled) || !self.disabled.exists(d, d == 'safety') || !has(self.providers.safety) || self.providers.safety.size() == 0",message="safety cannot be both in providers and disabled"
427
416
// +kubebuilder:validation:XValidation:rule="!has(self.providers) || !has(self.disabled) || !self.disabled.exists(d, d == 'vector_io') || !has(self.providers.vectorIo) || self.providers.vectorIo.size() == 0",message="vector_io cannot be both in providers and disabled"
428
417
// +kubebuilder:validation:XValidation:rule="!has(self.providers) || !has(self.disabled) || !self.disabled.exists(d, d == 'tool_runtime') || !has(self.providers.toolRuntime) || self.providers.toolRuntime.size() == 0",message="tool_runtime cannot be both in providers and disabled"
429
418
// +kubebuilder:validation:XValidation:rule="!has(self.providers) || !has(self.disabled) || !self.disabled.exists(d, d == 'telemetry') || !has(self.providers.telemetry) || self.providers.telemetry.size() == 0",message="telemetry cannot be both in providers and disabled"
430
419
//
431
420
//nolint:lll // kubebuilder markers cannot be split across lines.
432
-
//nolint:lll // kubebuilder markers cannot be split across lines.
433
-
//nolint:lll // kubebuilder markers cannot be split across lines.
434
-
//nolint:lll // kubebuilder markers cannot be split across lines.
435
-
//nolint:lll // kubebuilder markers cannot be split across lines.
436
421
typeLlamaStackDistributionSpecstruct {
437
422
// Distribution identifies the LlamaStack distribution to deploy.
438
423
// +kubebuilder:validation:Required
@@ -441,7 +426,7 @@ type LlamaStackDistributionSpec struct {
0 commit comments