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/v1alpha1/olsconfig_types.go
+26-1Lines changed: 26 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ import (
21
21
corev1 "k8s.io/api/core/v1"
22
22
resource "k8s.io/apimachinery/pkg/api/resource"
23
23
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
24
+
runtime "k8s.io/apimachinery/pkg/runtime"
24
25
)
25
26
26
27
// OLSConfigSpec defines the desired state of OLSConfig
@@ -443,6 +444,11 @@ type ModelSpec struct {
443
444
// ProviderSpec defines the desired state of LLM provider.
444
445
// +kubebuilder:validation:XValidation:message="'deploymentName' must be specified for 'azure_openai' provider",rule="self.type != \"azure_openai\" || self.deploymentName != \"\""
445
446
// +kubebuilder:validation:XValidation:message="'projectID' must be specified for 'watsonx' provider",rule="self.type != \"watsonx\" || self.projectID != \"\""
447
+
// +kubebuilder:validation:XValidation:message="'providerType' and 'config' must be used together in llamaStackGeneric mode",rule="!has(self.providerType) || has(self.config)"
448
+
// +kubebuilder:validation:XValidation:message="'config' requires 'providerType' to be set",rule="!has(self.config) || has(self.providerType)"
0 commit comments