Skip to content

Commit

Permalink
feat(container): update the API
Browse files Browse the repository at this point in the history
#### container:v1beta1

The following keys were added:
- schemas.Cluster.properties.id.description
- schemas.Cluster.properties.id.readOnly
- schemas.Cluster.properties.id.type
- schemas.Cluster.properties.workloadCertificates.$ref
- schemas.Cluster.properties.workloadCertificates.description
- schemas.ClusterUpdate.properties.desiredWorkloadCertificates.$ref
- schemas.ClusterUpdate.properties.desiredWorkloadCertificates.description
- schemas.WorkloadCertificates.description
- schemas.WorkloadCertificates.id
- schemas.WorkloadCertificates.properties.enableCertificates.description
- schemas.WorkloadCertificates.properties.enableCertificates.type
- schemas.WorkloadCertificates.type

The following keys were changed:
- auth.oauth2.scopes.https://www.googleapis.com/auth/cloud-platform.description
- schemas.NetworkTags.description

#### container:v1

The following keys were added:
- schemas.Cluster.properties.confidentialNodes.$ref
- schemas.Cluster.properties.confidentialNodes.description
- schemas.Cluster.properties.id.description
- schemas.Cluster.properties.id.readOnly
- schemas.Cluster.properties.id.type
- schemas.ConfidentialNodes.description
- schemas.ConfidentialNodes.id
- schemas.ConfidentialNodes.properties.enabled.description
- schemas.ConfidentialNodes.properties.enabled.type
- schemas.ConfidentialNodes.type

