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
// extraEnvs is an extra set of environment variables to pass to the control plane component.
162
165
// Environment variables passed using ExtraEnvs will override any existing environment variables, or *_proxy environment variables that kubeadm adds by default.
163
166
// This option takes effect only on Kubernetes >=1.31.0.
164
167
// +optional
168
+
// +kubebuilder:validation:MaxItems=100
165
169
ExtraEnvs []EnvVar`json:"extraEnvs,omitempty"`
166
170
}
167
171
@@ -171,6 +175,7 @@ type APIServer struct {
171
175
172
176
// certSANs sets extra Subject Alternative Names for the API Server signing cert.
173
177
// +optional
178
+
// +kubebuilder:validation:MaxItems=100
174
179
CertSANs []string`json:"certSANs,omitempty"`
175
180
176
181
// timeoutForControlPlane controls the timeout that we use for API server to appear
@@ -245,6 +250,7 @@ type NodeRegistrationOptions struct {
245
250
// it will be defaulted to []v1.Taint{'node-role.kubernetes.io/master=""'}. If you don't want to taint your control-plane node, set this field to an
246
251
// empty slice, i.e. `taints: []` in the YAML file. This field is solely used for Node registration.
247
252
// +optional
253
+
// +kubebuilder:validation:MaxItems=100
248
254
Taints []corev1.Taint`json:"taints,omitempty"`
249
255
250
256
// kubeletExtraArgs passes through extra arguments to the kubelet. The arguments here are passed to the kubelet command line via the environment file
@@ -255,6 +261,7 @@ type NodeRegistrationOptions struct {
255
261
256
262
// ignorePreflightErrors provides a slice of pre-flight errors to be ignored when the current node is registered.
// imagePullPolicy specifies the policy for image pulling
@@ -361,10 +368,12 @@ type BootstrapToken struct {
361
368
// usages describes the ways in which this token can be used. Can by default be used
362
369
// for establishing bidirectional trust, but that can be changed here.
363
370
// +optional
371
+
// +kubebuilder:validation:MaxItems=100
364
372
Usages []string`json:"usages,omitempty"`
365
373
// groups specifies the extra groups that this token will authenticate as when/if
366
374
// used for authentication
367
375
// +optional
376
+
// +kubebuilder:validation:MaxItems=100
368
377
Groups []string`json:"groups,omitempty"`
369
378
}
370
379
@@ -401,20 +410,25 @@ type LocalEtcd struct {
401
410
// Environment variables passed using ExtraEnvs will override any existing environment variables, or *_proxy environment variables that kubeadm adds by default.
402
411
// This option takes effect only on Kubernetes >=1.31.0.
403
412
// +optional
413
+
// +kubebuilder:validation:MaxItems=100
404
414
ExtraEnvs []EnvVar`json:"extraEnvs,omitempty"`
405
415
406
416
// serverCertSANs sets extra Subject Alternative Names for the etcd server signing cert.
0 commit comments