@@ -545,21 +545,21 @@ type ExternalEtcd struct {
545545 // +required
546546 // +kubebuilder:validation:MinLength=1
547547 // +kubebuilder:validation:MaxLength=512
548- CAFile string `json:"caFile"`
548+ CAFile string `json:"caFile,omitempty "`
549549
550550 // certFile is an SSL certification file used to secure etcd communication.
551551 // Required if using a TLS connection.
552552 // +required
553553 // +kubebuilder:validation:MinLength=1
554554 // +kubebuilder:validation:MaxLength=512
555- CertFile string `json:"certFile"`
555+ CertFile string `json:"certFile,omitempty "`
556556
557557 // keyFile is an SSL key file used to secure etcd communication.
558558 // Required if using a TLS connection.
559559 // +required
560560 // +kubebuilder:validation:MinLength=1
561561 // +kubebuilder:validation:MaxLength=512
562- KeyFile string `json:"keyFile"`
562+ KeyFile string `json:"keyFile,omitempty "`
563563}
564564
565565// JoinConfiguration contains elements describing a particular node.
@@ -685,7 +685,7 @@ type FileDiscovery struct {
685685 // +required
686686 // +kubebuilder:validation:MinLength=1
687687 // +kubebuilder:validation:MaxLength=512
688- KubeConfigPath string `json:"kubeConfigPath"`
688+ KubeConfigPath string `json:"kubeConfigPath,omitempty "`
689689
690690 // kubeConfig is used (optionally) to generate a KubeConfig based on the KubeadmConfig's information.
691691 // The file is generated at the path specified in KubeConfigPath.
@@ -785,7 +785,7 @@ type KubeConfigAuthProvider struct {
785785 // +required
786786 // +kubebuilder:validation:MinLength=1
787787 // +kubebuilder:validation:MaxLength=256
788- Name string `json:"name"`
788+ Name string `json:"name,omitempty "`
789789
790790 // config holds the parameters for the authentication plugin.
791791 // +optional
@@ -802,7 +802,7 @@ type KubeConfigAuthExec struct {
802802 // +required
803803 // +kubebuilder:validation:MinLength=1
804804 // +kubebuilder:validation:MaxLength=1024
805- Command string `json:"command"`
805+ Command string `json:"command,omitempty "`
806806
807807 // args is the arguments to pass to the command when executing it.
808808 // +optional
@@ -846,12 +846,13 @@ type KubeConfigAuthExecEnv struct {
846846 // +required
847847 // +kubebuilder:validation:MinLength=1
848848 // +kubebuilder:validation:MaxLength=512
849- Name string `json:"name"`
849+ Name string `json:"name,omitempty"`
850+
850851 // value of the environment variable
851852 // +required
852853 // +kubebuilder:validation:MinLength=1
853854 // +kubebuilder:validation:MaxLength=512
854- Value string `json:"value"`
855+ Value string `json:"value,omitempty "`
855856}
856857
857858// HostPathMount contains elements describing volumes that are mounted from the
@@ -861,21 +862,25 @@ type HostPathMount struct {
861862 // +required
862863 // +kubebuilder:validation:MinLength=1
863864 // +kubebuilder:validation:MaxLength=512
864- Name string `json:"name"`
865+ Name string `json:"name,omitempty"`
866+
865867 // hostPath is the path in the host that will be mounted inside
866868 // the pod.
867869 // +required
868870 // +kubebuilder:validation:MinLength=1
869871 // +kubebuilder:validation:MaxLength=512
870- HostPath string `json:"hostPath"`
872+ HostPath string `json:"hostPath,omitempty"`
873+
871874 // mountPath is the path inside the pod where hostPath will be mounted.
872875 // +required
873876 // +kubebuilder:validation:MinLength=1
874877 // +kubebuilder:validation:MaxLength=512
875- MountPath string `json:"mountPath"`
878+ MountPath string `json:"mountPath,omitempty"`
879+
876880 // readOnly controls write access to the volume
877881 // +optional
878882 ReadOnly * bool `json:"readOnly,omitempty"`
883+
879884 // pathType is the type of the HostPath.
880885 // +optional
881886 PathType corev1.HostPathType `json:"pathType,omitempty"`
@@ -963,7 +968,7 @@ type Arg struct {
963968 // +required
964969 // +kubebuilder:validation:MinLength=1
965970 // +kubebuilder:validation:MaxLength=256
966- Name string `json:"name"`
971+ Name string `json:"name,omitempty "`
967972
968973 // value is the Value of the extraArg.
969974 // +required
0 commit comments