diff --git a/CHANGELOG.md b/CHANGELOG.md index 44ac3bf6a..6acd64e54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## Release (2025-XX-XX) +- `ske`: [v0.26.0](services/ske/CHANGELOG.md#v0260) + - Add `required:"true"` tags to model structs + ## Release (2025-06-16) - `iaas`: - [v0.24.1](services/iaas/CHANGELOG.md#v0241-2025-06-12) diff --git a/services/ske/CHANGELOG.md b/services/ske/CHANGELOG.md index 6359da155..52383802d 100644 --- a/services/ske/CHANGELOG.md +++ b/services/ske/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.26.0 +- Add `required:"true"` tags to model structs + ## v0.25.0 (2025-06-10) - **Feature:** Add new field `PodAddressRanges` to `ClusterStatus` diff --git a/services/ske/model_acl.go b/services/ske/model_acl.go index bf9bfc252..e12f9084c 100644 --- a/services/ske/model_acl.go +++ b/services/ske/model_acl.go @@ -61,10 +61,10 @@ func setACLgetEnabledAttributeType(arg *ACLgetEnabledAttributeType, val ACLgetEn type ACL struct { // Array of CIDRs to allow access to the kubernetes API. // REQUIRED - AllowedCidrs ACLGetAllowedCidrsAttributeType `json:"allowedCidrs"` + AllowedCidrs ACLGetAllowedCidrsAttributeType `json:"allowedCidrs" required:"true"` // Enables the acl extension. // REQUIRED - Enabled ACLgetEnabledAttributeType `json:"enabled"` + Enabled ACLgetEnabledAttributeType `json:"enabled" required:"true"` } type _ACL ACL diff --git a/services/ske/model_argus.go b/services/ske/model_argus.go index e36933a6a..375bd71a1 100644 --- a/services/ske/model_argus.go +++ b/services/ske/model_argus.go @@ -62,10 +62,10 @@ func setArgusgetEnabledAttributeType(arg *ArgusgetEnabledAttributeType, val Argu type Argus struct { // Argus instance ID to choose which Argus instance is used. // REQUIRED - ArgusInstanceId ArgusGetArgusInstanceIdAttributeType `json:"argusInstanceId"` + ArgusInstanceId ArgusGetArgusInstanceIdAttributeType `json:"argusInstanceId" required:"true"` // Enables the argus extension. // REQUIRED - Enabled ArgusgetEnabledAttributeType `json:"enabled"` + Enabled ArgusgetEnabledAttributeType `json:"enabled" required:"true"` } type _Argus Argus diff --git a/services/ske/model_cluster.go b/services/ske/model_cluster.go index 2a44a7d37..348d161d6 100644 --- a/services/ske/model_cluster.go +++ b/services/ske/model_cluster.go @@ -183,12 +183,12 @@ type Cluster struct { Extensions ClusterGetExtensionsAttributeType `json:"extensions,omitempty"` Hibernation ClusterGetHibernationAttributeType `json:"hibernation,omitempty"` // REQUIRED - Kubernetes ClusterGetKubernetesAttributeType `json:"kubernetes"` + Kubernetes ClusterGetKubernetesAttributeType `json:"kubernetes" required:"true"` Maintenance ClusterGetMaintenanceAttributeType `json:"maintenance,omitempty"` Name ClusterGetNameAttributeType `json:"name,omitempty"` Network ClusterGetNetworkAttributeType `json:"network,omitempty"` // REQUIRED - Nodepools ClusterGetNodepoolsAttributeType `json:"nodepools"` + Nodepools ClusterGetNodepoolsAttributeType `json:"nodepools" required:"true"` Status ClusterGetStatusAttributeType `json:"status,omitempty"` } diff --git a/services/ske/model_create_or_update_cluster_payload.go b/services/ske/model_create_or_update_cluster_payload.go index 48bea07f7..65ba4eaeb 100644 --- a/services/ske/model_create_or_update_cluster_payload.go +++ b/services/ske/model_create_or_update_cluster_payload.go @@ -162,11 +162,11 @@ type CreateOrUpdateClusterPayload struct { Extensions CreateOrUpdateClusterPayloadGetExtensionsAttributeType `json:"extensions,omitempty"` Hibernation CreateOrUpdateClusterPayloadGetHibernationAttributeType `json:"hibernation,omitempty"` // REQUIRED - Kubernetes CreateOrUpdateClusterPayloadGetKubernetesAttributeType `json:"kubernetes"` + Kubernetes CreateOrUpdateClusterPayloadGetKubernetesAttributeType `json:"kubernetes" required:"true"` Maintenance CreateOrUpdateClusterPayloadGetMaintenanceAttributeType `json:"maintenance,omitempty"` Network CreateOrUpdateClusterPayloadGetNetworkAttributeType `json:"network,omitempty"` // REQUIRED - Nodepools CreateOrUpdateClusterPayloadGetNodepoolsAttributeType `json:"nodepools"` + Nodepools CreateOrUpdateClusterPayloadGetNodepoolsAttributeType `json:"nodepools" required:"true"` Status CreateOrUpdateClusterPayloadGetStatusAttributeType `json:"status,omitempty"` } diff --git a/services/ske/model_dns.go b/services/ske/model_dns.go index 7958bdab5..2e790634a 100644 --- a/services/ske/model_dns.go +++ b/services/ske/model_dns.go @@ -61,7 +61,7 @@ func setDNSGetZonesAttributeType(arg *DNSGetZonesAttributeType, val DNSGetZonesR type DNS struct { // Enables the dns extension. // REQUIRED - Enabled DNSgetEnabledAttributeType `json:"enabled"` + Enabled DNSgetEnabledAttributeType `json:"enabled" required:"true"` // Array of domain filters for externalDNS, e.g., *.runs.onstackit.cloud. Zones DNSGetZonesAttributeType `json:"zones,omitempty"` } diff --git a/services/ske/model_hibernation.go b/services/ske/model_hibernation.go index bc03772e4..1b9510a6f 100644 --- a/services/ske/model_hibernation.go +++ b/services/ske/model_hibernation.go @@ -40,7 +40,7 @@ func setHibernationGetSchedulesAttributeType(arg *HibernationGetSchedulesAttribu // Hibernation struct for Hibernation type Hibernation struct { // REQUIRED - Schedules HibernationGetSchedulesAttributeType `json:"schedules"` + Schedules HibernationGetSchedulesAttributeType `json:"schedules" required:"true"` } type _Hibernation Hibernation diff --git a/services/ske/model_hibernation_schedule.go b/services/ske/model_hibernation_schedule.go index 6ce023938..54f5df283 100644 --- a/services/ske/model_hibernation_schedule.go +++ b/services/ske/model_hibernation_schedule.go @@ -83,9 +83,9 @@ type HibernationScheduleGetTimezoneRetType = string // HibernationSchedule struct for HibernationSchedule type HibernationSchedule struct { // REQUIRED - End HibernationScheduleGetEndAttributeType `json:"end"` + End HibernationScheduleGetEndAttributeType `json:"end" required:"true"` // REQUIRED - Start HibernationScheduleGetStartAttributeType `json:"start"` + Start HibernationScheduleGetStartAttributeType `json:"start" required:"true"` Timezone HibernationScheduleGetTimezoneAttributeType `json:"timezone,omitempty"` } diff --git a/services/ske/model_image.go b/services/ske/model_image.go index 4fc83b665..343739cb5 100644 --- a/services/ske/model_image.go +++ b/services/ske/model_image.go @@ -62,9 +62,9 @@ type ImageGetVersionRetType = string // Image For valid names and versions please take a look at [provider-options](#tag/ProviderOptions/operation/SkeService_GetProviderOptions) `machineImages`. type Image struct { // REQUIRED - Name ImageGetNameAttributeType `json:"name"` + Name ImageGetNameAttributeType `json:"name" required:"true"` // REQUIRED - Version ImageGetVersionAttributeType `json:"version"` + Version ImageGetVersionAttributeType `json:"version" required:"true"` } type _Image Image diff --git a/services/ske/model_kubernetes.go b/services/ske/model_kubernetes.go index f82c25b32..2b86b5389 100644 --- a/services/ske/model_kubernetes.go +++ b/services/ske/model_kubernetes.go @@ -63,7 +63,7 @@ type Kubernetes struct { // DEPRECATED as of Kubernetes 1.25+ Flag to specify if privileged mode for containers is enabled or not. This should be used with care since it also disables a couple of other features like the use of some volume type (e.g. PVCs). By default this is set to true. AllowPrivilegedContainers KubernetesgetAllowPrivilegedContainersAttributeType `json:"allowPrivilegedContainers,omitempty"` // REQUIRED - Version KubernetesGetVersionAttributeType `json:"version"` + Version KubernetesGetVersionAttributeType `json:"version" required:"true"` } type _Kubernetes Kubernetes diff --git a/services/ske/model_machine.go b/services/ske/model_machine.go index d51fcebfd..b308bbc44 100644 --- a/services/ske/model_machine.go +++ b/services/ske/model_machine.go @@ -61,10 +61,10 @@ type MachineGetTypeRetType = string // Machine struct for Machine type Machine struct { // REQUIRED - Image MachineGetImageAttributeType `json:"image"` + Image MachineGetImageAttributeType `json:"image" required:"true"` // For valid types please take a look at [provider-options](#tag/ProviderOptions/operation/SkeService_GetProviderOptions) `machineTypes`. // REQUIRED - Type MachineGetTypeAttributeType `json:"type"` + Type MachineGetTypeAttributeType `json:"type" required:"true"` } type _Machine Machine diff --git a/services/ske/model_maintenance.go b/services/ske/model_maintenance.go index a7fd55558..001422343 100644 --- a/services/ske/model_maintenance.go +++ b/services/ske/model_maintenance.go @@ -60,9 +60,9 @@ func setMaintenanceGetTimeWindowAttributeType(arg *MaintenanceGetTimeWindowAttri // Maintenance struct for Maintenance type Maintenance struct { // REQUIRED - AutoUpdate MaintenanceGetAutoUpdateAttributeType `json:"autoUpdate"` + AutoUpdate MaintenanceGetAutoUpdateAttributeType `json:"autoUpdate" required:"true"` // REQUIRED - TimeWindow MaintenanceGetTimeWindowAttributeType `json:"timeWindow"` + TimeWindow MaintenanceGetTimeWindowAttributeType `json:"timeWindow" required:"true"` } type _Maintenance Maintenance diff --git a/services/ske/model_nodepool.go b/services/ske/model_nodepool.go index a31c30a06..d9d5858a6 100644 --- a/services/ske/model_nodepool.go +++ b/services/ske/model_nodepool.go @@ -263,11 +263,11 @@ type Nodepool struct { // This needs to be true for at least one node pool. AllowSystemComponents NodepoolgetAllowSystemComponentsAttributeType `json:"allowSystemComponents,omitempty"` // REQUIRED - AvailabilityZones NodepoolGetAvailabilityZonesAttributeType `json:"availabilityZones"` + AvailabilityZones NodepoolGetAvailabilityZonesAttributeType `json:"availabilityZones" required:"true"` Cri NodepoolGetCriAttributeType `json:"cri,omitempty"` Labels NodepoolGetLabelsAttributeType `json:"labels,omitempty"` // REQUIRED - Machine NodepoolGetMachineAttributeType `json:"machine"` + Machine NodepoolGetMachineAttributeType `json:"machine" required:"true"` // Can be cast to int32 without loss of precision. MaxSurge NodepoolGetMaxSurgeAttributeType `json:"maxSurge,omitempty"` // Can be cast to int32 without loss of precision. @@ -275,17 +275,17 @@ type Nodepool struct { // Maximum number of nodes in the pool. During runtime, the cluster will never scale beyond 1000 nodes, even if the total maximum would allow for a larger cluster. // Can be cast to int32 without loss of precision. // REQUIRED - Maximum NodepoolGetMaximumAttributeType `json:"maximum"` + Maximum NodepoolGetMaximumAttributeType `json:"maximum" required:"true"` // Minimum number of nodes in the pool. The sum of all minima must not exceed 1000. // Can be cast to int32 without loss of precision. // REQUIRED - Minimum NodepoolGetMinimumAttributeType `json:"minimum"` + Minimum NodepoolGetMinimumAttributeType `json:"minimum" required:"true"` // Maximum 15 chars // REQUIRED - Name NodepoolGetNameAttributeType `json:"name"` + Name NodepoolGetNameAttributeType `json:"name" required:"true"` Taints NodepoolGetTaintsAttributeType `json:"taints,omitempty"` // REQUIRED - Volume NodepoolGetVolumeAttributeType `json:"volume"` + Volume NodepoolGetVolumeAttributeType `json:"volume" required:"true"` } type _Nodepool Nodepool diff --git a/services/ske/model_taint.go b/services/ske/model_taint.go index aaaf8eba8..a91c08d63 100644 --- a/services/ske/model_taint.go +++ b/services/ske/model_taint.go @@ -189,9 +189,9 @@ type TaintGetValueRetType = string // Taint struct for Taint type Taint struct { // REQUIRED - Effect TaintGetEffectAttributeType `json:"effect"` + Effect TaintGetEffectAttributeType `json:"effect" required:"true"` // REQUIRED - Key TaintGetKeyAttributeType `json:"key"` + Key TaintGetKeyAttributeType `json:"key" required:"true"` Value TaintGetValueAttributeType `json:"value,omitempty"` } diff --git a/services/ske/model_time_window.go b/services/ske/model_time_window.go index 89b693faa..df318e42e 100644 --- a/services/ske/model_time_window.go +++ b/services/ske/model_time_window.go @@ -61,9 +61,9 @@ func setTimeWindowGetStartAttributeType(arg *TimeWindowGetStartAttributeType, va // TimeWindow struct for TimeWindow type TimeWindow struct { // REQUIRED - End TimeWindowGetEndAttributeType `json:"end"` + End TimeWindowGetEndAttributeType `json:"end" required:"true"` // REQUIRED - Start TimeWindowGetStartAttributeType `json:"start"` + Start TimeWindowGetStartAttributeType `json:"start" required:"true"` } type _TimeWindow TimeWindow diff --git a/services/ske/model_volume.go b/services/ske/model_volume.go index 5b5e9e6a5..753ae5c87 100644 --- a/services/ske/model_volume.go +++ b/services/ske/model_volume.go @@ -62,7 +62,7 @@ type VolumeGetTypeRetType = string type Volume struct { // Can be cast to int32 without loss of precision. // REQUIRED - Size VolumeGetSizeAttributeType `json:"size"` + Size VolumeGetSizeAttributeType `json:"size" required:"true"` // For valid values please take a look at [provider-options](#tag/ProviderOptions/operation/SkeService_GetProviderOptions) `volumeTypes`. Type VolumeGetTypeAttributeType `json:"type,omitempty"` }