Skip to content

Commit

Permalink
azure: Add the correct JSON tag to GatewayIP field in CiliumNode CRD
Browse files Browse the repository at this point in the history
The incorrect JSON tag "-" was added to GatewayIP field in commit 8de6dc5
that was causing GatewayIP field to not get populated in CiliumNode CRD.

Signed-off-by: Anish Shah <anishshah@google.com>
  • Loading branch information
AnishShah authored and aanm committed Mar 9, 2021
1 parent 7ae8c44 commit ba06970
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions examples/crds/ciliumnodes.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/azure/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ type AzureInterface struct {
// SecurityGroup is the security group associated with the interface
SecurityGroup string `json:"security-group,omitempty"`

// GatewayIP is the interface subnet's default route
// GatewayIP is the interface's subnet's default route
//
// +optional
GatewayIP string `json:"-"`
GatewayIP string `json:"GatewayIP"`

// vmssName is the name of the virtual machine scale set. This field is
// set by extractIDs()
Expand Down

0 comments on commit ba06970

Please sign in to comment.