File tree Expand file tree Collapse file tree 14 files changed +258
-8
lines changed
deployments/helm/k8s-nim-operator/crds Expand file tree Collapse file tree 14 files changed +258
-8
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ type Autoscaling struct {
58
58
HPA HorizontalPodAutoscalerSpec `json:"hpa,omitempty"`
59
59
}
60
60
61
+ // HorizontalPodAutoscalerSpec defines the parameters required to setup HPA
61
62
type HorizontalPodAutoscalerSpec struct {
62
63
MinReplicas * int32 `json:"minReplicas,omitempty"`
63
64
MaxReplicas int32 `json:"maxReplicas"`
@@ -93,7 +94,16 @@ type IngressPath struct {
93
94
ServiceType string `json:"serviceType,omitempty"`
94
95
}
95
96
97
+ // Probe defines attributes for startup/liveness/readiness probes
96
98
type Probe struct {
97
99
Enabled * bool `json:"enabled,omitempty"`
98
100
Probe * corev1.Probe `json:"probe,omitempty"`
99
101
}
102
+
103
+ // CertConfig defines the configuration for custom certificates.
104
+ type CertConfig struct {
105
+ // Name of the ConfigMap containing the certificate data.
106
+ Name string `json:"name"`
107
+ // MountPath is the path where the certificates should be mounted in the container.
108
+ MountPath string `json:"mountPath"`
109
+ }
Original file line number Diff line number Diff line change @@ -41,8 +41,13 @@ type NIMCacheSpec struct {
41
41
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
42
42
// NodeSelectors are the node selector labels to schedule the caching job.
43
43
NodeSelectors map [string ]string `json:"gpuSelectors,omitempty"`
44
- UserID * int64 `json:"userID,omitempty"`
45
- GroupID * int64 `json:"groupID,omitempty"`
44
+ // UserID is the user ID for the caching job
45
+ UserID * int64 `json:"userID,omitempty"`
46
+ // GroupID is the group ID for the caching job
47
+ GroupID * int64 `json:"groupID,omitempty"`
48
+ // CertConfig is the name of the ConfigMap containing the custom certificates.
49
+ // for secure communication.
50
+ CertConfig * CertConfig `json:"certConfig,omitempty"`
46
51
}
47
52
48
53
// NIMSource defines the source for caching NIM model
Original file line number Diff line number Diff line change @@ -49,13 +49,31 @@ spec:
49
49
spec :
50
50
description : NIMCacheSpec defines the desired state of NIMCache
51
51
properties :
52
+ certConfig :
53
+ description : |-
54
+ CertConfig is the name of the ConfigMap containing the custom certificates.
55
+ for secure communication.
56
+ properties :
57
+ mountPath :
58
+ description : MountPath is the path where the certificates should
59
+ be mounted in the container.
60
+ type : string
61
+ name :
62
+ description : Name of the ConfigMap containing the certificate
63
+ data.
64
+ type : string
65
+ required :
66
+ - mountPath
67
+ - name
68
+ type : object
52
69
gpuSelectors :
53
70
additionalProperties :
54
71
type : string
55
72
description : NodeSelectors are the node selector labels to schedule
56
73
the caching job.
57
74
type : object
58
75
groupID :
76
+ description : GroupID is the group ID for the caching job
59
77
format : int64
60
78
type : integer
61
79
resources :
@@ -259,6 +277,7 @@ spec:
259
277
type : object
260
278
type : array
261
279
userID :
280
+ description : UserID is the user ID for the caching job
262
281
format : int64
263
282
type : integer
264
283
required :
Original file line number Diff line number Diff line change @@ -552,6 +552,8 @@ spec:
552
552
type : string
553
553
type : object
554
554
livenessProbe :
555
+ description : Probe defines attributes for startup/liveness/readiness
556
+ probes
555
557
properties :
556
558
enabled :
557
559
type : boolean
@@ -1108,6 +1110,8 @@ spec:
1108
1110
x-kubernetes-list-type : atomic
1109
1111
type : object
1110
1112
readinessProbe :
1113
+ description : Probe defines attributes for startup/liveness/readiness
1114
+ probes
1111
1115
properties :
1112
1116
enabled :
1113
1117
type : boolean
@@ -1335,6 +1339,8 @@ spec:
1335
1339
enabled :
1336
1340
type : boolean
1337
1341
hpa :
1342
+ description : HorizontalPodAutoscalerSpec defines the
1343
+ parameters required to setup HPA
1338
1344
properties :
1339
1345
behavior :
1340
1346
description : |-
@@ -1947,6 +1953,8 @@ spec:
1947
1953
type : object
1948
1954
type : object
1949
1955
startupProbe :
1956
+ description : Probe defines attributes for startup/liveness/readiness
1957
+ probes
1950
1958
properties :
1951
1959
enabled :
1952
1960
type : boolean
Original file line number Diff line number Diff line change @@ -502,6 +502,8 @@ spec:
502
502
type : string
503
503
type : object
504
504
livenessProbe :
505
+ description : Probe defines attributes for startup/liveness/readiness
506
+ probes
505
507
properties :
506
508
enabled :
507
509
type : boolean
@@ -1050,6 +1052,8 @@ spec:
1050
1052
x-kubernetes-list-type : atomic
1051
1053
type : object
1052
1054
readinessProbe :
1055
+ description : Probe defines attributes for startup/liveness/readiness
1056
+ probes
1053
1057
properties :
1054
1058
enabled :
1055
1059
type : boolean
@@ -1273,6 +1277,8 @@ spec:
1273
1277
enabled :
1274
1278
type : boolean
1275
1279
hpa :
1280
+ description : HorizontalPodAutoscalerSpec defines the parameters
1281
+ required to setup HPA
1276
1282
properties :
1277
1283
behavior :
1278
1284
description : |-
@@ -1867,6 +1873,8 @@ spec:
1867
1873
type : object
1868
1874
type : object
1869
1875
startupProbe :
1876
+ description : Probe defines attributes for startup/liveness/readiness
1877
+ probes
1870
1878
properties :
1871
1879
enabled :
1872
1880
type : boolean
Original file line number Diff line number Diff line change @@ -49,13 +49,31 @@ spec:
49
49
spec :
50
50
description : NIMCacheSpec defines the desired state of NIMCache
51
51
properties :
52
+ certConfig :
53
+ description : |-
54
+ CertConfig is the name of the ConfigMap containing the custom certificates.
55
+ for secure communication.
56
+ properties :
57
+ mountPath :
58
+ description : MountPath is the path where the certificates should
59
+ be mounted in the container.
60
+ type : string
61
+ name :
62
+ description : Name of the ConfigMap containing the certificate
63
+ data.
64
+ type : string
65
+ required :
66
+ - mountPath
67
+ - name
68
+ type : object
52
69
gpuSelectors :
53
70
additionalProperties :
54
71
type : string
55
72
description : NodeSelectors are the node selector labels to schedule
56
73
the caching job.
57
74
type : object
58
75
groupID :
76
+ description : GroupID is the group ID for the caching job
59
77
format : int64
60
78
type : integer
61
79
resources :
@@ -259,6 +277,7 @@ spec:
259
277
type : object
260
278
type : array
261
279
userID :
280
+ description : UserID is the user ID for the caching job
262
281
format : int64
263
282
type : integer
264
283
required :
Original file line number Diff line number Diff line change @@ -552,6 +552,8 @@ spec:
552
552
type : string
553
553
type : object
554
554
livenessProbe :
555
+ description : Probe defines attributes for startup/liveness/readiness
556
+ probes
555
557
properties :
556
558
enabled :
557
559
type : boolean
@@ -1108,6 +1110,8 @@ spec:
1108
1110
x-kubernetes-list-type : atomic
1109
1111
type : object
1110
1112
readinessProbe :
1113
+ description : Probe defines attributes for startup/liveness/readiness
1114
+ probes
1111
1115
properties :
1112
1116
enabled :
1113
1117
type : boolean
@@ -1335,6 +1339,8 @@ spec:
1335
1339
enabled :
1336
1340
type : boolean
1337
1341
hpa :
1342
+ description : HorizontalPodAutoscalerSpec defines the
1343
+ parameters required to setup HPA
1338
1344
properties :
1339
1345
behavior :
1340
1346
description : |-
@@ -1947,6 +1953,8 @@ spec:
1947
1953
type : object
1948
1954
type : object
1949
1955
startupProbe :
1956
+ description : Probe defines attributes for startup/liveness/readiness
1957
+ probes
1950
1958
properties :
1951
1959
enabled :
1952
1960
type : boolean
Original file line number Diff line number Diff line change @@ -502,6 +502,8 @@ spec:
502
502
type : string
503
503
type : object
504
504
livenessProbe :
505
+ description : Probe defines attributes for startup/liveness/readiness
506
+ probes
505
507
properties :
506
508
enabled :
507
509
type : boolean
@@ -1050,6 +1052,8 @@ spec:
1050
1052
x-kubernetes-list-type : atomic
1051
1053
type : object
1052
1054
readinessProbe :
1055
+ description : Probe defines attributes for startup/liveness/readiness
1056
+ probes
1053
1057
properties :
1054
1058
enabled :
1055
1059
type : boolean
@@ -1273,6 +1277,8 @@ spec:
1273
1277
enabled :
1274
1278
type : boolean
1275
1279
hpa :
1280
+ description : HorizontalPodAutoscalerSpec defines the parameters
1281
+ required to setup HPA
1276
1282
properties :
1277
1283
behavior :
1278
1284
description : |-
@@ -1867,6 +1873,8 @@ spec:
1867
1873
type : object
1868
1874
type : object
1869
1875
startupProbe :
1876
+ description : Probe defines attributes for startup/liveness/readiness
1877
+ probes
1870
1878
properties :
1871
1879
enabled :
1872
1880
type : boolean
Original file line number Diff line number Diff line change @@ -49,13 +49,31 @@ spec:
49
49
spec :
50
50
description : NIMCacheSpec defines the desired state of NIMCache
51
51
properties :
52
+ certConfig :
53
+ description : |-
54
+ CertConfig is the name of the ConfigMap containing the custom certificates.
55
+ for secure communication.
56
+ properties :
57
+ mountPath :
58
+ description : MountPath is the path where the certificates should
59
+ be mounted in the container.
60
+ type : string
61
+ name :
62
+ description : Name of the ConfigMap containing the certificate
63
+ data.
64
+ type : string
65
+ required :
66
+ - mountPath
67
+ - name
68
+ type : object
52
69
gpuSelectors :
53
70
additionalProperties :
54
71
type : string
55
72
description : NodeSelectors are the node selector labels to schedule
56
73
the caching job.
57
74
type : object
58
75
groupID :
76
+ description : GroupID is the group ID for the caching job
59
77
format : int64
60
78
type : integer
61
79
resources :
@@ -259,6 +277,7 @@ spec:
259
277
type : object
260
278
type : array
261
279
userID :
280
+ description : UserID is the user ID for the caching job
262
281
format : int64
263
282
type : integer
264
283
required :
Original file line number Diff line number Diff line change @@ -552,6 +552,8 @@ spec:
552
552
type : string
553
553
type : object
554
554
livenessProbe :
555
+ description : Probe defines attributes for startup/liveness/readiness
556
+ probes
555
557
properties :
556
558
enabled :
557
559
type : boolean
@@ -1108,6 +1110,8 @@ spec:
1108
1110
x-kubernetes-list-type : atomic
1109
1111
type : object
1110
1112
readinessProbe :
1113
+ description : Probe defines attributes for startup/liveness/readiness
1114
+ probes
1111
1115
properties :
1112
1116
enabled :
1113
1117
type : boolean
@@ -1335,6 +1339,8 @@ spec:
1335
1339
enabled :
1336
1340
type : boolean
1337
1341
hpa :
1342
+ description : HorizontalPodAutoscalerSpec defines the
1343
+ parameters required to setup HPA
1338
1344
properties :
1339
1345
behavior :
1340
1346
description : |-
@@ -1947,6 +1953,8 @@ spec:
1947
1953
type : object
1948
1954
type : object
1949
1955
startupProbe :
1956
+ description : Probe defines attributes for startup/liveness/readiness
1957
+ probes
1950
1958
properties :
1951
1959
enabled :
1952
1960
type : boolean
You can’t perform that action at this time.
0 commit comments