Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update server and credentials fields as optional in AviLoadBalancerConfigSpec #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/v1alpha1/aviloadbalancerconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type AviLoadBalancerConfigSpec struct {
// * ADDRESS is the Avi Controller IP address or the Avi Cluster IP when
// two or more Avi Controllers are deployed in cluster mode.
// * PORT defaults to 80 when SCHEME is http and 443 when SCHEME is https.
Server string `json:"server"`
Server string `json:"server,omitempty"`

// CloudName is used by the Avi Kubernetes Operator (AKO) when querying
// properties via the Avi REST API, ex. /api/cloud/?name=CLOUD_NAME.
Expand Down Expand Up @@ -88,7 +88,7 @@ type AviLoadBalancerConfigSpec struct {
// certificateAuthorityData: []byte
// username: []byte
// password: []byte
CredentialSecretRef ClientSecretReference `json:"credentialSecretRef"`
CredentialSecretRef ClientSecretReference `json:"credentialSecretRef,omitempty"`
}

// AviLoadBalancerConfigStatus is unused because AviLoadBalancerConfigSpec is
Expand Down