Skip to content

Commit 2e265c7

Browse files
committed
feat: update generated APIs
1 parent 44f4a1d commit 2e265c7

File tree

1 file changed

+110
-110
lines changed

1 file changed

+110
-110
lines changed

api/k8s/v1/k8s_sdk.go

Lines changed: 110 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -742,13 +742,6 @@ type MaintenanceWindow struct {
742742
Day MaintenanceWindowDayOfTheWeek `json:"day"`
743743
}
744744

745-
// PoolUpgradePolicy: pool upgrade policy.
746-
type PoolUpgradePolicy struct {
747-
MaxUnavailable uint32 `json:"max_unavailable"`
748-
749-
MaxSurge uint32 `json:"max_surge"`
750-
}
751-
752745
// CreateClusterRequestPoolConfigUpgradePolicy: create cluster request pool config upgrade policy.
753746
type CreateClusterRequestPoolConfigUpgradePolicy struct {
754747
// MaxUnavailable: the maximum number of nodes that can be not ready at the same time.
@@ -769,7 +762,7 @@ type ClusterAutoUpgrade struct {
769762

770763
// ClusterAutoscalerConfig: cluster autoscaler config.
771764
type ClusterAutoscalerConfig struct {
772-
// ScaleDownDisabled: disable the cluster autoscaler.
765+
// ScaleDownDisabled: forbid cluster autoscaler to scale down the cluster, defaults to false.
773766
ScaleDownDisabled bool `json:"scale_down_disabled"`
774767

775768
// ScaleDownDelayAfterAdd: how long after scale up the scale down evaluation resumes.
@@ -779,26 +772,26 @@ type ClusterAutoscalerConfig struct {
779772
// Default value: unknown_estimator
780773
Estimator AutoscalerEstimator `json:"estimator"`
781774

782-
// Expander: type of node group expander to be used in scale up.
775+
// Expander: kubernetes autoscaler strategy to fit pods into nodes, see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders for details.
783776
// Default value: unknown_expander
784777
Expander AutoscalerExpander `json:"expander"`
785778

786-
// IgnoreDaemonsetsUtilization: ignore DaemonSet pods when calculating resource utilization for scaling down.
779+
// IgnoreDaemonsetsUtilization: ignore DaemonSet pods when calculating resource utilization for scaling down, defaults to false.
787780
IgnoreDaemonsetsUtilization bool `json:"ignore_daemonsets_utilization"`
788781

789-
// BalanceSimilarNodeGroups: detect similar node groups and balance the number of nodes between them.
782+
// BalanceSimilarNodeGroups: detect similar node groups and balance the number of nodes between them, defaults to false.
790783
BalanceSimilarNodeGroups bool `json:"balance_similar_node_groups"`
791784

792785
// ExpendablePodsPriorityCutoff: pods with priority below cutoff will be expendable. They can be killed without any consideration during scale down and they won't cause scale up. Pods with null priority (PodPriority disabled) are non expendable.
793786
ExpendablePodsPriorityCutoff int32 `json:"expendable_pods_priority_cutoff"`
794787

795-
// ScaleDownUnneededTime: how long a node should be unneeded before it is eligible to be scaled down.
788+
// ScaleDownUnneededTime: how long a node should be unneeded before it is eligible for scale down, defaults to 10 minutes.
796789
ScaleDownUnneededTime string `json:"scale_down_unneeded_time"`
797790

798-
// ScaleDownUtilizationThreshold: node utilization level, defined as a sum of requested resources divided by capacity, below which a node can be considered for scale down.
791+
// ScaleDownUtilizationThreshold: node utilization level, defined as a sum of requested resources divided by allocatable capacity, below which a node can be considered for scale down.
799792
ScaleDownUtilizationThreshold float32 `json:"scale_down_utilization_threshold"`
800793

801-
// MaxGracefulTerminationSec: maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node.
794+
// MaxGracefulTerminationSec: maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node, defaults to 600 (10 minutes).
802795
MaxGracefulTerminationSec uint32 `json:"max_graceful_termination_sec"`
803796
}
804797

@@ -826,88 +819,11 @@ type ClusterOpenIDConnectConfig struct {
826819
RequiredClaim []string `json:"required_claim"`
827820
}
828821

829-
// Pool: pool.
830-
type Pool struct {
831-
// ID: pool ID.
832-
ID string `json:"id"`
833-
834-
// ClusterID: cluster ID of the pool.
835-
ClusterID string `json:"cluster_id"`
836-
837-
// CreatedAt: date on which the pool was created.
838-
CreatedAt *time.Time `json:"created_at"`
839-
840-
// UpdatedAt: date on which the pool was last updated.
841-
UpdatedAt *time.Time `json:"updated_at"`
842-
843-
// Name: pool name.
844-
Name string `json:"name"`
845-
846-
// Status: pool status.
847-
// Default value: unknown
848-
Status PoolStatus `json:"status"`
849-
850-
// Version: pool version.
851-
Version string `json:"version"`
852-
853-
// NodeType: node type is the type of Scaleway Instance wanted for the pool. Nodes with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST). 'external' is a special node type used to provision instances from other cloud providers in a Kosmos Cluster.
854-
NodeType string `json:"node_type"`
855-
856-
// Autoscaling: defines whether the autoscaling feature is enabled for the pool.
857-
Autoscaling bool `json:"autoscaling"`
858-
859-
// Size: size (number of nodes) of the pool.
860-
Size uint32 `json:"size"`
861-
862-
// MinSize: defines the minimum size of the pool. Note that this field is only used when autoscaling is enabled on the pool.
863-
MinSize uint32 `json:"min_size"`
864-
865-
// MaxSize: defines the maximum size of the pool. Note that this field is only used when autoscaling is enabled on the pool.
866-
MaxSize uint32 `json:"max_size"`
867-
868-
// ContainerRuntime: customization of the container runtime is available for each pool.
869-
// Default value: unknown_runtime
870-
ContainerRuntime Runtime `json:"container_runtime"`
871-
872-
// Autohealing: defines whether the autohealing feature is enabled for the pool.
873-
Autohealing bool `json:"autohealing"`
874-
875-
// Tags: tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/kubernetes/api-cli/managing-tags).
876-
Tags []string `json:"tags"`
877-
878-
// PlacementGroupID: placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances.
879-
PlacementGroupID *string `json:"placement_group_id"`
880-
881-
// KubeletArgs: kubelet arguments to be used by this pool. Note that this feature is experimental.
882-
KubeletArgs map[string]string `json:"kubelet_args"`
883-
884-
// UpgradePolicy: pool upgrade policy.
885-
UpgradePolicy *PoolUpgradePolicy `json:"upgrade_policy"`
886-
887-
// Zone: zone in which the pool's nodes will be spawned.
888-
Zone scw.Zone `json:"zone"`
889-
890-
// RootVolumeType: * `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. This type is not available for all node types
891-
// * `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits
892-
// * `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits
893-
// * `b_ssd` is the legacy remote block storage which means your system is stored on a centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k` instead.
894-
// Default value: default_volume_type
895-
RootVolumeType PoolVolumeType `json:"root_volume_type"`
896-
897-
// RootVolumeSize: system volume disk size.
898-
RootVolumeSize *scw.Size `json:"root_volume_size"`
899-
900-
// PublicIPDisabled: defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway.
901-
PublicIPDisabled bool `json:"public_ip_disabled"`
902-
903-
// Deprecated: NewImagesEnabled: defines whether the pool is migrated to new images.
904-
NewImagesEnabled *bool `json:"new_images_enabled,omitempty"`
905-
906-
// SecurityGroupID: security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone.
907-
SecurityGroupID string `json:"security_group_id"`
822+
// PoolUpgradePolicy: pool upgrade policy.
823+
type PoolUpgradePolicy struct {
824+
MaxUnavailable uint32 `json:"max_unavailable"`
908825

909-
// Region: cluster region of the pool.
910-
Region scw.Region `json:"region"`
826+
MaxSurge uint32 `json:"max_surge"`
911827
}
912828

913829
// ACLRuleRequest: acl rule request.
@@ -952,7 +868,7 @@ type CreateClusterRequestAutoUpgrade struct {
952868

953869
// CreateClusterRequestAutoscalerConfig: create cluster request autoscaler config.
954870
type CreateClusterRequestAutoscalerConfig struct {
955-
// ScaleDownDisabled: disable the cluster autoscaler.
871+
// ScaleDownDisabled: forbid cluster autoscaler to scale down the cluster, defaults to false.
956872
ScaleDownDisabled *bool `json:"scale_down_disabled"`
957873

958874
// ScaleDownDelayAfterAdd: how long after scale up the scale down evaluation resumes.
@@ -962,26 +878,26 @@ type CreateClusterRequestAutoscalerConfig struct {
962878
// Default value: unknown_estimator
963879
Estimator AutoscalerEstimator `json:"estimator"`
964880

965-
// Expander: type of node group expander to be used in scale up.
881+
// Expander: kubernetes autoscaler strategy to fit pods into nodes, see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders for details.
966882
// Default value: unknown_expander
967883
Expander AutoscalerExpander `json:"expander"`
968884

969-
// IgnoreDaemonsetsUtilization: ignore DaemonSet pods when calculating resource utilization for scaling down.
885+
// IgnoreDaemonsetsUtilization: ignore DaemonSet pods when calculating resource utilization for scaling down, defaults to false.
970886
IgnoreDaemonsetsUtilization *bool `json:"ignore_daemonsets_utilization"`
971887

972-
// BalanceSimilarNodeGroups: detect similar node groups and balance the number of nodes between them.
888+
// BalanceSimilarNodeGroups: detect similar node groups and balance the number of nodes between them, defaults to false.
973889
BalanceSimilarNodeGroups *bool `json:"balance_similar_node_groups"`
974890

975891
// ExpendablePodsPriorityCutoff: pods with priority below cutoff will be expendable. They can be killed without any consideration during scale down and they won't cause scale up. Pods with null priority (PodPriority disabled) are non expendable.
976892
ExpendablePodsPriorityCutoff *int32 `json:"expendable_pods_priority_cutoff"`
977893

978-
// ScaleDownUnneededTime: how long a node should be unneeded before it is eligible to be scaled down.
894+
// ScaleDownUnneededTime: how long a node should be unneeded before it is eligible for scale down, defaults to 10 minutes.
979895
ScaleDownUnneededTime *string `json:"scale_down_unneeded_time"`
980896

981-
// ScaleDownUtilizationThreshold: node utilization level, defined as a sum of requested resources divided by capacity, below which a node can be considered for scale down.
897+
// ScaleDownUtilizationThreshold: node utilization level, defined as a sum of requested resources divided by allocatable capacity, below which a node can be considered for scale down.
982898
ScaleDownUtilizationThreshold *float32 `json:"scale_down_utilization_threshold"`
983899

984-
// MaxGracefulTerminationSec: maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node.
900+
// MaxGracefulTerminationSec: maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node, defaults to 600 (10 minutes).
985901
MaxGracefulTerminationSec *uint32 `json:"max_graceful_termination_sec"`
986902
}
987903

@@ -1204,7 +1120,7 @@ type Cluster struct {
12041120
// UpdatedAt: date on which the cluster was last updated.
12051121
UpdatedAt *time.Time `json:"updated_at"`
12061122

1207-
// AutoscalerConfig: autoscaler config for the cluster.
1123+
// AutoscalerConfig: autoscaler configuration for the cluster, see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md for details.
12081124
AutoscalerConfig *ClusterAutoscalerConfig `json:"autoscaler_config"`
12091125

12101126
// AutoUpgrade: auto upgrade Kubernetes version of the cluster.
@@ -1293,6 +1209,90 @@ type Node struct {
12931209
UpdatedAt *time.Time `json:"updated_at"`
12941210
}
12951211

1212+
// Pool: pool.
1213+
type Pool struct {
1214+
// ID: pool ID.
1215+
ID string `json:"id"`
1216+
1217+
// ClusterID: cluster ID of the pool.
1218+
ClusterID string `json:"cluster_id"`
1219+
1220+
// CreatedAt: date on which the pool was created.
1221+
CreatedAt *time.Time `json:"created_at"`
1222+
1223+
// UpdatedAt: date on which the pool was last updated.
1224+
UpdatedAt *time.Time `json:"updated_at"`
1225+
1226+
// Name: pool name.
1227+
Name string `json:"name"`
1228+
1229+
// Status: pool status.
1230+
// Default value: unknown
1231+
Status PoolStatus `json:"status"`
1232+
1233+
// Version: pool version.
1234+
Version string `json:"version"`
1235+
1236+
// NodeType: node type is the type of Scaleway Instance wanted for the pool. Nodes with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST). 'external' is a special node type used to provision instances from other cloud providers in a Kosmos Cluster.
1237+
NodeType string `json:"node_type"`
1238+
1239+
// Autoscaling: defines whether the autoscaling feature is enabled for the pool.
1240+
Autoscaling bool `json:"autoscaling"`
1241+
1242+
// Size: size (number of nodes) of the pool.
1243+
Size uint32 `json:"size"`
1244+
1245+
// MinSize: defines the minimum size of the pool. Note that this field is only used when autoscaling is enabled on the pool.
1246+
MinSize uint32 `json:"min_size"`
1247+
1248+
// MaxSize: defines the maximum size of the pool. Note that this field is only used when autoscaling is enabled on the pool.
1249+
MaxSize uint32 `json:"max_size"`
1250+
1251+
// ContainerRuntime: customization of the container runtime is available for each pool.
1252+
// Default value: unknown_runtime
1253+
ContainerRuntime Runtime `json:"container_runtime"`
1254+
1255+
// Autohealing: defines whether the autohealing feature is enabled for the pool.
1256+
Autohealing bool `json:"autohealing"`
1257+
1258+
// Tags: tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/kubernetes/api-cli/managing-tags).
1259+
Tags []string `json:"tags"`
1260+
1261+
// PlacementGroupID: placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances.
1262+
PlacementGroupID *string `json:"placement_group_id"`
1263+
1264+
// KubeletArgs: kubelet arguments to be used by this pool. Note that this feature is experimental.
1265+
KubeletArgs map[string]string `json:"kubelet_args"`
1266+
1267+
// UpgradePolicy: pool upgrade policy.
1268+
UpgradePolicy *PoolUpgradePolicy `json:"upgrade_policy"`
1269+
1270+
// Zone: zone in which the pool's nodes will be spawned.
1271+
Zone scw.Zone `json:"zone"`
1272+
1273+
// RootVolumeType: * `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. This type is not available for all node types
1274+
// * `sbs-5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits
1275+
// * `sbs-15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits
1276+
// * `b_ssd` is the legacy remote block storage which means your system is stored on a centralized and resilient cluster. Consider using `sbs-5k` or `sbs-15k` instead.
1277+
// Default value: default_volume_type
1278+
RootVolumeType PoolVolumeType `json:"root_volume_type"`
1279+
1280+
// RootVolumeSize: system volume disk size.
1281+
RootVolumeSize *scw.Size `json:"root_volume_size"`
1282+
1283+
// PublicIPDisabled: defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway.
1284+
PublicIPDisabled bool `json:"public_ip_disabled"`
1285+
1286+
// Deprecated: NewImagesEnabled: defines whether the pool is migrated to new images.
1287+
NewImagesEnabled *bool `json:"new_images_enabled,omitempty"`
1288+
1289+
// SecurityGroupID: security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone.
1290+
SecurityGroupID string `json:"security_group_id"`
1291+
1292+
// Region: cluster region of the pool.
1293+
Region scw.Region `json:"region"`
1294+
}
1295+
12961296
// NodeMetadataCoreV1Taint: node metadata core v1 taint.
12971297
type NodeMetadataCoreV1Taint struct {
12981298
Key string `json:"key"`
@@ -1313,7 +1313,7 @@ type UpdateClusterRequestAutoUpgrade struct {
13131313

13141314
// UpdateClusterRequestAutoscalerConfig: update cluster request autoscaler config.
13151315
type UpdateClusterRequestAutoscalerConfig struct {
1316-
// ScaleDownDisabled: disable the cluster autoscaler.
1316+
// ScaleDownDisabled: forbid cluster autoscaler to scale down the cluster, defaults to false.
13171317
ScaleDownDisabled *bool `json:"scale_down_disabled"`
13181318

13191319
// ScaleDownDelayAfterAdd: how long after scale up the scale down evaluation resumes.
@@ -1323,26 +1323,26 @@ type UpdateClusterRequestAutoscalerConfig struct {
13231323
// Default value: unknown_estimator
13241324
Estimator AutoscalerEstimator `json:"estimator"`
13251325

1326-
// Expander: type of node group expander to be used in scale up.
1326+
// Expander: kubernetes autoscaler strategy to fit pods into nodes, see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders for details.
13271327
// Default value: unknown_expander
13281328
Expander AutoscalerExpander `json:"expander"`
13291329

1330-
// IgnoreDaemonsetsUtilization: ignore DaemonSet pods when calculating resource utilization for scaling down.
1330+
// IgnoreDaemonsetsUtilization: ignore DaemonSet pods when calculating resource utilization for scaling down, defaults to false.
13311331
IgnoreDaemonsetsUtilization *bool `json:"ignore_daemonsets_utilization"`
13321332

1333-
// BalanceSimilarNodeGroups: detect similar node groups and balance the number of nodes between them.
1333+
// BalanceSimilarNodeGroups: detect similar node groups and balance the number of nodes between them, defaults to false.
13341334
BalanceSimilarNodeGroups *bool `json:"balance_similar_node_groups"`
13351335

13361336
// ExpendablePodsPriorityCutoff: pods with priority below cutoff will be expendable. They can be killed without any consideration during scale down and they won't cause scale up. Pods with null priority (PodPriority disabled) are non expendable.
13371337
ExpendablePodsPriorityCutoff *int32 `json:"expendable_pods_priority_cutoff"`
13381338

1339-
// ScaleDownUnneededTime: how long a node should be unneeded before it is eligible to be scaled down.
1339+
// ScaleDownUnneededTime: how long a node should be unneeded before it is eligible for scale down, defaults to 10 minutes.
13401340
ScaleDownUnneededTime *string `json:"scale_down_unneeded_time"`
13411341

1342-
// ScaleDownUtilizationThreshold: node utilization level, defined as a sum of requested resources divided by capacity, below which a node can be considered for scale down.
1342+
// ScaleDownUtilizationThreshold: node utilization level, defined as a sum of requested resources divided by allocatable capacity, below which a node can be considered for scale down.
13431343
ScaleDownUtilizationThreshold *float32 `json:"scale_down_utilization_threshold"`
13441344

1345-
// MaxGracefulTerminationSec: maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node.
1345+
// MaxGracefulTerminationSec: maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node, defaults to 600 (10 minutes).
13461346
MaxGracefulTerminationSec *uint32 `json:"max_graceful_termination_sec"`
13471347
}
13481348

0 commit comments

Comments
 (0)