Skip to content

Commit 2771d04

Browse files
authored
feat(k8s): enable passing a security group ID at pool creation (scaleway#2583)
1 parent 3f95edf commit 2771d04

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

api/k8s/v1/k8s_sdk.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,9 @@ type Pool struct {
894894
// Deprecated: NewImagesEnabled: defines whether the pool is migrated to new images.
895895
NewImagesEnabled *bool `json:"new_images_enabled,omitempty"`
896896

897+
// 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.
898+
SecurityGroupID string `json:"security_group_id"`
899+
897900
// Region: cluster region of the pool.
898901
Region scw.Region `json:"region"`
899902
}
@@ -1051,6 +1054,9 @@ type CreateClusterRequestPoolConfig struct {
10511054

10521055
// 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.
10531056
PublicIPDisabled bool `json:"public_ip_disabled"`
1057+
1058+
// 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.
1059+
SecurityGroupID *string `json:"security_group_id"`
10541060
}
10551061

10561062
// CreatePoolRequestUpgradePolicy: create pool request upgrade policy.
@@ -1496,6 +1502,9 @@ type CreatePoolRequest struct {
14961502

14971503
// 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.
14981504
PublicIPDisabled bool `json:"public_ip_disabled"`
1505+
1506+
// 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.
1507+
SecurityGroupID *string `json:"security_group_id,omitempty"`
14991508
}
15001509

15011510
// DeleteACLRuleRequest: delete acl rule request.

0 commit comments

Comments
 (0)