Content-Length: 1048330 | pFad | https://github.com/googleapis/google-cloud-python/commit/80b7a926ac91006f466d15b43a2d6988be69eac0

F0 feat: add ResourceManagerTags API to attach tags on the underlying Co… · googleapis/google-cloud-python@80b7a92 · GitHub
Skip to content

Commit 80b7a92

Browse files
feat: add ResourceManagerTags API to attach tags on the underlying Compute Engine VMs of GKE Nodes which can be used to selectively enforce Cloud Firewall network firewall policies (#11936)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: add ResourceManagerTags API to attach tags on the underlying Compute Engine VMs of GKE Nodes feat: add CompleteConvertToAutopilot API to commit Autopilot conversion operation docs: updated comments feat(v1beta1): adding a field to allow turn the DPv2 node to node encryption feature on or off END_COMMIT_OVERRIDE --- feat: add CompleteConvertToAutopilot API to commit Autopilot conversion operation --- docs: updated comments PiperOrigin-RevId: 577928708 Source-Link: googleapis/googleapis@facb658 Source-Link: googleapis/googleapis-gen@b124e58 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiYjEyNGU1ODI2MTFmNTNhY2MxMjMxMjMyYTY5ZThlNGM3NDZiNjFjOCJ9 BEGIN_NESTED_COMMIT feat: add ResourceManagerTags API to attach tags on the underlying Compute Engine VMs of GKE Nodes which can be used to selectively enforce Cloud Firewall network firewall policies --- feat: add CompleteConvertToAutopilot API to commit Autopilot conversion operation --- feat: adding a field to allow turn the DPv2 node to node encryption feature on or off --- docs: minor comments changes PiperOrigin-RevId: 577924838 Source-Link: googleapis/googleapis@3fdb61c Source-Link: googleapis/googleapis-gen@ac90063 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiYWM5MDA2MzE5OTEyYjA2MWQ1YTgyMWRlNWQzY2NjZjk2ZjhiMjNkMSJ9 END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 0f98033 commit 80b7a92

File tree

10 files changed

+372
-48
lines changed

10 files changed

+372
-48
lines changed

packages/google-cloud-container/google/cloud/container/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
ReservationAffinity,
148148
ResourceLabels,
149149
ResourceLimit,
150+
ResourceManagerTags,
150151
ResourceUsageExportConfig,
151152
RollbackNodePoolUpgradeRequest,
152153
SandboxConfig,
@@ -310,6 +311,7 @@
310311
"ReservationAffinity",
311312
"ResourceLabels",
312313
"ResourceLimit",
314+
"ResourceManagerTags",
313315
"ResourceUsageExportConfig",
314316
"RollbackNodePoolUpgradeRequest",
315317
"SandboxConfig",

packages/google-cloud-container/google/cloud/container_v1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
ReservationAffinity,
143143
ResourceLabels,
144144
ResourceLimit,
145+
ResourceManagerTags,
145146
ResourceUsageExportConfig,
146147
RollbackNodePoolUpgradeRequest,
147148
SandboxConfig,
@@ -309,6 +310,7 @@
309310
"ReservationAffinity",
310311
"ResourceLabels",
311312
"ResourceLimit",
313+
"ResourceManagerTags",
312314
"ResourceUsageExportConfig",
313315
"RollbackNodePoolUpgradeRequest",
314316
"SandboxConfig",

packages/google-cloud-container/google/cloud/container_v1/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@
136136
ReservationAffinity,
137137
ResourceLabels,
138138
ResourceLimit,
139+
ResourceManagerTags,
139140
ResourceUsageExportConfig,
140141
RollbackNodePoolUpgradeRequest,
141142
SandboxConfig,
@@ -297,6 +298,7 @@
297298
"ReservationAffinity",
298299
"ResourceLabels",
299300
"ResourceLimit",
301+
"ResourceManagerTags",
300302
"ResourceUsageExportConfig",
301303
"RollbackNodePoolUpgradeRequest",
302304
"SandboxConfig",

packages/google-cloud-container/google/cloud/container_v1/types/cluster_service.py

Lines changed: 116 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@
189189
"Fleet",
190190
"LocalNvmeSsdBlockConfig",
191191
"EphemeralStorageLocalSsdConfig",
192+
"ResourceManagerTags",
192193
},
193194
)
194195

