Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions api/v1alpha1/clusterconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand All @@ -371,23 +372,24 @@ 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
// documentation.
// 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"`
}

Expand Down
10 changes: 6 additions & 4 deletions api/v1alpha1/crds/caren.nutanix.com_awsclusterconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -804,29 +804,31 @@ 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: |-
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.
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:
Expand Down
10 changes: 6 additions & 4 deletions api/v1alpha1/crds/caren.nutanix.com_dockerclusterconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -605,29 +605,31 @@ 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: |-
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.
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:
Expand Down
10 changes: 6 additions & 4 deletions api/v1alpha1/crds/caren.nutanix.com_eksclusterconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -479,29 +479,31 @@ 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: |-
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.
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:
Expand Down
10 changes: 6 additions & 4 deletions api/v1alpha1/crds/caren.nutanix.com_genericclusterconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,29 +159,31 @@ 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: |-
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.
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:
Expand Down
10 changes: 6 additions & 4 deletions api/v1alpha1/crds/caren.nutanix.com_nutanixclusterconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -892,29 +892,31 @@ 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: |-
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.
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:
Expand Down
Loading