Skip to content

Commit

Permalink
feat(cluster)!: use pointers for cluster update
Browse files Browse the repository at this point in the history
Jira issue AME-3349

BREAKING CHANGES: use pointers for the UpdateCluster struct to allow for optional values
  • Loading branch information
idebeijer committed Oct 2, 2024
1 parent 5db3309 commit 17e8efe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/acloudapi/apitypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ type IPWhitelistEntry struct {

// UpdateCluster represents the data structure for updating a cluster.
type UpdateCluster struct {
Status string `json:"status,omitempty" yaml:"Status,omitempty"`
Version string `json:"version,omitempty" yaml:"Version,omitempty"`
Status *string `json:"status,omitempty" yaml:"Status,omitempty"`
Version *string `json:"version,omitempty" yaml:"Version,omitempty"`
CNI *string `json:"cni,omitempty" yaml:"CNI,omitempty"`
UpdateChannel string `json:"updateChannel,omitempty" yaml:"UpdateChannel,omitempty"`
UpdateChannel *string `json:"updateChannel,omitempty" yaml:"UpdateChannel,omitempty"`
EnableNetworkProxy *bool `json:"enableNetworkProxy,omitempty" yaml:"EnableNetworkProxy,omitempty"`
EnableNetworkEncryption *bool `json:"enableNetworkEncryption,omitempty" yaml:"EnableNetworkEncryption,omitempty"`
EnableAutoUpgrade *bool `json:"enableAutoUpgrade,omitempty" yaml:"EnableAutoUpgrade,omitempty"`
Expand Down

0 comments on commit 17e8efe

Please sign in to comment.