@@ -690,6 +691,9 @@ class NodeConfig(proto.Message):
690691
sole_tenant_config (google.cloud.container_v1.types.SoleTenantConfig):
691692
Parameters for node pools to be backed by
692693
shared sole tenant node groups.
694+
resource_manager_tags (google.cloud.container_v1.types.ResourceManagerTags):
695+
A map of resource manager tag keys and values
696+
to be attached to the nodes.
693697
"""
694698

695699
machine_type: str = proto.Field(
@@ -850,6 +854,11 @@ class NodeConfig(proto.Message):
850854
number=42,
851855
message="SoleTenantConfig",
852856
)
857+
resource_manager_tags: "ResourceManagerTags" = proto.Field(
858+
proto.MESSAGE,
859+
number=45,
860+
message="ResourceManagerTags",
861+
)
853862

854863

855864
class AdvancedMachineFeatures(proto.Message):
@@ -3105,13 +3114,23 @@ class NodePoolAutoConfig(proto.Message):
31053114
specified by the client during cluster creation.
31063115
Each tag within the list must comply with
31073116
RFC1035.
3117+
resource_manager_tags (google.cloud.container_v1.types.ResourceManagerTags):
3118+
Resource manager tag keys and values to be
3119+
attached to the nodes for managing Compute
3120+
Engine firewalls using Network Firewall
3121+
Policies.
31083122
"""
31093123

31103124
network_tags: "NetworkTags" = proto.Field(
31113125
proto.MESSAGE,
31123126
number=1,
31133127
message="NetworkTags",
31143128
)
3129+
resource_manager_tags: "ResourceManagerTags" = proto.Field(
3130+
proto.MESSAGE,
3131+
number=2,
3132+
message="ResourceManagerTags",
3133+
)
31153134

31163135

31173136
class NodePoolDefaults(proto.Message):
@@ -3371,6 +3390,11 @@ class ClusterUpdate(proto.Message):
33713390
the autopilot cluster.
33723391
desired_k8s_beta_apis (google.cloud.container_v1.types.K8sBetaAPIConfig):
33733392
Desired Beta APIs to be enabled for cluster.
3393+
desired_node_pool_auto_config_resource_manager_tags (google.cloud.container_v1.types.ResourceManagerTags):
3394+
The desired resource manager tags that apply
3395+
to all auto-provisioned node pools in autopilot
3396+
clusters and node auto-provisioning enabled
3397+
clusters.
33743398
"""
33753399

33763400
desired_node_version: str = proto.Field(
@@ -3612,6 +3636,13 @@ class ClusterUpdate(proto.Message):
36123636
number=131,
36133637
message="K8sBetaAPIConfig",
36143638
)
3639+
desired_node_pool_auto_config_resource_manager_tags: "ResourceManagerTags" = (
3640+
proto.Field(
3641+
proto.MESSAGE,
3642+
number=136,
3643+
message="ResourceManagerTags",
3644+
)
3645+
)
36153646

36163647

36173648
class AdditionalPodRangesConfig(proto.Message):
@@ -3866,6 +3897,11 @@ class Type(proto.Enum):
38663897
resources and is not typically an indication of issues. For
38673898
more details, see `documentation on
38683899
resizes <https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs>`__.
3900+
FLEET_FEATURE_UPGRADE (19):
3901+
Fleet features of GKE Enterprise are being
3902+
upgraded. The cluster should be assumed to be
3903+
blocked for other upgrades until the operation
3904+
finishes.
38693905
"""
38703906
TYPE_UNSPECIFIED = 0
38713907
CREATE_CLUSTER = 1
@@ -3885,6 +3921,7 @@ class Type(proto.Enum):
38853921
SET_NETWORK_POLICY = 15
38863922
SET_MAINTENANCE_POLICY = 16
38873923
RESIZE_CLUSTER = 18
3924+
FLEET_FEATURE_UPGRADE = 19
38883925

