Skip to content

Commit 21fe064

Browse files
committed
Add omitempty for ansibleUser
ansibleUser can be provided either in the NodeSection or NodeTemplate. This shows as empty string in the CR if not provided which is confusing.
1 parent 818584d commit 21fe064

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apis/dataplane/v1beta1/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ type DataSource struct {
7979
type AnsibleOpts struct {
8080
// AnsibleUser SSH user for Ansible connection
8181
// +kubebuilder:validation:Optional
82-
AnsibleUser string `json:"ansibleUser"`
82+
AnsibleUser string `json:"ansibleUser,omitempty"`
8383

8484
// AnsibleHost SSH host for Ansible connection
8585
// +kubebuilder:validation:Optional

0 commit comments

Comments
 (0)