Skip to content

Commit

Permalink
feat(container): update the API
Browse files Browse the repository at this point in the history
#### container:v1
The following keys were added:
- schemas.AddonsConfig.properties.dnsCacheConfig.$ref
- schemas.AddonsConfig.properties.dnsCacheConfig.description
- schemas.Cluster.properties.releaseChannel.$ref
- schemas.Cluster.properties.releaseChannel.description
- schemas.ClusterUpdate.properties.desiredReleaseChannel.$ref
- schemas.ClusterUpdate.properties.desiredReleaseChannel.description
- schemas.DnsCacheConfig.description
- schemas.DnsCacheConfig.id
- schemas.DnsCacheConfig.properties.enabled.description
- schemas.DnsCacheConfig.properties.enabled.type
- schemas.DnsCacheConfig.type
- schemas.NodeConfig.properties.bootDiskKmsKey.description
- schemas.NodeConfig.properties.bootDiskKmsKey.type
- schemas.ReleaseChannel.description
- schemas.ReleaseChannel.id
- schemas.ReleaseChannel.properties.channel.description
- schemas.ReleaseChannel.properties.channel.enum
- schemas.ReleaseChannel.properties.channel.enumDescriptions
- schemas.ReleaseChannel.properties.channel.type
- schemas.ReleaseChannel.type
- schemas.ReleaseChannelConfig.description
- schemas.ReleaseChannelConfig.id
- schemas.ReleaseChannelConfig.properties.channel.description
- schemas.ReleaseChannelConfig.properties.channel.enum
- schemas.ReleaseChannelConfig.properties.channel.enumDescriptions
- schemas.ReleaseChannelConfig.properties.channel.type
- schemas.ReleaseChannelConfig.properties.defaultVersion.description
- schemas.ReleaseChannelConfig.properties.defaultVersion.type
- schemas.ReleaseChannelConfig.properties.validVersions.description
- schemas.ReleaseChannelConfig.properties.validVersions.items.type
- schemas.ReleaseChannelConfig.properties.validVersions.type
- schemas.ReleaseChannelConfig.type
- schemas.ServerConfig.properties.channels.description
- schemas.ServerConfig.properties.channels.items.$ref
- schemas.ServerConfig.properties.channels.type

The following keys were changed:
- schemas.Cluster.properties.currentNodeVersion.description
- schemas.Cluster.properties.initialNodeCount.description
- schemas.CreateClusterRequest.properties.cluster.description
- schemas.NodePool.properties.initialNodeCount.description
- schemas.ServerConfig.properties.validMasterVersions.description
- schemas.ServerConfig.properties.validNodeVersions.description

#### container:v1beta1
The following keys were added:
- schemas.LinuxNodeConfig.description
- schemas.LinuxNodeConfig.id
- schemas.LinuxNodeConfig.properties.sysctls.additionalProperties.type
- schemas.LinuxNodeConfig.properties.sysctls.description
- schemas.LinuxNodeConfig.properties.sysctls.type
- schemas.LinuxNodeConfig.type
- schemas.NodeConfig.properties.kubeletConfig.$ref
- schemas.NodeConfig.properties.kubeletConfig.description
- schemas.NodeConfig.properties.linuxNodeConfig.$ref
- schemas.NodeConfig.properties.linuxNodeConfig.description
- schemas.NodeKubeletConfig.description
- schemas.NodeKubeletConfig.id
- schemas.NodeKubeletConfig.properties.cpuCfsQuota.description
- schemas.NodeKubeletConfig.properties.cpuCfsQuota.type
- schemas.NodeKubeletConfig.properties.cpuCfsQuotaPeriod.description
- schemas.NodeKubeletConfig.properties.cpuCfsQuotaPeriod.type
- schemas.NodeKubeletConfig.properties.cpuManagerPolicy.description
- schemas.NodeKubeletConfig.properties.cpuManagerPolicy.type
- schemas.NodeKubeletConfig.type
- schemas.ReleaseChannelConfig.properties.validVersions.description
- schemas.ReleaseChannelConfig.properties.validVersions.items.type
- schemas.ReleaseChannelConfig.properties.validVersions.type
- schemas.UpdateNodePoolRequest.properties.kubeletConfig.$ref
- schemas.UpdateNodePoolRequest.properties.kubeletConfig.description
- schemas.UpdateNodePoolRequest.properties.linuxNodeConfig.$ref
- schemas.UpdateNodePoolRequest.properties.linuxNodeConfig.description

