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

Commit 91b001a

Browse files
feat: Add KUBE_DNS option to DNSConfig.cluster_dns (#381)
* 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: https://github.com/googleapis/googleapis-gen/commit/78ec6eaeee410a6bee236acbf961f7f30dd206d9 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>
1 parent 742c082 commit 91b001a

File tree

3 files changed

+52
-2
lines changed

3 files changed

+52
-2
lines changed

google/cloud/container_v1/types/cluster_service.py

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3201,6 +3201,8 @@ class ClusterUpdate(proto.Message):
32013201
desired_security_posture_config (google.cloud.container_v1.types.SecurityPostureConfig):
32023202
Enable/Disable Security Posture API features
32033203
for the cluster.
3204+
desired_network_performance_config (google.cloud.container_v1.types.NetworkConfig.ClusterNetworkPerformanceConfig):
3205+
The desired network performance config.
32043206
desired_enable_fqdn_network_policy (bool):
32053207
Enable/Disable FQDN Network Policy for the
32063208
cluster.
@@ -3432,6 +3434,11 @@ class ClusterUpdate(proto.Message):
34323434
number=124,
34333435
message="SecurityPostureConfig",
34343436
)
3437+
desired_network_performance_config: "NetworkConfig.ClusterNetworkPerformanceConfig" = proto.Field(
3438+
proto.MESSAGE,
3439+
number=125,
3440+
message="NetworkConfig.ClusterNetworkPerformanceConfig",
3441+
)
34353442
desired_enable_fqdn_network_policy: bool = proto.Field(
34363443
proto.BOOL,
34373444
number=126,
@@ -7127,13 +7134,48 @@ class NetworkConfig(proto.Message):
71277134
gateway_api_config (google.cloud.container_v1.types.GatewayAPIConfig):
71287135
GatewayAPIConfig contains the desired config
71297136
of Gateway API on this cluster.
7137+
network_performance_config (google.cloud.container_v1.types.NetworkConfig.ClusterNetworkPerformanceConfig):
7138+
Network bandwidth tier configuration.
71307139
enable_fqdn_network_policy (bool):
71317140
Whether FQDN Network Policy is enabled on
71327141
this cluster.
71337142
71347143
This field is a member of `oneof`_ ``_enable_fqdn_network_policy``.
71357144
"""
71367145

7146+
class ClusterNetworkPerformanceConfig(proto.Message):
7147+
r"""Configuration of network bandwidth tiers
7148+
7149+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
7150+
7151+
Attributes:
7152+
total_egress_bandwidth_tier (google.cloud.container_v1.types.NetworkConfig.ClusterNetworkPerformanceConfig.Tier):
7153+
Specifies the total network bandwidth tier
7154+
for NodePools in the cluster.
7155+
7156+
This field is a member of `oneof`_ ``_total_egress_bandwidth_tier``.
7157+
"""
7158+
7159+
class Tier(proto.Enum):
7160+
r"""Node network tier
7161+
7162+
Values:
7163+
TIER_UNSPECIFIED (0):
7164+
Default value
7165+
TIER_1 (1):
7166+
Higher bandwidth, actual values based on VM
7167+
size.
7168+
"""
7169+
TIER_UNSPECIFIED = 0
7170+
TIER_1 = 1
7171+
7172+
total_egress_bandwidth_tier: "NetworkConfig.ClusterNetworkPerformanceConfig.Tier" = proto.Field(
7173+
proto.ENUM,
7174+
number=1,
7175+
optional=True,
7176+
enum="NetworkConfig.ClusterNetworkPerformanceConfig.Tier",
7177+
)
7178+
71377179
network: str = proto.Field(
71387180
proto.STRING,
71397181
number=1,
@@ -7180,6 +7222,11 @@ class NetworkConfig(proto.Message):
71807222
number=16,
71817223
message="GatewayAPIConfig",
71827224
)
7225+
network_performance_config: ClusterNetworkPerformanceConfig = proto.Field(
7226+
proto.MESSAGE,
7227+
number=18,
7228+
message=ClusterNetworkPerformanceConfig,
7229+
)
71837230
enable_fqdn_network_policy: bool = proto.Field(
71847231
proto.BOOL,
71857232
number=19,
@@ -7642,10 +7689,13 @@ class Provider(proto.Enum):
76427689
DNS resolution.
76437690
CLOUD_DNS (2):
76447691
Use CloudDNS for DNS resolution.
7692+
KUBE_DNS (3):
7693+
Use KubeDNS for DNS resolution
76457694
"""
76467695
PROVIDER_UNSPECIFIED = 0
76477696
PLATFORM_DEFAULT = 1
76487697
CLOUD_DNS = 2
7698+
KUBE_DNS = 3
76497699

76507700
class DNSScope(proto.Enum):
76517701
r"""DNSScope lists the various scopes of access to cluster DNS

samples/generated_samples/snippet_metadata_google.container.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-container",
11-
"version": "2.24.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

samples/generated_samples/snippet_metadata_google.container.v1beta1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-container",
11-
"version": "2.24.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)