@@ -545,21 +545,21 @@ type ExternalEtcd struct {
545
545
// +required
546
546
// +kubebuilder:validation:MinLength=1
547
547
// +kubebuilder:validation:MaxLength=512
548
- CAFile string `json:"caFile"`
548
+ CAFile string `json:"caFile,omitempty "`
549
549
550
550
// certFile is an SSL certification file used to secure etcd communication.
551
551
// Required if using a TLS connection.
552
552
// +required
553
553
// +kubebuilder:validation:MinLength=1
554
554
// +kubebuilder:validation:MaxLength=512
555
- CertFile string `json:"certFile"`
555
+ CertFile string `json:"certFile,omitempty "`
556
556
557
557
// keyFile is an SSL key file used to secure etcd communication.
558
558
// Required if using a TLS connection.
559
559
// +required
560
560
// +kubebuilder:validation:MinLength=1
561
561
// +kubebuilder:validation:MaxLength=512
562
- KeyFile string `json:"keyFile"`
562
+ KeyFile string `json:"keyFile,omitempty "`
563
563
}
564
564
565
565
// JoinConfiguration contains elements describing a particular node.
@@ -685,7 +685,7 @@ type FileDiscovery struct {
685
685
// +required
686
686
// +kubebuilder:validation:MinLength=1
687
687
// +kubebuilder:validation:MaxLength=512
688
- KubeConfigPath string `json:"kubeConfigPath"`
688
+ KubeConfigPath string `json:"kubeConfigPath,omitempty "`
689
689
690
690
// kubeConfig is used (optionally) to generate a KubeConfig based on the KubeadmConfig's information.
691
691
// The file is generated at the path specified in KubeConfigPath.
@@ -785,7 +785,7 @@ type KubeConfigAuthProvider struct {
785
785
// +required
786
786
// +kubebuilder:validation:MinLength=1
787
787
// +kubebuilder:validation:MaxLength=256
788
- Name string `json:"name"`
788
+ Name string `json:"name,omitempty "`
789
789
790
790
// config holds the parameters for the authentication plugin.
791
791
// +optional
@@ -802,7 +802,7 @@ type KubeConfigAuthExec struct {
802
802
// +required
803
803
// +kubebuilder:validation:MinLength=1
804
804
// +kubebuilder:validation:MaxLength=1024
805
- Command string `json:"command"`
805
+ Command string `json:"command,omitempty "`
806
806
807
807
// args is the arguments to pass to the command when executing it.
808
808
// +optional
@@ -846,12 +846,13 @@ type KubeConfigAuthExecEnv struct {
846
846
// +required
847
847
// +kubebuilder:validation:MinLength=1
848
848
// +kubebuilder:validation:MaxLength=512
849
- Name string `json:"name"`
849
+ Name string `json:"name,omitempty"`
850
+
850
851
// value of the environment variable
851
852
// +required
852
853
// +kubebuilder:validation:MinLength=1
853
854
// +kubebuilder:validation:MaxLength=512
854
- Value string `json:"value"`
855
+ Value string `json:"value,omitempty "`
855
856
}
856
857
857
858
// HostPathMount contains elements describing volumes that are mounted from the
@@ -861,21 +862,25 @@ type HostPathMount struct {
861
862
// +required
862
863
// +kubebuilder:validation:MinLength=1
863
864
// +kubebuilder:validation:MaxLength=512
864
- Name string `json:"name"`
865
+ Name string `json:"name,omitempty"`
866
+
865
867
// hostPath is the path in the host that will be mounted inside
866
868
// the pod.
867
869
// +required
868
870
// +kubebuilder:validation:MinLength=1
869
871
// +kubebuilder:validation:MaxLength=512
870
- HostPath string `json:"hostPath"`
872
+ HostPath string `json:"hostPath,omitempty"`
873
+
871
874
// mountPath is the path inside the pod where hostPath will be mounted.
872
875
// +required
873
876
// +kubebuilder:validation:MinLength=1
874
877
// +kubebuilder:validation:MaxLength=512
875
- MountPath string `json:"mountPath"`
878
+ MountPath string `json:"mountPath,omitempty"`
879
+
876
880
// readOnly controls write access to the volume
877
881
// +optional
878
882
ReadOnly * bool `json:"readOnly,omitempty"`
883
+
879
884
// pathType is the type of the HostPath.
880
885
// +optional
881
886
PathType corev1.HostPathType `json:"pathType,omitempty"`
@@ -963,7 +968,7 @@ type Arg struct {
963
968
// +required
964
969
// +kubebuilder:validation:MinLength=1
965
970
// +kubebuilder:validation:MaxLength=256
966
- Name string `json:"name"`
971
+ Name string `json:"name,omitempty "`
967
972
968
973
// value is the Value of the extraArg.
969
974
// +required
0 commit comments