38893926
name: str = proto.Field(
38903927
proto.STRING,
@@ -4307,6 +4344,12 @@ class UpdateNodePoolRequest(proto.Message):
43074344
allowed disk size is 10GB. Initiates an upgrade
43084345
operation that migrates the nodes in the node
43094346
pool to the specified disk size.
4347+
resource_manager_tags (google.cloud.container_v1.types.ResourceManagerTags):
4348+
Desired resource manager tag keys and values
4349+
to be attached to the nodes for managing Compute
4350+
Engine firewalls using Network Firewall
4351+
Policies. Existing tags will be replaced with
4352+
new values.
43104353
"""
43114354

43124355
project_id: str = proto.Field(
@@ -4432,6 +4475,11 @@ class UpdateNodePoolRequest(proto.Message):
44324475
proto.INT64,
44334476
number=38,
44344477
)
4478+
resource_manager_tags: "ResourceManagerTags" = proto.Field(
4479+
proto.MESSAGE,
4480+
number=39,
4481+
message="ResourceManagerTags",
4482+
)
44354483

44364484

44374485
class SetNodePoolAutoscalingRequest(proto.Message):
@@ -9031,20 +9079,30 @@ class Fleet(proto.Message):
90319079

90329080
class LocalNvmeSsdBlockConfig(proto.Message):
90339081
r"""LocalNvmeSsdBlockConfig contains configuration for using
9034-
raw-block local NVMe SSD.
9082+
raw-block local NVMe SSDs
90359083
90369084
Attributes:
90379085
local_ssd_count (int):
9038-
The number of raw-block local NVMe SSD disks
9039-
to be attached to the node. Each local SSD is
9040-
375 GB in size. If zero, it means no raw-block
9041-
local NVMe SSD disks to be attached to the node.
9042-
The limit for this value is dependent upon the
9043-
maximum number of disks available on a machine
9044-
per zone. See:
9045-
9046-
https://cloud.google.com/compute/docs/disks/local-ssd
9047-
for more information.
9086+
Number of local NVMe SSDs to use. The limit for this value
9087+
is dependent upon the maximum number of disk available on a
9088+
machine per zone. See:
9089+
https://cloud.google.com/compute/docs/disks/local-ssd for
9090+
more information.
9091+
9092+
A zero (or unset) value has different meanings depending on
9093+
machine type being used:
9094+
9095+
1. For pre-Gen3 machines, which support flexible numbers of
9096+
local ssds, zero (or unset) means to disable using local
9097+
SSDs as ephemeral storage.
9098+
2. For Gen3 machines which dictate a specific number of
9099+
local ssds, zero (or unset) means to use the default
9100+
number of local ssds that goes with that machine type.
9101+
For example, for a c3-standard-8-lssd machine, 2 local
9102+
ssds would be provisioned. For c3-standard-8 (which
9103+
doesn't support local ssds), 0 will be provisioned. See
9104+
https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
9105+
for more info.
90489106
"""
90499107

90509108
local_ssd_count: int = proto.Field(
@@ -9055,20 +9113,31 @@ class LocalNvmeSsdBlockConfig(proto.Message):
90559113

90569114
class EphemeralStorageLocalSsdConfig(proto.Message):
90579115
r"""EphemeralStorageLocalSsdConfig contains configuration for the
9058-
node ephemeral storage using Local SSD.
9116+
node ephemeral storage using Local SSDs.
90599117
90609118
Attributes:
90619119
local_ssd_count (int):
9062-
Number of local SSDs to use to back ephemeral
9063-
storage. Uses NVMe interfaces. Each local SSD is
9064-
375 GB in size. If zero, it means to disable
9065-
using local SSDs as ephemeral storage. The limit
9066-
for this value is dependent upon the maximum
9067-
number of disks available on a machine per zone.
9068-
See:
9069-
9070-
https://cloud.google.com/compute/docs/disks/local-ssd
9071-
for more information.
9120+
Number of local SSDs to use to back ephemeral storage. Uses
9121+
NVMe interfaces.
9122+
9123+
A zero (or unset) value has different meanings depending on
9124+
machine type being used:
9125+
9126+
1. For pre-Gen3 machines, which support flexible numbers of
9127+
local ssds, zero (or unset) means to disable using local
9128+
SSDs as ephemeral storage. The limit for this value is
9129+
dependent upon the maximum number of disk available on a
9130+
machine per zone. See:
9131+
https://cloud.google.com/compute/docs/disks/local-ssd for
9132+
more information.
9133+
2. For Gen3 machines which dictate a specific number of
9134+
local ssds, zero (or unset) means to use the default
9135+
number of local ssds that goes with that machine type.
9136+
For example, for a c3-standard-8-lssd machine, 2 local
9137+
ssds would be provisioned. For c3-standard-8 (which
9138+
doesn't support local ssds), 0 will be provisioned. See
9139+
https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
9140+
for more info.
90729141
"""
90739142

90749143
local_ssd_count: int = proto.Field(
@@ -9077,4 +9146,29 @@ class EphemeralStorageLocalSsdConfig(proto.Message):
90779146
)
90789147

90799148

9149+
class ResourceManagerTags(proto.Message):
9150+
r"""A map of resource manager tag keys and values to be attached
9151+
to the nodes for managing Compute Engine firewalls using Network
9152+
Firewall Policies. Tags must be according to specifications in
9153+
https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications.
9154+
A maximum of 5 tag key-value pairs can be specified. Existing
9155+
tags will be replaced with new values.
9156+
9157+
Attributes:
9158+
tags (MutableMapping[str, str]):
9159+
TagKeyValue must be in one of the following formats
9160+
([KEY]=[VALUE])
9161+
9162+
1. ``tagKeys/{tag_key_id}=tagValues/{tag_value_id}``
9163+
2. ``{org_id}/{tag_key_name}={tag_value_name}``
9164+
3. ``{project_id}/{tag_key_name}={tag_value_name}``
9165+
"""
9166+
9167+
tags: MutableMapping[str, str] = proto.MapField(
9168+
proto.STRING,
9169+
proto.STRING,
9170+
number=1,
9171+
)
9172+
9173+
90809174
__all__ = tuple(sorted(__protobuf__.manifest))

packages/google-cloud-container/google/cloud/container_v1beta1/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
IdentityServiceConfig,
8686
ILBSubsettingConfig,
8787
IntraNodeVisibilityConfig,
88+
InTransitEncryptionConfig,
8889
IPAllocationPolicy,
8990
IstioConfig,
9091
Jwk,
@@ -152,6 +153,7 @@
152153
ReservationAffinity,
153154
ResourceLabels,
154155
ResourceLimit,
156+
ResourceManagerTags,
155157
ResourceUsageExportConfig,
156158
RollbackNodePoolUpgradeRequest,
157159
SandboxConfig,
@@ -267,6 +269,7 @@
267269
"ILBSubsettingConfig",
268270
"IPAllocationPolicy",
269271
"IdentityServiceConfig",
272+
"InTransitEncryptionConfig",
270273
"IntraNodeVisibilityConfig",
271274
"IstioConfig",
272275
"Jwk",
@@ -334,6 +337,7 @@
334337
"ReservationAffinity",
335338
"ResourceLabels",
336339
"ResourceLimit",
340+
"ResourceManagerTags",
337341
"ResourceUsageExportConfig",
338342
"RollbackNodePoolUpgradeRequest",
339343
"SandboxConfig",

packages/google-cloud-container/google/cloud/container_v1beta1/types/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
IdentityServiceConfig,
8080
ILBSubsettingConfig,
8181
IntraNodeVisibilityConfig,
82+
InTransitEncryptionConfig,
8283
IPAllocationPolicy,
8384
IstioConfig,
8485
Jwk,
@@ -146,6 +147,7 @@
146147
ReservationAffinity,
147148
ResourceLabels,
148149
ResourceLimit,
150+
ResourceManagerTags,
149151
ResourceUsageExportConfig,
150152
RollbackNodePoolUpgradeRequest,
151153
SandboxConfig,
@@ -323,6 +325,7 @@
323325
"ReservationAffinity",
324326
"ResourceLabels",
325327
"ResourceLimit",
328+
"ResourceManagerTags",
326329
"ResourceUsageExportConfig",
327330
"RollbackNodePoolUpgradeRequest",
328331
"SandboxConfig",
@@ -367,6 +370,7 @@
367370
"WorkloadMetadataConfig",
368371
"WorkloadPolicyConfig",
369372
"DatapathProvider",
373+
"InTransitEncryptionConfig",
370374
"NodePoolUpdateStrategy",
371375
"PrivateIPv6GoogleAccess",
372376
"StackType",

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/google-cloud-python/commit/80b7a926ac91006f466d15b43a2d6988be69eac0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy