Skip to content

Commit 0ef3d75

Browse files
committed
Add omitempty to SSHPublicKey
Add omitempty to SSHPublicKey since this field is optional. Signed-off-by: Bryan Cox <[email protected]>
1 parent 12d15fa commit 0ef3d75

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)