From 7ff2ceff75d42999d0f7ac99d38a4400c7813d4a Mon Sep 17 00:00:00 2001 From: idb <71566757+idebeijer@users.noreply.github.com> Date: Wed, 2 Oct 2024 13:54:42 +0200 Subject: [PATCH] feat(cluster)!: use pointers for cluster update (#31) Jira issue AME-3349 BREAKING CHANGES: use pointers for the UpdateCluster struct to allow for optional values --- pkg/acloudapi/apitypes.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/acloudapi/apitypes.go b/pkg/acloudapi/apitypes.go index 62157bf..43e1c63 100644 --- a/pkg/acloudapi/apitypes.go +++ b/pkg/acloudapi/apitypes.go @@ -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"`