Skip to content

Commit 8fc666d

Browse files
authored
Merge pull request #5092 from bryan-cox/fix-sshpublickey-api
Add omitempty to SSHPublicKey
2 parents 2b91b72 + 0ef3d75 commit 8fc666d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/v1beta1/azuremachine_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ type AzureMachineSpec struct {
8484
// SSHPublicKey is the SSH public key string, base64-encoded to add to a Virtual Machine. Linux only.
8585
// Refer to documentation on how to set up SSH access on Windows instances.
8686
// +optional
87-
SSHPublicKey string `json:"sshPublicKey"`
87+
SSHPublicKey string `json:"sshPublicKey,omitempty"`
8888

8989
// AdditionalTags is an optional set of tags to add to an instance, in addition to the ones added by default by the
9090
// Azure provider. If both the AzureCluster and the AzureMachine specify the same tag name with different values, the

0 commit comments

Comments
 (0)