diff --git a/pkg/acloudapi/apitypes.go b/pkg/acloudapi/apitypes.go index 0c78abb..01c9ddf 100644 --- a/pkg/acloudapi/apitypes.go +++ b/pkg/acloudapi/apitypes.go @@ -60,7 +60,7 @@ type Cluster struct { ObservabilityTenant *ObservabilityTenant `json:"observabilityTenant,omitempty" yaml:"ObservabilityTenant,omitempty"` EnvironmentPrometheusRules bool `json:"environmentPrometheusRules" yaml:"EnvironmentPrometheusRules"` MaintenanceSchedule *MaintenanceSchedule `json:"maintenanceSchedule,omitempty" yaml:"MaintenanceSchedule,omitempty"` - AutoScalerSettings *AutoscalingSettings `json:"clusterAutoscalerSettings,omitempty" yaml:"ClusterAutoScalerSettings,omitempty"` + AutoscalerSettings *AutoscalerSettings `json:"clusterAutoscalerSettings,omitempty" yaml:"ClusterAutoscalerSettings,omitempty"` } type MaintenanceSchedule struct { @@ -154,8 +154,8 @@ type CreateCluster struct { IPWhitelist []IPWhitelistEntry `json:"ipWhitelist,omitempty" yaml:"IpWhitelist,omitempty"` Addons map[string]APIAddon `json:"addons,omitempty" yaml:"Addons,omitempty"` - AutoScalerSettings *AutoscalingSettings `json:"clusterAutoscalerSettings,omitempty" yaml:"ClusterAutoScalerSettings,omitempty"` - MaintenanceScheduleIdentity string `json:"maintenanceScheduleIdentity,omitempty" yaml:"MaintenanceScheduleIdentity,omitempty"` + AutoscalerSettings *AutoscalerSettings `json:"clusterAutoscalerSettings,omitempty" yaml:"ClusterAutoscalerSettings,omitempty"` + MaintenanceScheduleIdentity string `json:"maintenanceScheduleIdentity,omitempty" yaml:"MaintenanceScheduleIdentity,omitempty"` } // IPWhitelistEntry represents an entry in the IP whitelist. @@ -175,13 +175,13 @@ type UpdateCluster struct { EnableAutoUpgrade *bool `json:"enableAutoUpgrade,omitempty" yaml:"EnableAutoUpgrade,omitempty"` EnableHighAvailability *bool `json:"enableHighAvailability,omitempty" yaml:"EnableHighAvailability,omitempty"` // Deprecated: replaced by PodSecurityStandardsProfile which offers support for selecting a specific default PSS profile. This setting does not do anything since Kubernetes v1.23 - EnablePodSecurityStandards *bool `json:"enablePodSecurityStandards,omitempty" yaml:"EnablePodSecurityStandards,omitempty"` - PodSecurityStandardsProfile *string `json:"podSecurityStandardsProfile,omitempty" yaml:"PodSecurityStandardsProfile,omitempty"` - DeleteProtection *bool `json:"deleteProtection,omitempty" yaml:"DeleteProtection,omitempty"` - IPWhitelist []string `json:"ipWhitelist,omitempty" yaml:"IpWhitelist,omitempty"` - Addons map[string]APIAddon `json:"addons,omitempty" yaml:"Addons,omitempty"` - AutoScalerSettings *AutoscalingSettings `json:"clusterAutoscalerSettings,omitempty" yaml:"ClusterAutoScalerSettings,omitempty"` - MaintenanceScheduleIdentity *string `json:"maintenanceScheduleIdentity,omitempty" yaml:"MaintenanceScheduleIdentity,omitempty"` + EnablePodSecurityStandards *bool `json:"enablePodSecurityStandards,omitempty" yaml:"EnablePodSecurityStandards,omitempty"` + PodSecurityStandardsProfile *string `json:"podSecurityStandardsProfile,omitempty" yaml:"PodSecurityStandardsProfile,omitempty"` + DeleteProtection *bool `json:"deleteProtection,omitempty" yaml:"DeleteProtection,omitempty"` + IPWhitelist []string `json:"ipWhitelist,omitempty" yaml:"IpWhitelist,omitempty"` + Addons map[string]APIAddon `json:"addons,omitempty" yaml:"Addons,omitempty"` + AutoscalerSettings *AutoscalerSettings `json:"clusterAutoscalerSettings,omitempty" yaml:"ClusterAutoscalerSettings,omitempty"` + MaintenanceScheduleIdentity *string `json:"maintenanceScheduleIdentity,omitempty" yaml:"MaintenanceScheduleIdentity,omitempty"` } // NodePools is used by CreateCluster @@ -455,7 +455,7 @@ type ListScheduledClusterUpgradesOpts struct { Statuses []ScheduledClusterUpgradeStatus } -type AutoscalingSettings struct { +type AutoscalerSettings struct { // ScaleDownUtilizationThreshold specifies the scale down utilization threshold ScaleDownUtilizationThreshold string `json:"scale-down-utilization-threshold"` // ScaleDownGpuUtilizationThreshold specifies the scale down GPU utilization threshold