Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
feat: Add support for specifying stack type for clusters. This will a…
Browse files Browse the repository at this point in the history
…llow clusters to be created as dual stack or toggled between IPV4 and dual stack (#323)

* feat: Add support for specifying stack type for clusters. This will allow clusters to be created as dual stack or toggled between IPV4 and dual stack

Clients can now configure dual stack clusters by specifying a stack type of IPV4_IPV6 during cluster creation, or with an update command. When used with a cluster creation command that creates a new subnet, the ipv6_access_type field can be used to specify whether the subnet has internal or external IPv6 access. When used with a cluster update command, the subnet must already be dual stack.

PiperOrigin-RevId: 495438580

Source-Link: googleapis/googleapis@483c1ee

Source-Link: googleapis/googleapis-gen@20bdefc
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjBiZGVmY2Y2Y2ZmM2NlYTM0YTY5ZjdmOGY1NzExMmFhYTYwMmM1NyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Dec 15, 2022
1 parent 30da141 commit 5c1d04f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions google/cloud/container_v1/types/cluster_service.py
Expand Up @@ -2633,6 +2633,12 @@ class ClusterUpdate(proto.Message):
desired_node_pool_logging_config (google.cloud.container_v1.types.NodePoolLoggingConfig):
The desired node pool logging configuration
defaults for the cluster.
desired_stack_type (google.cloud.container_v1.types.StackType):
The desired stack type of the cluster.
If a stack type is provided and does not match
the current stack type of the cluster, update
will attempt to change the stack type to the new
type.
"""

desired_node_version: str = proto.Field(
Expand Down Expand Up @@ -2820,6 +2826,11 @@ class ClusterUpdate(proto.Message):
number=116,
message="NodePoolLoggingConfig",
)
desired_stack_type: "StackType" = proto.Field(
proto.ENUM,
number=119,
enum="StackType",
)


class Operation(proto.Message):
Expand Down

0 comments on commit 5c1d04f

Please sign in to comment.