Skip to content

Commit

Permalink
feat: Add KUBE_DNS option to DNSConfig.cluster_dns (#381)
Browse files Browse the repository at this point in the history
* feat: Add `KUBE_DNS` option to `DNSConfig.cluster_dns`

---
feat: add Tier 1 cluster-level API network_performance_config
PiperOrigin-RevId: 544216853

Source-Link: googleapis/googleapis@deabec5

Source-Link: googleapis/googleapis-gen@78ec6ea
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzhlYzZlYWVlZTQxMGE2YmVlMjM2YWNiZjk2MWY3ZjMwZGQyMDZkOSJ9

* 🦉 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] authored Jun 29, 2023
1 parent 560ef61 commit 464c37e
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3201,6 +3201,8 @@ class ClusterUpdate(proto.Message):
desired_security_posture_config (google.cloud.container_v1.types.SecurityPostureConfig):
Enable/Disable Security Posture API features
for the cluster.
desired_network_performance_config (google.cloud.container_v1.types.NetworkConfig.ClusterNetworkPerformanceConfig):
The desired network performance config.
desired_enable_fqdn_network_policy (bool):
Enable/Disable FQDN Network Policy for the
cluster.
Expand Down Expand Up @@ -3432,6 +3434,11 @@ class ClusterUpdate(proto.Message):
number=124,
message="SecurityPostureConfig",
)
desired_network_performance_config: "NetworkConfig.ClusterNetworkPerformanceConfig" = proto.Field(
proto.MESSAGE,
number=125,
message="NetworkConfig.ClusterNetworkPerformanceConfig",
)
desired_enable_fqdn_network_policy: bool = proto.Field(
proto.BOOL,
number=126,
Expand Down Expand Up @@ -7127,13 +7134,48 @@ class NetworkConfig(proto.Message):
gateway_api_config (google.cloud.container_v1.types.GatewayAPIConfig):
GatewayAPIConfig contains the desired config
of Gateway API on this cluster.
network_performance_config (google.cloud.container_v1.types.NetworkConfig.ClusterNetworkPerformanceConfig):
Network bandwidth tier configuration.
enable_fqdn_network_policy (bool):
Whether FQDN Network Policy is enabled on
this cluster.
This field is a member of `oneof`_ ``_enable_fqdn_network_policy``.
"""

class ClusterNetworkPerformanceConfig(proto.Message):
r"""Configuration of network bandwidth tiers
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes:
total_egress_bandwidth_tier (google.cloud.container_v1.types.NetworkConfig.ClusterNetworkPerformanceConfig.Tier):
Specifies the total network bandwidth tier
for NodePools in the cluster.
This field is a member of `oneof`_ ``_total_egress_bandwidth_tier``.
"""

class Tier(proto.Enum):
r"""Node network tier
Values:
TIER_UNSPECIFIED (0):
Default value
TIER_1 (1):
Higher bandwidth, actual values based on VM
size.
"""
TIER_UNSPECIFIED = 0
TIER_1 = 1

total_egress_bandwidth_tier: "NetworkConfig.ClusterNetworkPerformanceConfig.Tier" = proto.Field(
proto.ENUM,
number=1,
optional=True,
enum="NetworkConfig.ClusterNetworkPerformanceConfig.Tier",
)

network: str = proto.Field(
proto.STRING,
number=1,
Expand Down Expand Up @@ -7180,6 +7222,11 @@ class NetworkConfig(proto.Message):
number=16,
message="GatewayAPIConfig",
)
network_performance_config: ClusterNetworkPerformanceConfig = proto.Field(
proto.MESSAGE,
number=18,
message=ClusterNetworkPerformanceConfig,
)
enable_fqdn_network_policy: bool = proto.Field(
proto.BOOL,
number=19,
Expand Down Expand Up @@ -7642,10 +7689,13 @@ class Provider(proto.Enum):
DNS resolution.
CLOUD_DNS (2):
Use CloudDNS for DNS resolution.
KUBE_DNS (3):
Use KubeDNS for DNS resolution
"""
PROVIDER_UNSPECIFIED = 0
PLATFORM_DEFAULT = 1
CLOUD_DNS = 2
KUBE_DNS = 3

class DNSScope(proto.Enum):
r"""DNSScope lists the various scopes of access to cluster DNS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-container",
"version": "2.24.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-container",
"version": "2.24.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 464c37e

Please sign in to comment.