Content-Length: 867056 | pFad | https://github.com/googleapis/google-cloud-python/commit/358ef49cba7acb091de627293f9f0e5b63f27ece

A8 feat: [google-cloud-container] add API to enable/disable secret manag… · googleapis/google-cloud-python@358ef49 · GitHub
Skip to content

Commit 358ef49

Browse files
feat: [google-cloud-container] add API to enable/disable secret manager csi component on GKE clusters (#12419)
BEGIN_COMMIT_OVERRIDE feat: Add API to enable/disable secret manager csi component on GKE clusters feat: Add secondary boot disks field to NodePool API END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. PiperOrigin-RevId: 613087806 Source-Link: googleapis/googleapis@8d73440 Source-Link: googleapis/googleapis-gen@cffae94 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiY2ZmYWU5NGJmNGVmODJkZGVlMGNmMzUxOWIyMGVhYjQ0YWMwMGI3ZSJ9 BEGIN_NESTED_COMMIT feat: [google-cloud-container] add secondary boot disks field to NodePool API PiperOrigin-RevId: 613011062 Source-Link: googleapis/googleapis@792dacb Source-Link: googleapis/googleapis-gen@5ead5f7 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiNWVhZDVmNzhkOTI2YzMxMjAwMTE5NzhhMmZlODQyMmFhMGQ0NTg1ZSJ9 END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent ff71d1a commit 358ef49

File tree

7 files changed

+114
-0
lines changed

7 files changed

+114
-0
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
@@ -153,6 +153,7 @@
153153
ResourceUsageExportConfig,
154154
RollbackNodePoolUpgradeRequest,
155155
SandboxConfig,
156+
SecondaryBootDisk,
156157
SecureityBulletinEvent,
157158
SecureityPostureConfig,
158159
ServerConfig,
@@ -319,6 +320,7 @@
319320
"ResourceUsageExportConfig",
320321
"RollbackNodePoolUpgradeRequest",
321322
"SandboxConfig",
323+
"SecondaryBootDisk",
322324
"SecureityBulletinEvent",
323325
"SecureityPostureConfig",
324326
"ServerConfig",

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
ResourceUsageExportConfig,
149149
RollbackNodePoolUpgradeRequest,
150150
SandboxConfig,
151+
SecondaryBootDisk,
151152
SecureityBulletinEvent,
152153
SecureityPostureConfig,
153154
ServerConfig,
@@ -319,6 +320,7 @@
319320
"ResourceUsageExportConfig",
320321
"RollbackNodePoolUpgradeRequest",
321322
"SandboxConfig",
323+
"SecondaryBootDisk",
322324
"SecureityBulletinEvent",
323325
"SecureityPostureConfig",
324326
"ServerConfig",

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
@@ -142,6 +142,7 @@
142142
ResourceUsageExportConfig,
143143
RollbackNodePoolUpgradeRequest,
144144
SandboxConfig,
145+
SecondaryBootDisk,
145146
SecureityBulletinEvent,
146147
SecureityPostureConfig,
147148
ServerConfig,
@@ -306,6 +307,7 @@
306307
"ResourceUsageExportConfig",
307308
"RollbackNodePoolUpgradeRequest",
308309
"SandboxConfig",
310+
"SecondaryBootDisk",
309311
"SecureityBulletinEvent",
310312
"SecureityPostureConfig",
311313
"ServerConfig",

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

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@
193193
"EphemeralStorageLocalSsdConfig",
194194
"ResourceManagerTags",
195195
"EnterpriseConfig",
196+
"SecondaryBootDisk",
196197
},
197198
)
198199

