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/apps/v1alpha1/nimcache_types.go
+41-22Lines changed: 41 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -58,13 +58,52 @@ type NIMCacheSpec struct {
58
58
Proxy*ProxySpec`json:"proxy,omitempty"`
59
59
}
60
60
61
+
// +kubebuilder:validation:XValidation:rule="(has(self.ngc) ? 1 : 0) + (has(self.dataStore) ? 1 : 0) + (has(self.externalDataStore) ? 1 : 0) == 1",message="Exactly one of ngc, dataStore, or externalDataStore must be defined"
61
62
// NIMSource defines the source for caching NIM model.
62
63
typeNIMSourcestruct {
63
64
// NGCSource represents models stored in NGC
64
65
NGC*NGCSource`json:"ngc,omitempty"`
65
66
66
-
// NGCSource represents models stored in NVIDIA DataStore service
// +kubebuilder:validation:XValidation:rule="(has(self.modelName) ? 1 : 0) + (has(self.datasetName) ? 1 : 0) == 1",message="Exactly one of modelName or datasetName must be defined"
74
+
typeDataStoreFieldsstruct {
75
+
// modelName is the name of the model
76
+
ModelName*string`json:"modelName,omitempty"`
77
+
// datasetName is the name of the dataset
78
+
DatasetName*string`json:"datasetName,omitempty"`
79
+
// authSecret is the name of the secret containing the "HF_TOKEN" token
80
+
// +kubebuilder:validation:MinLength=1
81
+
AuthSecretstring`json:"authSecret"`
82
+
// modelPuller is the containerized huggingface-cli image to pull the data
83
+
// +kubebuilder:validation:MinLength=1
84
+
ModelPullerstring`json:"modelPuller"`
85
+
// pullSecret is the name of the image pull secret for the modelPuller image
86
+
// +kubebuilder:validation:MinLength=1
87
+
PullSecretstring`json:"pullSecret,omitempty"`
88
+
}
89
+
90
+
typeNemoDataStoreSourcestruct {
91
+
// Endpoint is the HuggingFace endpoint from NeMo DataStore
0 commit comments