Skip to content

Commit 4d4fd07

Browse files
yoshi-automationsofisl
authored andcommitted
feat(container)!: update the API
BREAKING CHANGE: This release has breaking changes. #### container:v1beta1 The following keys were deleted: - schemas.AutoscaledRolloutPolicy.description - schemas.AutoscaledRolloutPolicy.id - schemas.AutoscaledRolloutPolicy.type - schemas.BlueGreenSettings.properties.autoscaledRolloutPolicy.$ref - schemas.BlueGreenSettings.properties.autoscaledRolloutPolicy.description The following keys were added: - schemas.AutoIpamConfig.properties.enabled.description - schemas.AutoIpamConfig.properties.enabled.type - schemas.Autopilot.properties.privilegedAdmissionConfig.$ref - schemas.Autopilot.properties.privilegedAdmissionConfig.description - schemas.ClusterAutoscaling.properties.defaultComputeClassConfig.$ref - schemas.ClusterAutoscaling.properties.defaultComputeClassConfig.description - schemas.DefaultComputeClassConfig.description - schemas.DefaultComputeClassConfig.id - schemas.DefaultComputeClassConfig.properties.enabled.description - schemas.DefaultComputeClassConfig.properties.enabled.type - schemas.DefaultComputeClassConfig.type - schemas.Fleet.properties.membershipType.description - schemas.Fleet.properties.membershipType.enum - schemas.Fleet.properties.membershipType.enumDescriptions - schemas.Fleet.properties.membershipType.type - schemas.PrivilegedAdmissionConfig.description - schemas.PrivilegedAdmissionConfig.id - schemas.PrivilegedAdmissionConfig.properties.allowlistPaths.description - schemas.PrivilegedAdmissionConfig.properties.allowlistPaths.items.type - schemas.PrivilegedAdmissionConfig.properties.allowlistPaths.type - schemas.PrivilegedAdmissionConfig.type #### container:v1 The following keys were added: - schemas.AutoIpamConfig.properties.enabled.description - schemas.AutoIpamConfig.properties.enabled.type - schemas.Autopilot.properties.privilegedAdmissionConfig.$ref - schemas.Autopilot.properties.privilegedAdmissionConfig.description - schemas.ClusterAutoscaling.properties.defaultComputeClassConfig.$ref - schemas.ClusterAutoscaling.properties.defaultComputeClassConfig.description - schemas.DefaultComputeClassConfig.description - schemas.DefaultComputeClassConfig.id - schemas.DefaultComputeClassConfig.properties.enabled.description - schemas.DefaultComputeClassConfig.properties.enabled.type - schemas.DefaultComputeClassConfig.type - schemas.Fleet.properties.membershipType.description - schemas.Fleet.properties.membershipType.enum - schemas.Fleet.properties.membershipType.enumDescriptions - schemas.Fleet.properties.membershipType.type - schemas.PrivilegedAdmissionConfig.description - schemas.PrivilegedAdmissionConfig.id - schemas.PrivilegedAdmissionConfig.properties.allowlistPaths.description - schemas.PrivilegedAdmissionConfig.properties.allowlistPaths.items.type - schemas.PrivilegedAdmissionConfig.properties.allowlistPaths.type - schemas.PrivilegedAdmissionConfig.type
1 parent db5a534 commit 4d4fd07

File tree

4 files changed

+176
-24
lines changed

4 files changed

+176
-24
lines changed