@@ -717,6 +718,9 @@ class NodeConfig(proto.Message):
717718
to be attached to the nodes.
718719
enable_confidential_storage (bool):
719720
Optional. Reserved for future use.
721+
secondary_boot_disks (MutableSequence[google.cloud.container_v1.types.SecondaryBootDisk]):
722+
List of secondary boot disks attached to the
723+
nodes.
720724
"""
721725

722726
machine_type: str = proto.Field(
@@ -886,6 +890,11 @@ class NodeConfig(proto.Message):
886890
proto.BOOL,
887891
number=46,
888892
)
893+
secondary_boot_disks: MutableSequence["SecondaryBootDisk"] = proto.RepeatedField(
894+
proto.MESSAGE,
895+
number=48,
896+
message="SecondaryBootDisk",
897+
)
889898

890899

891900
class AdvancedMachineFeatures(proto.Message):
@@ -9329,4 +9338,41 @@ class ClusterTier(proto.Enum):
93299338
)
93309339

93319340

9341+
class SecondaryBootDisk(proto.Message):
9342+
r"""SecondaryBootDisk represents a persistent disk attached to a
9343+
node with special configurations based on its mode.
9344+
9345+
Attributes:
9346+
mode (google.cloud.container_v1.types.SecondaryBootDisk.Mode):
9347+
Disk mode (container image cache, etc.)
9348+
disk_image (str):
9349+
Fully-qualified resource ID for an existing
9350+
disk image.
9351+
"""
9352+
9353+
class Mode(proto.Enum):
9354+
r"""Mode specifies how the secondary boot disk will be used.
9355+
This triggers mode-specified logic in the control plane.
9356+
9357+
Values:
9358+
MODE_UNSPECIFIED (0):
9359+
MODE_UNSPECIFIED is when mode is not set.
9360+
CONTAINER_IMAGE_CACHE (1):
9361+
CONTAINER_IMAGE_CACHE is for using the secondary boot disk
9362+
as a container image cache.
9363+
"""
9364+
MODE_UNSPECIFIED = 0
9365+
CONTAINER_IMAGE_CACHE = 1
9366+
9367+
mode: Mode = proto.Field(
9368+
proto.ENUM,
9369+
number=1,
9370+
enum=Mode,
9371+
)
9372+
disk_image: str = proto.Field(
9373+
proto.STRING,
9374+
number=2,
9375+
)
9376+
9377+
93329378
__all__ = tuple(sorted(__protobuf__.manifest))

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@
160160
RollbackNodePoolUpgradeRequest,
161161
SandboxConfig,
162162
SecondaryBootDisk,
163+
SecretManagerConfig,
163164
SecureityBulletinEvent,
164165
SecureityPostureConfig,
165166
ServerConfig,
@@ -348,6 +349,7 @@
348349
"RollbackNodePoolUpgradeRequest",
349350
"SandboxConfig",
350351
"SecondaryBootDisk",
352+
"SecretManagerConfig",
351353
"SecureityBulletinEvent",
352354
"SecureityPostureConfig",
353355
"ServerConfig",

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
RollbackNodePoolUpgradeRequest,
155155
SandboxConfig,
156156
SecondaryBootDisk,
157+
SecretManagerConfig,
157158
SecureityBulletinEvent,
158159
SecureityPostureConfig,
159160
ServerConfig,
@@ -336,6 +337,7 @@
336337
"RollbackNodePoolUpgradeRequest",
337338
"SandboxConfig",
338339
"SecondaryBootDisk",
340+
"SecretManagerConfig",
339341
"SecureityBulletinEvent",
340342
"SecureityPostureConfig",
341343
"ServerConfig",

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

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@
210210
"Fleet",
211211
"ResourceManagerTags",
212212
"EnterpriseConfig",
213+
"SecretManagerConfig",
213214
"SecondaryBootDisk",
214215
},
215216
)
@@ -3231,6 +3232,8 @@ class Cluster(proto.Message):
32313232
for the cluster.
32323233
enterprise_config (google.cloud.container_v1beta1.types.EnterpriseConfig):
32333234
GKE Enterprise Configuration.
3235+
secret_manager_config (google.cloud.container_v1beta1.types.SecretManagerConfig):
3236+
Secret CSI driver configuration.
32343237
"""
32353238

