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
+17-5Lines changed: 17 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -72,19 +72,22 @@ type NIMSource struct {
72
72
73
73
// +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
74
typeDSHFCommonFieldsstruct {
75
-
// modelName is the name of the model
75
+
// ModelName is the name of the model
76
76
ModelName*string`json:"modelName,omitempty"`
77
-
// datasetName is the name of the dataset
77
+
// DatasetName is the name of the dataset
78
78
DatasetName*string`json:"datasetName,omitempty"`
79
-
// authSecret is the name of the secret containing the "HF_TOKEN" token
79
+
// AuthSecret is the name of the secret containing the "HF_TOKEN" token
80
80
// +kubebuilder:validation:MinLength=1
81
81
AuthSecretstring`json:"authSecret"`
82
-
// modelPuller is the containerized huggingface-cli image to pull the data
82
+
// ModelPuller is the containerized huggingface-cli image to pull the data
83
83
// +kubebuilder:validation:MinLength=1
84
84
ModelPullerstring`json:"modelPuller"`
85
-
// pullSecret is the name of the image pull secret for the modelPuller image
85
+
// PullSecret is the name of the image pull secret for the modelPuller image
86
86
// +kubebuilder:validation:MinLength=1
87
87
PullSecretstring`json:"pullSecret"`
88
+
// Revision is the revision of the object to be cached. This is either a commit hash, branch name or tag.
89
+
// +kubebuilder:validation:MinLength=1
90
+
Revision*string`json:"revision,omitempty"`
88
91
}
89
92
90
93
typeNemoDataStoreSourcestruct {
@@ -156,6 +159,8 @@ type NIMCacheStorage struct {
156
159
// PersistentVolumeClaim is the pvc volume used for caching NIM
157
160
PVCPersistentVolumeClaim`json:"pvc,omitempty"`
158
161
// HostPath is the host path volume for caching NIM
0 commit comments