state: fix whitespace issue in generated docs

This commit is contained in:
Markus Rudy 2023-11-24 12:04:14 +01:00 committed by Markus Rudy
parent 9a62657b80
commit 42f0aa8eb1
2 changed files with 3 additions and 3 deletions

View File

@ -121,7 +121,7 @@ type Infrastructure struct {
InitSecret HexBytes `yaml:"initSecret"` InitSecret HexBytes `yaml:"initSecret"`
// description: | // description: |
// List of Subject Alternative Names (SANs) to add to the Kubernetes API server certificate. // List of Subject Alternative Names (SANs) to add to the Kubernetes API server certificate.
// If no SANs should be added, this field can be left empty. // If no SANs should be added, this field can be left empty.
APIServerCertSANs []string `yaml:"apiServerCertSANs"` APIServerCertSANs []string `yaml:"apiServerCertSANs"`
// description: | // description: |
// Name used in the cluster's named resources. // Name used in the cluster's named resources.

View File

@ -98,8 +98,8 @@ func init() {
InfrastructureDoc.Fields[4].Name = "apiServerCertSANs" InfrastructureDoc.Fields[4].Name = "apiServerCertSANs"
InfrastructureDoc.Fields[4].Type = "[]string" InfrastructureDoc.Fields[4].Type = "[]string"
InfrastructureDoc.Fields[4].Note = "" InfrastructureDoc.Fields[4].Note = ""
InfrastructureDoc.Fields[4].Description = "description: |\n List of Subject Alternative Names (SANs) to add to the Kubernetes API server certificate.\n If no SANs should be added, this field can be left empty.\n" InfrastructureDoc.Fields[4].Description = "List of Subject Alternative Names (SANs) to add to the Kubernetes API server certificate.\nIf no SANs should be added, this field can be left empty."
InfrastructureDoc.Fields[4].Comments[encoder.LineComment] = "description: |" InfrastructureDoc.Fields[4].Comments[encoder.LineComment] = "List of Subject Alternative Names (SANs) to add to the Kubernetes API server certificate."
InfrastructureDoc.Fields[5].Name = "name" InfrastructureDoc.Fields[5].Name = "name"
InfrastructureDoc.Fields[5].Type = "string" InfrastructureDoc.Fields[5].Type = "string"
InfrastructureDoc.Fields[5].Note = "" InfrastructureDoc.Fields[5].Note = ""