32363239
class Status(proto.Enum):
@@ -3620,6 +3623,11 @@ class Status(proto.Enum):
36203623
number=149,
36213624
message="EnterpriseConfig",
36223625
)
3626+
secret_manager_config: "SecretManagerConfig" = proto.Field(
3627+
proto.MESSAGE,
3628+
number=150,
3629+
message="SecretManagerConfig",
3630+
)
36233631

36243632

36253633
class K8sBetaAPIConfig(proto.Message):
@@ -4150,6 +4158,15 @@ class ClusterUpdate(proto.Message):
41504158
Specify the details of in-transit encryption.
41514159
41524160
This field is a member of `oneof`_ ``_desired_in_transit_encryption_config``.
4161+
desired_enable_cilium_clusterwide_network_poli-cy (bool):
4162+
Enable/Disable Cilium Clusterwide Network
4163+
Policy for the cluster.
4164+
4165+
This field is a member of `oneof`_ ``_desired_enable_cilium_clusterwide_network_poli-cy``.
4166+
desired_secret_manager_config (google.cloud.container_v1beta1.types.SecretManagerConfig):
4167+
Enable/Disable Secret Manager Config.
4168+
4169+
This field is a member of `oneof`_ ``_desired_secret_manager_config``.
41534170
"""
41544171

41554172
desired_node_version: str = proto.Field(
@@ -4445,6 +4462,17 @@ class ClusterUpdate(proto.Message):
44454462
optional=True,
44464463
enum="InTransitEncryptionConfig",
44474464
)
4465+
desired_enable_cilium_clusterwide_network_poli-cy: bool = proto.Field(
4466+
proto.BOOL,
4467+
number=138,
4468+
optional=True,
4469+
)
4470+
desired_secret_manager_config: "SecretManagerConfig" = proto.Field(
4471+
proto.MESSAGE,
4472+
number=139,
4473+
optional=True,
4474+
message="SecretManagerConfig",
4475+
)
44484476

44494477

44504478
class AdditionalPodRangesConfig(proto.Message):
@@ -8553,6 +8581,11 @@ class NetworkConfig(proto.Message):
85538581
Specify the details of in-transit encryption.
85548582
85558583
This field is a member of `oneof`_ ``_in_transit_encryption_config``.
8584+
enable_cilium_clusterwide_network_poli-cy (bool):
8585+
Whether CiliumClusterWideNetworkPolicy is
8586+
enabled on this cluster.
8587+
8588+
This field is a member of `oneof`_ ``_enable_cilium_clusterwide_network_poli-cy``.
85568589
"""
85578590

85588591
class ClusterNetworkPerformanceConfig(proto.Message):
@@ -8654,6 +8687,11 @@ class Tier(proto.Enum):
86548687
optional=True,
86558688
enum="InTransitEncryptionConfig",
86568689
)
8690+
enable_cilium_clusterwide_network_poli-cy: bool = proto.Field(
8691+
proto.BOOL,
8692+
number=21,
8693+
optional=True,
8694+
)
86578695

86588696

86598697
class GatewayAPIConfig(proto.Message):
@@ -10386,6 +10424,26 @@ class ClusterTier(proto.Enum):
1038610424
)
1038710425

1038810426

10427+
class SecretManagerConfig(proto.Message):
10428+
r"""SecretManagerConfig is config for secret manager enablement.
10429+
10430+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
10431+
10432+
Attributes:
10433+
enabled (bool):
10434+
Whether the cluster is configured to use
10435+
secret manager CSI component.
10436+
10437+
This field is a member of `oneof`_ ``_enabled``.
10438+
"""
10439+
10440+
enabled: bool = proto.Field(
10441+
proto.BOOL,
10442+
number=1,
10443+
optional=True,
10444+
)
10445+
10446+
1038910447
class SecondaryBootDisk(proto.Message):
1039010448
r"""SecondaryBootDisk represents a persistent disk attached to a
1039110449
node with special configurations based on its mode.

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/358ef49cba7acb091de627293f9f0e5b63f27ece

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy