Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 915fb78

Browse files
committed
fixup! feat: Add user configuration for all providers
Make username required
1 parent a1cd64f commit 915fb78

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

api/v1alpha1/clusterconfig_types.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ func (Users) VariableSchema() clusterv1.VariableSchema {
362362

363363
// User defines the input for a generated user in cloud-init.
364364
type User struct {
365-
// Name specifies the user name
365+
// Name specifies the user name.
366366
Name string `json:"name"`
367367

368368
// HashedPassword specifies a hashed password for the user. See your
@@ -387,7 +387,8 @@ type User struct {
387387
func (User) VariableSchema() clusterv1.VariableSchema {
388388
return clusterv1.VariableSchema{
389389
OpenAPIV3Schema: clusterv1.JSONSchemaProps{
390-
Type: "object",
390+
Type: "object",
391+
Required: []string{"name"},
391392
Properties: map[string]clusterv1.JSONSchemaProps{
392393
"name": {
393394
Description: "The username",

0 commit comments

Comments
 (0)