discovery/container-v1.json

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2660,7 +2660,7 @@
26602660
}
26612661
}
26622662
},
2663-
"revision": "20250701",
2663+
"revision": "20250725",
26642664
"rootUrl": "https://container.googleapis.com/",
26652665
"schemas": {
26662666
"AcceleratorConfig": {
@@ -2943,7 +2943,12 @@
29432943
"AutoIpamConfig": {
29442944
"description": "AutoIpamConfig contains all information related to Auto IPAM",
29452945
"id": "AutoIpamConfig",
2946-
"properties": {},
2946+
"properties": {
2947+
"enabled": {
2948+
"description": "The flag that enables Auto IPAM on this cluster",
2949+
"type": "boolean"
2950+
}
2951+
},
29472952
"type": "object"
29482953
},
29492954
"AutoMonitoringConfig": {
@@ -2992,6 +2997,10 @@
29922997
"description": "Enable Autopilot",
29932998
"type": "boolean"
29942999
},
3000+
"privilegedAdmissionConfig": {
3001+
"$ref": "PrivilegedAdmissionConfig",
3002+
"description": "PrivilegedAdmissionConfig is the configuration related to privileged admission control."
3003+
},
29953004
"workloadPolicyConfig": {
29963005
"$ref": "WorkloadPolicyConfig",
29973006
"description": "WorkloadPolicyConfig is the configuration related to GCW workload policy"
@@ -3793,6 +3802,10 @@
37933802
],
37943803
"type": "string"
37953804
},
3805+
"defaultComputeClassConfig": {
3806+
"$ref": "DefaultComputeClassConfig",
3807+
"description": "Default compute class is a configuration for default compute class."
3808+
},
37963809
"enableNodeAutoprovisioning": {
37973810
"description": "Enables automatic node pool creation and deletion.",
37983811
"type": "boolean"
@@ -4597,6 +4610,17 @@
45974610
},
45984611
"type": "object"
45994612
},
4613+
"DefaultComputeClassConfig": {
4614+
"description": "DefaultComputeClassConfig defines default compute class configuration.",
4615+
"id": "DefaultComputeClassConfig",
4616+
"properties": {
4617+
"enabled": {
4618+
"description": "Enables default compute class.",
4619+
"type": "boolean"
4620+
}
4621+
},
4622+
"type": "object"
4623+
},
46004624
"DefaultSnatStatus": {
46014625
"description": "DefaultSnatStatus contains the desired state of whether default sNAT should be disabled on the cluster.",
46024626
"id": "DefaultSnatStatus",
@@ -4854,6 +4878,18 @@
48544878
"readOnly": true,
48554879
"type": "string"
48564880
},
4881+
"membershipType": {
4882+
"description": "The type of the cluster's fleet membership.",
4883+
"enum": [
4884+
"MEMBERSHIP_TYPE_UNSPECIFIED",
4885+
"LIGHTWEIGHT"
4886+
],
4887+
"enumDescriptions": [
4888+
"The MembershipType is not set.",
4889+
"The membership supports only lightweight compatible features."
4890+
],
4891+
"type": "string"
4892+
},
48574893
"preRegistered": {
48584894
"description": "Output only. Whether the cluster has been registered through the fleet API.",
48594895
"readOnly": true,
@@ -7346,6 +7382,20 @@
73467382
},
73477383
"type": "object"
73487384
},
7385+
"PrivilegedAdmissionConfig": {
7386+
"description": "PrivilegedAdmissionConfig stores the list of authorized allowlist paths for the cluster.",
7387+
"id": "PrivilegedAdmissionConfig",
7388+
"properties": {
7389+
"allowlistPaths": {
7390+
"description": "The customer allowlist Cloud Storage paths for the cluster. These paths are used with the `--autopilot-privileged-admission` flag to authorize privileged workloads in Autopilot clusters. Paths can be GKE-owned, in the format `gke:////`, or customer-owned, in the format `gs:///`. Wildcards (`*`) are supported to authorize all allowlists under specific paths or directories. Example: `gs://my-bucket/*` will authorize all allowlists under the `my-bucket` bucket.",
7391+
"items": {
7392+
"type": "string"
7393+
},
7394+
"type": "array"
7395+
}
7396+
},
7397+
"type": "object"
7398+
},
73497399
"PubSub": {
73507400
"description": "Pub/Sub specific notification config.",
73517401
"id": "PubSub",

discovery/container-v1beta1.json

Lines changed: 52 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2685,7 +2685,7 @@
26852685
}
26862686
}
26872687
},
2688-
"revision": "20250701",
2688+
"revision": "20250725",
26892689
"rootUrl": "https://container.googleapis.com/",
26902690
"schemas": {
26912691
"AcceleratorConfig": {
@@ -2984,7 +2984,12 @@
29842984
"AutoIpamConfig": {
29852985
"description": "AutoIpamConfig contains all information related to Auto IPAM",
29862986
"id": "AutoIpamConfig",
2987-
"properties": {},
2987+
"properties": {
2988+
"enabled": {
2989+
"description": "The flag that enables Auto IPAM on this cluster",
2990+
"type": "boolean"
2991+
}
2992+
},
29882993
"type": "object"
29892994
},
29902995
"AutoMonitoringConfig": {
@@ -3038,6 +3043,10 @@
30383043
"description": "Enable Autopilot",
30393044
"type": "boolean"
30403045
},
3046+
"privilegedAdmissionConfig": {
3047+
"$ref": "PrivilegedAdmissionConfig",
3048+
"description": "PrivilegedAdmissionConfig is the configuration related to privileged admission control."
3049+
},
30413050
"workloadPolicyConfig": {
30423051
"$ref": "WorkloadPolicyConfig",
30433052
"description": "WorkloadPolicyConfig is the configuration related to GCW workload policy"
@@ -3179,12 +3188,6 @@
31793188
},
31803189
"type": "object"
31813190
},
3182-
"AutoscaledRolloutPolicy": {
3183-
"description": "Autoscaled rollout policy uses cluster autoscaler during blue-green upgrades to scale both the green and blue pools.",
3184-
"id": "AutoscaledRolloutPolicy",
3185-
"properties": {},
3186-
"type": "object"
3187-
},
31883191
"AvailableVersion": {
31893192
"deprecated": true,
31903193
"description": "Deprecated.",
@@ -3324,10 +3327,6 @@
33243327
"description": "Settings for blue-green upgrade.",
33253328
"id": "BlueGreenSettings",
33263329
"properties": {
3327-
"autoscaledRolloutPolicy": {
3328-
"$ref": "AutoscaledRolloutPolicy",
3329-
"description": "Autoscaled policy for cluster autoscaler enabled blue-green upgrade."
3330-
},
33313330
"nodePoolSoakDuration": {
33323331
"description": "Time needed after draining entire blue pool. After this period, blue pool will be cleaned up.",
33333332
"format": "google-duration",
@@ -3938,6 +3937,10 @@
39383937
],
39393938
"type": "string"
39403939
},
3940+
"defaultComputeClassConfig": {
3941+
"$ref": "DefaultComputeClassConfig",
3942+
"description": "Default compute class is a configuration for default compute class."
3943+
},
39413944
"enableNodeAutoprovisioning": {
39423945
"description": "Enables automatic node pool creation and deletion.",
39433946
"type": "boolean"
@@ -4826,6 +4829,17 @@
48264829
},
48274830
"type": "object"
48284831
},
4832+
"DefaultComputeClassConfig": {
4833+
"description": "DefaultComputeClassConfig defines default compute class configuration.",
4834+
"id": "DefaultComputeClassConfig",
4835+
"properties": {
4836+
"enabled": {
4837+
"description": "Enables default compute class.",
4838+
"type": "boolean"
4839+
}
4840+
},
4841+
"type": "object"
4842+
},
48294843
"DefaultSnatStatus": {
48304844
"description": "DefaultSnatStatus contains the desired state of whether default sNAT should be disabled on the cluster.",
48314845
"id": "DefaultSnatStatus",
@@ -5095,6 +5109,18 @@
50955109
"readOnly": true,
50965110
"type": "string"
50975111
},
5112+
"membershipType": {
5113+
"description": "The type of the cluster's fleet membership.",
5114+
"enum": [
5115+
"MEMBERSHIP_TYPE_UNSPECIFIED",
5116+
"LIGHTWEIGHT"
5117+
],
5118+
"enumDescriptions": [
5119+
"The MembershipType is not set.",
5120+
"The membership supports only lightweight compatible features."
5121+
],
5122+
"type": "string"
5123+
},
50985124
"preRegistered": {
50995125
"description": "Output only. Whether the cluster has been registered through the fleet API.",
51005126
"readOnly": true,
@@ -7794,6 +7820,20 @@
77947820
},
77957821
"type": "object"
77967822
},
7823+
"PrivilegedAdmissionConfig": {
7824+
"description": "PrivilegedAdmissionConfig stores the list of authorized allowlist paths for the cluster.",
7825+
"id": "PrivilegedAdmissionConfig",
7826+
"properties": {
7827+
"allowlistPaths": {
7828+
"description": "The customer allowlist Cloud Storage paths for the cluster. These paths are used with the `--autopilot-privileged-admission` flag to authorize privileged workloads in Autopilot clusters. Paths can be GKE-owned, in the format `gke:////`, or customer-owned, in the format `gs:///`. Wildcards (`*`) are supported to authorize all allowlists under specific paths or directories. Example: `gs://my-bucket/*` will authorize all allowlists under the `my-bucket` bucket.",
7829+
"items": {
7830+
"type": "string"
7831+
},
7832+
"type": "array"
7833+
}
7834+
},
7835+
"type": "object"
7836+
},
77977837
"ProtectConfig": {
77987838
"description": "ProtectConfig defines the flags needed to enable/disable features for the Protect API.",
77997839
"id": "ProtectConfig",

src/apis/container/v1.ts

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,12 @@ export namespace container_v1 {
337337
/**
338338
* AutoIpamConfig contains all information related to Auto IPAM
339339
*/
340-
export interface Schema$AutoIpamConfig {}
340+
export interface Schema$AutoIpamConfig {
341+
/**
342+
* The flag that enables Auto IPAM on this cluster
343+
*/
344+
enabled?: boolean | null;
345+
}
341346
/**
342347
* AutoMonitoringConfig defines the configuration for GKE Workload Auto-Monitoring.
343348
*/
@@ -355,6 +360,10 @@ export namespace container_v1 {
355360
* Enable Autopilot
356361
*/
357362
enabled?: boolean | null;
363+
/**
364+
* PrivilegedAdmissionConfig is the configuration related to privileged admission control.
365+
*/
366+
privilegedAdmissionConfig?: Schema$PrivilegedAdmissionConfig;
358367
/**
359368
* WorkloadPolicyConfig is the configuration related to GCW workload policy
360369
*/
@@ -973,6 +982,10 @@ export namespace container_v1 {
973982
* Defines autoscaling behaviour.
974983
*/
975984
autoscalingProfile?: string | null;
985+
/**
986+
* Default compute class is a configuration for default compute class.
987+
*/
988+
defaultComputeClassConfig?: Schema$DefaultComputeClassConfig;
976989
/**
977990
* Enables automatic node pool creation and deletion.
978991
*/
@@ -1510,6 +1523,15 @@ export namespace container_v1 {
15101523
*/
15111524
state?: string | null;
15121525
}
1526+
/**
1527+
* DefaultComputeClassConfig defines default compute class configuration.
1528+
*/
1529+
export interface Schema$DefaultComputeClassConfig {
1530+
/**
1531+
* Enables default compute class.
1532+
*/
1533+
enabled?: boolean | null;
1534+
}
15131535
/**
15141536
* DefaultSnatStatus contains the desired state of whether default sNAT should be disabled on the cluster.
15151537
*/
@@ -1723,6 +1745,10 @@ export namespace container_v1 {
17231745
* Output only. The full resource name of the registered fleet membership of the cluster, in the format `//gkehub.googleapis.com/projects/x/locations/x/memberships/x`.
17241746
*/
17251747
membership?: string | null;
1748+
/**
1749+
* The type of the cluster's fleet membership.
1750+
*/
1751+
membershipType?: string | null;
17261752
/**
17271753
* Output only. Whether the cluster has been registered through the fleet API.
17281754
*/
@@ -3396,6 +3422,15 @@ export namespace container_v1 {
33963422
*/
33973423
enabled?: boolean | null;
33983424
}
3425+
/**
3426+
* PrivilegedAdmissionConfig stores the list of authorized allowlist paths for the cluster.
3427+
*/
3428+
export interface Schema$PrivilegedAdmissionConfig {
3429+
/**
3430+
* The customer allowlist Cloud Storage paths for the cluster. These paths are used with the `--autopilot-privileged-admission` flag to authorize privileged workloads in Autopilot clusters. Paths can be GKE-owned, in the format `gke:////`, or customer-owned, in the format `gs:///`. Wildcards (`*`) are supported to authorize all allowlists under specific paths or directories. Example: `gs://my-bucket/x` will authorize all allowlists under the `my-bucket` bucket.
3431+
*/
3432+
allowlistPaths?: string[] | null;
3433+
}
33993434
/**
34003435
* Pub/Sub specific notification config.
34013436
*/

0 commit comments

Comments
 (0)