The following keys were changed:
- auth.oauth2.scopes.https://www.googleapis.com/auth/cloud-platform.description
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 20, 2021
1 parent dd7fac0 commit 23b7424
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 6 deletions.
24 changes: 22 additions & 2 deletions discovery/container-v1.json
Expand Up @@ -3,7 +3,7 @@
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
"description": "See, edit, configure, and delete your Google Cloud Platform data"
}
}
}
Expand Down Expand Up @@ -2459,7 +2459,7 @@
}
}
},
"revision": "20210314",
"revision": "20210406",
"rootUrl": "https://container.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
Expand Down Expand Up @@ -2736,6 +2736,10 @@
},
"type": "array"
},
"confidentialNodes": {
"$ref": "ConfidentialNodes",
"description": "Configuration of Confidential Nodes"
},
"createTime": {
"description": "[Output only] The time the cluster was created, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
"type": "string"
Expand Down Expand Up @@ -2781,6 +2785,11 @@
"description": "[Output only] The time the cluster will be automatically deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
"type": "string"
},
"id": {
"description": "Output only. Unique id for the cluster.",
"readOnly": true,
"type": "string"
},
"initialClusterVersion": {
"description": "The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and currentNodeVersion. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - \"latest\": picks the highest valid Kubernetes version - \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version - \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version - \"1.X.Y-gke.N\": picks an explicit Kubernetes version - \"\",\"-\": picks the default Kubernetes version",
"type": "string"
Expand Down Expand Up @@ -3122,6 +3131,17 @@
},
"type": "object"
},
"ConfidentialNodes": {
"description": "ConfidentialNodes is configuration for the confidential nodes feature, which makes nodes run on confidential VMs.",
"id": "ConfidentialNodes",
"properties": {
"enabled": {
"description": "Whether Confidential Nodes feature is enabled for all nodes in this cluster.",
"type": "boolean"
}
},
"type": "object"
},
"ConfigConnectorConfig": {
"description": "Configuration options for the Config Connector add-on.",
"id": "ConfigConnectorConfig",
Expand Down
30 changes: 27 additions & 3 deletions discovery/container-v1beta1.json
Expand Up @@ -3,7 +3,7 @@
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
"description": "See, edit, configure, and delete your Google Cloud Platform data"
}
}
}
Expand Down Expand Up @@ -2484,7 +2484,7 @@
}
}
},
"revision": "20210312",
"revision": "20210406",
"rootUrl": "https://container.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
Expand Down Expand Up @@ -2837,6 +2837,11 @@
"description": "[Output only] The time the cluster will be automatically deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
"type": "string"
},
"id": {
"description": "Output only. Unique id for the cluster.",
"readOnly": true,
"type": "string"
},
"initialClusterVersion": {
"description": "The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and currentNodeVersion. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - \"latest\": picks the highest valid Kubernetes version - \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version - \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version - \"1.X.Y-gke.N\": picks an explicit Kubernetes version - \"\",\"-\": picks the default Kubernetes version",
"type": "string"
Expand Down Expand Up @@ -3021,6 +3026,10 @@
"$ref": "VerticalPodAutoscaling",
"description": "Cluster-level Vertical Pod Autoscaling configuration."
},
"workloadCertificates": {
"$ref": "WorkloadCertificates",
"description": "Configuration for issuance of mTLS keys and certificates to Kubernetes pods."
},
"workloadIdentityConfig": {
"$ref": "WorkloadIdentityConfig",
"description": "Configuration for the use of Kubernetes Service Accounts in GCP IAM policies."
Expand Down Expand Up @@ -3239,6 +3248,10 @@
"$ref": "VerticalPodAutoscaling",
"description": "Cluster-level Vertical Pod Autoscaling configuration."
},
"desiredWorkloadCertificates": {
"$ref": "WorkloadCertificates",
"description": "Configuration for issuance of mTLS keys and certificates to Kubernetes pods."
},
"desiredWorkloadIdentityConfig": {
"$ref": "WorkloadIdentityConfig",
"description": "Configuration for Workload Identity."
Expand Down Expand Up @@ -4096,7 +4109,7 @@
"type": "object"
},
"NetworkTags": {
"description": "Collection of Compute Engine network tags that can be applied to a node's underyling VM instance. (See `tags` field in [`NodeConfig`](/kubernetes-engine/docs/reference/rest/v1/NodeConfig)).",
"description": "Collection of Compute Engine network tags that can be applied to a node's underlying VM instance. (See `tags` field in [`NodeConfig`](/kubernetes-engine/docs/reference/rest/v1/NodeConfig)).",
"id": "NetworkTags",
"properties": {
"tags": {
Expand Down Expand Up @@ -5810,6 +5823,17 @@
},
"type": "object"
},
"WorkloadCertificates": {
"description": "Configuration for issuance of mTLS keys and certificates to Kubernetes pods.",
"id": "WorkloadCertificates",
"properties": {
"enableCertificates": {
"description": "enable_certificates controls issuance of workload mTLS certificates. If set, the GKE Workload Identity Certificates controller and node agent will be deployed in the cluster, which can then be configured by creating a WorkloadCertificateConfig Custom Resource. Requires Workload Identity (workload_pool must be non-empty).",
"type": "boolean"
}
},
"type": "object"
},
"WorkloadIdentityConfig": {
"description": "Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.",
"id": "WorkloadIdentityConfig",
Expand Down
21 changes: 21 additions & 0 deletions src/apis/container/v1.ts
Expand Up @@ -357,6 +357,10 @@ export namespace container_v1 {
* Which conditions caused the current cluster state.
*/
conditions?: Schema$StatusCondition[];
/**
* Configuration of Confidential Nodes
*/
confidentialNodes?: Schema$ConfidentialNodes;
/**
* [Output only] The time the cluster was created, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
*/
Expand Down Expand Up @@ -401,6 +405,10 @@ export namespace container_v1 {
* [Output only] The time the cluster will be automatically deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
*/
expireTime?: string | null;
/**
* Output only. Unique id for the cluster.
*/
id?: string | null;
/**
* The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and currentNodeVersion. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - "latest": picks the highest valid Kubernetes version - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - "1.X.Y-gke.N": picks an explicit Kubernetes version - "","-": picks the default Kubernetes version
*/
Expand Down Expand Up @@ -681,6 +689,15 @@ export namespace container_v1 {
*/
zone?: string | null;
}
/**
* ConfidentialNodes is configuration for the confidential nodes feature, which makes nodes run on confidential VMs.
*/
export interface Schema$ConfidentialNodes {
/**
* Whether Confidential Nodes feature is enabled for all nodes in this cluster.
*/
enabled?: boolean | null;
}
/**
* Configuration options for the Config Connector add-on.
*/
Expand Down Expand Up @@ -3257,6 +3274,7 @@ export namespace container_v1 {
* // "binaryAuthorization": {},
* // "clusterIpv4Cidr": "my_clusterIpv4Cidr",
* // "conditions": [],
* // "confidentialNodes": {},
* // "createTime": "my_createTime",
* // "currentMasterVersion": "my_currentMasterVersion",
* // "currentNodeCount": 0,
Expand All @@ -3268,6 +3286,7 @@ export namespace container_v1 {
* // "enableTpu": false,
* // "endpoint": "my_endpoint",
* // "expireTime": "my_expireTime",
* // "id": "my_id",
* // "initialClusterVersion": "my_initialClusterVersion",
* // "initialNodeCount": 0,
* // "instanceGroupUrls": [],
Expand Down Expand Up @@ -8763,6 +8782,7 @@ export namespace container_v1 {
* // "binaryAuthorization": {},
* // "clusterIpv4Cidr": "my_clusterIpv4Cidr",
* // "conditions": [],
* // "confidentialNodes": {},
* // "createTime": "my_createTime",
* // "currentMasterVersion": "my_currentMasterVersion",
* // "currentNodeCount": 0,
Expand All @@ -8774,6 +8794,7 @@ export namespace container_v1 {
* // "enableTpu": false,
* // "endpoint": "my_endpoint",
* // "expireTime": "my_expireTime",
* // "id": "my_id",
* // "initialClusterVersion": "my_initialClusterVersion",
* // "initialNodeCount": 0,
* // "instanceGroupUrls": [],
Expand Down
27 changes: 26 additions & 1 deletion src/apis/container/v1beta1.ts
Expand Up @@ -430,6 +430,10 @@ export namespace container_v1beta1 {
* [Output only] The time the cluster will be automatically deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
*/
expireTime?: string | null;
/**
* Output only. Unique id for the cluster.
*/
id?: string | null;
/**
* The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and currentNodeVersion. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - "latest": picks the highest valid Kubernetes version - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - "1.X.Y-gke.N": picks an explicit Kubernetes version - "","-": picks the default Kubernetes version
*/
Expand Down Expand Up @@ -582,6 +586,10 @@ export namespace container_v1beta1 {
* Cluster-level Vertical Pod Autoscaling configuration.
*/
verticalPodAutoscaling?: Schema$VerticalPodAutoscaling;
/**
* Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
*/
workloadCertificates?: Schema$WorkloadCertificates;
/**
* Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
*/
Expand Down Expand Up @@ -741,6 +749,10 @@ export namespace container_v1beta1 {
* Cluster-level Vertical Pod Autoscaling configuration.
*/
desiredVerticalPodAutoscaling?: Schema$VerticalPodAutoscaling;
/**
* Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
*/
desiredWorkloadCertificates?: Schema$WorkloadCertificates;
/**
* Configuration for Workload Identity.
*/
Expand Down Expand Up @@ -1397,7 +1409,7 @@ export namespace container_v1beta1 {
disabled?: boolean | null;
}
/**
* Collection of Compute Engine network tags that can be applied to a node's underyling VM instance. (See `tags` field in [`NodeConfig`](/kubernetes-engine/docs/reference/rest/v1/NodeConfig)).
* Collection of Compute Engine network tags that can be applied to a node's underlying VM instance. (See `tags` field in [`NodeConfig`](/kubernetes-engine/docs/reference/rest/v1/NodeConfig)).
*/
export interface Schema$NetworkTags {
/**
Expand Down Expand Up @@ -2658,6 +2670,15 @@ export namespace container_v1beta1 {
*/
enabled?: boolean | null;
}
/**
* Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
*/
export interface Schema$WorkloadCertificates {
/**
* enable_certificates controls issuance of workload mTLS certificates. If set, the GKE Workload Identity Certificates controller and node agent will be deployed in the cluster, which can then be configured by creating a WorkloadCertificateConfig Custom Resource. Requires Workload Identity (workload_pool must be non-empty).
*/
enableCertificates?: boolean | null;
}
/**
* Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
*/
Expand Down Expand Up @@ -3721,6 +3742,7 @@ export namespace container_v1beta1 {
* // "enableTpu": false,
* // "endpoint": "my_endpoint",
* // "expireTime": "my_expireTime",
* // "id": "my_id",
* // "initialClusterVersion": "my_initialClusterVersion",
* // "initialNodeCount": 0,
* // "instanceGroupUrls": [],
Expand Down Expand Up @@ -3759,6 +3781,7 @@ export namespace container_v1beta1 {
* // "tpuConfig": {},
* // "tpuIpv4CidrBlock": "my_tpuIpv4CidrBlock",
* // "verticalPodAutoscaling": {},
* // "workloadCertificates": {},
* // "workloadIdentityConfig": {},
* // "zone": "my_zone"
* // }
Expand Down Expand Up @@ -9245,6 +9268,7 @@ export namespace container_v1beta1 {
* // "enableTpu": false,
* // "endpoint": "my_endpoint",
* // "expireTime": "my_expireTime",
* // "id": "my_id",
* // "initialClusterVersion": "my_initialClusterVersion",
* // "initialNodeCount": 0,
* // "instanceGroupUrls": [],
Expand Down Expand Up @@ -9283,6 +9307,7 @@ export namespace container_v1beta1 {
* // "tpuConfig": {},
* // "tpuIpv4CidrBlock": "my_tpuIpv4CidrBlock",
* // "verticalPodAutoscaling": {},
* // "workloadCertificates": {},
* // "workloadIdentityConfig": {},
* // "zone": "my_zone"
* // }
Expand Down

0 comments on commit 23b7424

Please sign in to comment.