The following keys were changed:
- schemas.AutoprovisioningNodePoolDefaults.properties.management.description
- schemas.AutoprovisioningNodePoolDefaults.properties.minCpuPlatform.description
- schemas.AutoprovisioningNodePoolDefaults.properties.oauthScopes.description
- schemas.AutoprovisioningNodePoolDefaults.properties.serviceAccount.description
- schemas.AutoprovisioningNodePoolDefaults.properties.upgradeSettings.description
- schemas.AvailableVersion.description
- schemas.Cluster.properties.initialNodeCount.description
- schemas.CreateClusterRequest.properties.cluster.description
- schemas.NodePool.properties.initialNodeCount.description
- schemas.ReleaseChannel.description
- schemas.ReleaseChannel.properties.channel.enumDescriptions
- schemas.ReleaseChannelConfig.properties.availableVersions.description
- schemas.ReleaseChannelConfig.properties.channel.enumDescriptions
- schemas.ServerConfig.properties.validMasterVersions.description
- schemas.ServerConfig.properties.validNodeVersions.description
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jul 10, 2020
1 parent 02cce0d commit e221ff5
Show file tree
Hide file tree
Showing 4 changed files with 302 additions and 46 deletions.
105 changes: 98 additions & 7 deletions discovery/container-v1.json
Expand Up @@ -2459,7 +2459,7 @@
}
}
},
"revision": "20200519",
"revision": "20200619",
"rootUrl": "https://container.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
Expand All @@ -2486,6 +2486,10 @@
"$ref": "CloudRunConfig",
"description": "Configuration for the Cloud Run addon, which allows the user to use a\nmanaged Knative service."
},
"dnsCacheConfig": {
"$ref": "DnsCacheConfig",
"description": "Configuration for NodeLocalDNS, a dns cache running on cluster nodes"
},
"horizontalPodAutoscaling": {
"$ref": "HorizontalPodAutoscaling",
"description": "Configuration for the horizontal pod autoscaling feature, which\nincreases or decreases the number of replica pods a replication controller\nhas based on the resource usage of the existing pods."
Expand Down Expand Up @@ -2688,7 +2692,7 @@
"type": "integer"
},
"currentNodeVersion": {
"description": "[Output only] Deprecated, use\n[NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)\ninstead. The current version of the node software components. If they are\ncurrently at multiple versions because they're in the process of being\nupgraded, this reflects the minimum version of all nodes.",
"description": "[Output only] Deprecated, use\n[NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)\ninstead. The current version of the node software components. If they are\ncurrently at multiple versions because they're in the process of being\nupgraded, this reflects the minimum version of all nodes.",
"type": "string"
},
"databaseEncryption": {
Expand Down Expand Up @@ -2724,7 +2728,7 @@
"type": "string"
},
"initialNodeCount": {
"description": "The number of nodes to create in this cluster. You must ensure that your\nCompute Engine <a href=\"/compute/docs/resource-quotas\">resource quota</a>\nis sufficient for this number of instances. You must also have available\nfirewall and routes quota.\nFor requests, this field should only be used in lieu of a\n\"node_pool\" object, since this configuration (along with the\n\"node_config\") will be used to create a \"NodePool\" object with an\nauto-generated name. Do not use this and a node_pool at the same time.\n\nThis field is deprecated, use node_pool.initial_node_count instead.",
"description": "The number of nodes to create in this cluster. You must ensure that your\nCompute Engine [resource quota](https://cloud.google.com/compute/quotas)\nis sufficient for this number of instances. You must also have available\nfirewall and routes quota.\nFor requests, this field should only be used in lieu of a\n\"node_pool\" object, since this configuration (along with the\n\"node_config\") will be used to create a \"NodePool\" object with an\nauto-generated name. Do not use this and a node_pool at the same time.\n\nThis field is deprecated, use node_pool.initial_node_count instead.",
"format": "int32",
"type": "integer"
},
Expand Down Expand Up @@ -2814,6 +2818,10 @@
"$ref": "PrivateClusterConfig",
"description": "Configuration for private cluster."
},
"releaseChannel": {
"$ref": "ReleaseChannel",
"description": "Release channel configuration."
},
"resourceLabels": {
"additionalProperties": {
"type": "string"
Expand Down Expand Up @@ -2978,6 +2986,10 @@
"description": "The Kubernetes version to change the nodes to (typically an\nupgrade).\n\nUsers may specify either explicit versions offered by\nKubernetes Engine or version aliases, which have the following behavior:\n\n- \"latest\": picks the highest valid Kubernetes version\n- \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version\n- \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version\n- \"1.X.Y-gke.N\": picks an explicit Kubernetes version\n- \"-\": picks the Kubernetes master version",
"type": "string"
},
"desiredReleaseChannel": {
"$ref": "ReleaseChannel",
"description": "The desired release channel configuration."
},
"desiredResourceUsageExportConfig": {
"$ref": "ResourceUsageExportConfig",
"description": "The desired configuration for exporting resource usage."
Expand Down Expand Up @@ -3037,7 +3049,7 @@
"properties": {
"cluster": {
"$ref": "Cluster",
"description": "Required. A [cluster\nresource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)"
"description": "Required. A [cluster\nresource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)"
},
"parent": {
"description": "The parent (project and location) where the cluster will be created.\nSpecified in the format `projects/*/locations/*`.",
Expand Down Expand Up @@ -3121,6 +3133,17 @@
},
"type": "object"
},
"DnsCacheConfig": {
"description": "Configuration for NodeLocal DNSCache",
"id": "DnsCacheConfig",
"properties": {
"enabled": {
"description": "Whether NodeLocal DNSCache is enabled for this cluster.",
"type": "boolean"
}
},
"type": "object"
},
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
"id": "Empty",
Expand Down Expand Up @@ -3633,6 +3656,10 @@
},
"type": "array"
},
"bootDiskKmsKey": {
"description": "\nThe Customer Managed Encryption Key used to encrypt the boot disk attached\nto each node in the node pool. This should be of the form\nprojects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].\nFor more information about protecting resources with Cloud KMS Keys please\nsee:\nhttps://cloud.google.com/compute/docs/disks/customer-managed-encryption",
"type": "string"
},
"diskSizeGb": {
"description": "Size of the disk attached to each node, specified in GB.\nThe smallest allowed disk size is 10GB.\n\nIf unspecified, the default disk size is 100GB.",
"format": "int32",
Expand Down Expand Up @@ -3760,7 +3787,7 @@
"description": "The node configuration of the pool."
},
"initialNodeCount": {
"description": "The initial node count for the pool. You must ensure that your\nCompute Engine <a href=\"/compute/docs/resource-quotas\">resource quota</a>\nis sufficient for this number of instances. You must also have available\nfirewall and routes quota.",
"description": "The initial node count for the pool. You must ensure that your\nCompute Engine [resource quota](https://cloud.google.com/compute/quotas)\nis sufficient for this number of instances. You must also have available\nfirewall and routes quota.",
"format": "int32",
"type": "integer"
},
Expand Down Expand Up @@ -4102,6 +4129,63 @@
},
"type": "object"
},
"ReleaseChannel": {
"description": "ReleaseChannel indicates which release channel a cluster is\nsubscribed to. Release channels are arranged in order of risk.\n\nWhen a cluster is subscribed to a release channel, Google maintains\nboth the master version and the node version. Node auto-upgrade\ndefaults to true and cannot be disabled.",
"id": "ReleaseChannel",
"properties": {
"channel": {
"description": "channel specifies which release channel the cluster is subscribed to.",
"enum": [
"UNSPECIFIED",
"RAPID",
"REGULAR",
"STABLE"
],
"enumDescriptions": [
"No channel specified.",
"RAPID channel is offered on an early access basis for customers who want\nto test new releases.\n\nWARNING: Versions available in the RAPID Channel may be subject to\nunresolved issues with no known workaround and are not subject to any\nSLAs.",
"Clusters subscribed to REGULAR receive versions that are considered GA\nquality. REGULAR is intended for production users who want to take\nadvantage of new features.",
"Clusters subscribed to STABLE receive versions that are known to be\nstable and reliable in production."
],
"type": "string"
}
},
"type": "object"
},
"ReleaseChannelConfig": {
"description": "ReleaseChannelConfig exposes configuration for a release channel.",
"id": "ReleaseChannelConfig",
"properties": {
"channel": {
"description": "The release channel this configuration applies to.",
"enum": [
"UNSPECIFIED",
"RAPID",
"REGULAR",
"STABLE"
],
"enumDescriptions": [
"No channel specified.",
"RAPID channel is offered on an early access basis for customers who want\nto test new releases.\n\nWARNING: Versions available in the RAPID Channel may be subject to\nunresolved issues with no known workaround and are not subject to any\nSLAs.",
"Clusters subscribed to REGULAR receive versions that are considered GA\nquality. REGULAR is intended for production users who want to take\nadvantage of new features.",
"Clusters subscribed to STABLE receive versions that are known to be\nstable and reliable in production."
],
"type": "string"
},
"defaultVersion": {
"description": "The default version for newly created clusters on the channel.",
"type": "string"
},
"validVersions": {
"description": "List of valid versions for the channel.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"ReservationAffinity": {
"description": "[ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)\nis the configuration of desired reservation which instances could take\ncapacity from.",
"id": "ReservationAffinity",
Expand Down Expand Up @@ -4226,6 +4310,13 @@
"description": "Kubernetes Engine service configuration.",
"id": "ServerConfig",
"properties": {
"channels": {
"description": "List of release channel configurations.",
"items": {
"$ref": "ReleaseChannelConfig"
},
"type": "array"
},
"defaultClusterVersion": {
"description": "Version of Kubernetes the service deploys by default.",
"type": "string"
Expand All @@ -4242,14 +4333,14 @@
"type": "array"
},
"validMasterVersions": {
"description": "List of valid master versions.",
"description": "List of valid master versions, in descending order.",
"items": {
"type": "string"
},
"type": "array"
},
"validNodeVersions": {
"description": "List of valid node upgrade target versions.",
"description": "List of valid node upgrade target versions, in descending order.",
"items": {
"type": "string"
},
Expand Down

0 comments on commit e221ff5

Please sign in to comment.