diff --git a/api/v1alpha1/clusterconfig_types.go b/api/v1alpha1/clusterconfig_types.go index 97d9cb739..8e47a0fcb 100644 --- a/api/v1alpha1/clusterconfig_types.go +++ b/api/v1alpha1/clusterconfig_types.go @@ -362,6 +362,7 @@ type ImageRegistry struct { type User struct { // Name specifies the user name. // +kubebuilder:validation:Required + // +kubebuilder:validation:MinLength=1 // +kubebuilder:validation:MaxLength=256 Name string `json:"name"` @@ -371,15 +372,16 @@ type User struct { // An empty string is not marshalled, because it is not a valid value. // +kubebuilder:validation:Optional // +kubebuilder:validation:MinLength=1 - // +kubebuilder:validation:MaxLength=106 + // +kubebuilder:validation:MaxLength=256 HashedPassword string `json:"hashedPassword,omitempty"` // SSHAuthorizedKeys is a list of public SSH keys to write to the // machine. Use the corresponding private SSH keys to authenticate. See SSH // documentation for instructions to create a key pair. // +kubebuilder:validation:Optional - // +kubebuilder:validation:MaxItems=32 - // +kubebuilder:validation:items:MaxLength=256 + // +kubebuilder:validation:MaxItems=100 + // +kubebuilder:validation:items:MinLength=1 + // +kubebuilder:validation:items:MaxLength=2048 SSHAuthorizedKeys []string `json:"sshAuthorizedKeys,omitempty"` // Sudo is a sudo user specification, formatted as described in the sudo @@ -387,7 +389,7 @@ type User struct { // An empty string is not marshalled, because it is not a valid value. // +kubebuilder:validation:Optional // +kubebuilder:validation:MinLength=1 - // +kubebuilder:validation:MaxLength=1024 + // +kubebuilder:validation:MaxLength=256 Sudo string `json:"sudo,omitempty"` } diff --git a/api/v1alpha1/crds/caren.nutanix.com_awsclusterconfigs.yaml b/api/v1alpha1/crds/caren.nutanix.com_awsclusterconfigs.yaml index 3cab85c8d..c67160bb4 100644 --- a/api/v1alpha1/crds/caren.nutanix.com_awsclusterconfigs.yaml +++ b/api/v1alpha1/crds/caren.nutanix.com_awsclusterconfigs.yaml @@ -804,12 +804,13 @@ spec: by the crypt(5) man page. See your distribution's documentation for instructions to create a hashed password. An empty string is not marshalled, because it is not a valid value. - maxLength: 106 + maxLength: 256 minLength: 1 type: string name: description: Name specifies the user name. maxLength: 256 + minLength: 1 type: string sshAuthorizedKeys: description: |- @@ -817,16 +818,17 @@ spec: machine. Use the corresponding private SSH keys to authenticate. See SSH documentation for instructions to create a key pair. items: - maxLength: 256 + maxLength: 2048 + minLength: 1 type: string - maxItems: 32 + maxItems: 100 type: array sudo: description: |- Sudo is a sudo user specification, formatted as described in the sudo documentation. An empty string is not marshalled, because it is not a valid value. - maxLength: 1024 + maxLength: 256 minLength: 1 type: string required: diff --git a/api/v1alpha1/crds/caren.nutanix.com_dockerclusterconfigs.yaml b/api/v1alpha1/crds/caren.nutanix.com_dockerclusterconfigs.yaml index eb445a048..60a2fe53a 100644 --- a/api/v1alpha1/crds/caren.nutanix.com_dockerclusterconfigs.yaml +++ b/api/v1alpha1/crds/caren.nutanix.com_dockerclusterconfigs.yaml @@ -605,12 +605,13 @@ spec: by the crypt(5) man page. See your distribution's documentation for instructions to create a hashed password. An empty string is not marshalled, because it is not a valid value. - maxLength: 106 + maxLength: 256 minLength: 1 type: string name: description: Name specifies the user name. maxLength: 256 + minLength: 1 type: string sshAuthorizedKeys: description: |- @@ -618,16 +619,17 @@ spec: machine. Use the corresponding private SSH keys to authenticate. See SSH documentation for instructions to create a key pair. items: - maxLength: 256 + maxLength: 2048 + minLength: 1 type: string - maxItems: 32 + maxItems: 100 type: array sudo: description: |- Sudo is a sudo user specification, formatted as described in the sudo documentation. An empty string is not marshalled, because it is not a valid value. - maxLength: 1024 + maxLength: 256 minLength: 1 type: string required: diff --git a/api/v1alpha1/crds/caren.nutanix.com_eksclusterconfigs.yaml b/api/v1alpha1/crds/caren.nutanix.com_eksclusterconfigs.yaml index ab9ae4c2d..6f39b3e63 100644 --- a/api/v1alpha1/crds/caren.nutanix.com_eksclusterconfigs.yaml +++ b/api/v1alpha1/crds/caren.nutanix.com_eksclusterconfigs.yaml @@ -479,12 +479,13 @@ spec: by the crypt(5) man page. See your distribution's documentation for instructions to create a hashed password. An empty string is not marshalled, because it is not a valid value. - maxLength: 106 + maxLength: 256 minLength: 1 type: string name: description: Name specifies the user name. maxLength: 256 + minLength: 1 type: string sshAuthorizedKeys: description: |- @@ -492,16 +493,17 @@ spec: machine. Use the corresponding private SSH keys to authenticate. See SSH documentation for instructions to create a key pair. items: - maxLength: 256 + maxLength: 2048 + minLength: 1 type: string - maxItems: 32 + maxItems: 100 type: array sudo: description: |- Sudo is a sudo user specification, formatted as described in the sudo documentation. An empty string is not marshalled, because it is not a valid value. - maxLength: 1024 + maxLength: 256 minLength: 1 type: string required: diff --git a/api/v1alpha1/crds/caren.nutanix.com_genericclusterconfigs.yaml b/api/v1alpha1/crds/caren.nutanix.com_genericclusterconfigs.yaml index c0c5e4278..2de0dd64e 100644 --- a/api/v1alpha1/crds/caren.nutanix.com_genericclusterconfigs.yaml +++ b/api/v1alpha1/crds/caren.nutanix.com_genericclusterconfigs.yaml @@ -159,12 +159,13 @@ spec: by the crypt(5) man page. See your distribution's documentation for instructions to create a hashed password. An empty string is not marshalled, because it is not a valid value. - maxLength: 106 + maxLength: 256 minLength: 1 type: string name: description: Name specifies the user name. maxLength: 256 + minLength: 1 type: string sshAuthorizedKeys: description: |- @@ -172,16 +173,17 @@ spec: machine. Use the corresponding private SSH keys to authenticate. See SSH documentation for instructions to create a key pair. items: - maxLength: 256 + maxLength: 2048 + minLength: 1 type: string - maxItems: 32 + maxItems: 100 type: array sudo: description: |- Sudo is a sudo user specification, formatted as described in the sudo documentation. An empty string is not marshalled, because it is not a valid value. - maxLength: 1024 + maxLength: 256 minLength: 1 type: string required: diff --git a/api/v1alpha1/crds/caren.nutanix.com_nutanixclusterconfigs.yaml b/api/v1alpha1/crds/caren.nutanix.com_nutanixclusterconfigs.yaml index 49aa3f6dd..b9979c1c4 100644 --- a/api/v1alpha1/crds/caren.nutanix.com_nutanixclusterconfigs.yaml +++ b/api/v1alpha1/crds/caren.nutanix.com_nutanixclusterconfigs.yaml @@ -892,12 +892,13 @@ spec: by the crypt(5) man page. See your distribution's documentation for instructions to create a hashed password. An empty string is not marshalled, because it is not a valid value. - maxLength: 106 + maxLength: 256 minLength: 1 type: string name: description: Name specifies the user name. maxLength: 256 + minLength: 1 type: string sshAuthorizedKeys: description: |- @@ -905,16 +906,17 @@ spec: machine. Use the corresponding private SSH keys to authenticate. See SSH documentation for instructions to create a key pair. items: - maxLength: 256 + maxLength: 2048 + minLength: 1 type: string - maxItems: 32 + maxItems: 100 type: array sudo: description: |- Sudo is a sudo user specification, formatted as described in the sudo documentation. An empty string is not marshalled, because it is not a valid value. - maxLength: 1024 + maxLength: 256 minLength: 1 type: string required: