google-cloud-container 2.60.0__tar.gz → 2.62.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {google_cloud_container-2.60.0/google_cloud_container.egg-info → google_cloud_container-2.62.0}/PKG-INFO +1 -1
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container/__init__.py +4 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container/gapic_version.py +1 -1
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1/__init__.py +108 -0
- {google_cloud_container-2.60.0/google/cloud/container_v1beta1 → google_cloud_container-2.62.0/google/cloud/container_v1}/gapic_version.py +1 -1
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1/services/cluster_manager/async_client.py +1 -1
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1/services/cluster_manager/client.py +33 -15
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1/services/cluster_manager/transports/grpc.py +1 -1
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1/services/cluster_manager/transports/grpc_asyncio.py +1 -1
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1/types/__init__.py +4 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1/types/cluster_service.py +398 -21
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1beta1/__init__.py +104 -0
- {google_cloud_container-2.60.0/google/cloud/container_v1 → google_cloud_container-2.62.0/google/cloud/container_v1beta1}/gapic_version.py +1 -1
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1beta1/services/cluster_manager/async_client.py +1 -1
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1beta1/services/cluster_manager/client.py +33 -15
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1beta1/services/cluster_manager/transports/grpc.py +1 -1
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1beta1/services/cluster_manager/transports/grpc_asyncio.py +1 -1
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1beta1/types/cluster_service.py +17 -9
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0/google_cloud_container.egg-info}/PKG-INFO +1 -1
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/tests/unit/gapic/container_v1/test_cluster_manager.py +226 -29
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/tests/unit/gapic/container_v1beta1/test_cluster_manager.py +226 -29
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/LICENSE +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/MANIFEST.in +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/README.rst +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container/py.typed +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1/gapic_metadata.json +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1/py.typed +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1/services/__init__.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1/services/cluster_manager/__init__.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1/services/cluster_manager/pagers.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1/services/cluster_manager/transports/__init__.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1/services/cluster_manager/transports/base.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1/services/cluster_manager/transports/rest.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1/services/cluster_manager/transports/rest_base.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1beta1/gapic_metadata.json +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1beta1/py.typed +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1beta1/services/__init__.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1beta1/services/cluster_manager/__init__.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1beta1/services/cluster_manager/pagers.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1beta1/services/cluster_manager/transports/__init__.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1beta1/services/cluster_manager/transports/base.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container_v1beta1/types/__init__.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google_cloud_container.egg-info/SOURCES.txt +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google_cloud_container.egg-info/dependency_links.txt +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google_cloud_container.egg-info/not-zip-safe +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google_cloud_container.egg-info/requires.txt +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google_cloud_container.egg-info/top_level.txt +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/setup.cfg +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/setup.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/tests/__init__.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/tests/system/__init__.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/tests/system/smoke_test.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/tests/unit/__init__.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/tests/unit/gapic/__init__.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/tests/unit/gapic/container_v1/__init__.py +0 -0
- {google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/tests/unit/gapic/container_v1beta1/__init__.py +0 -0
{google_cloud_container-2.60.0 → google_cloud_container-2.62.0}/google/cloud/container/__init__.py
RENAMED
|
@@ -143,6 +143,7 @@ from google.cloud.container_v1.types.cluster_service import (
|
|
|
143
143
|
NetworkPolicy,
|
|
144
144
|
NetworkPolicyConfig,
|
|
145
145
|
NetworkTags,
|
|
146
|
+
NetworkTierConfig,
|
|
146
147
|
NodeConfig,
|
|
147
148
|
NodeConfigDefaults,
|
|
148
149
|
NodeKubeletConfig,
|
|
@@ -167,6 +168,7 @@ from google.cloud.container_v1.types.cluster_service import (
|
|
|
167
168
|
PrivateClusterConfig,
|
|
168
169
|
PrivateClusterMasterGlobalAccessConfig,
|
|
169
170
|
PrivateIPv6GoogleAccess,
|
|
171
|
+
PrivilegedAdmissionConfig,
|
|
170
172
|
RangeInfo,
|
|
171
173
|
RayClusterLoggingConfig,
|
|
172
174
|
RayClusterMonitoringConfig,
|
|
@@ -346,6 +348,7 @@ __all__ = (
|
|
|
346
348
|
"NetworkPolicy",
|
|
347
349
|
"NetworkPolicyConfig",
|
|
348
350
|
"NetworkTags",
|
|
351
|
+
"NetworkTierConfig",
|
|
349
352
|
"NodeConfig",
|
|
350
353
|
"NodeConfigDefaults",
|
|
351
354
|
"NodeKubeletConfig",
|
|
@@ -368,6 +371,7 @@ __all__ = (
|
|
|
368
371
|
"PodCIDROverprovisionConfig",
|
|
369
372
|
"PrivateClusterConfig",
|
|
370
373
|
"PrivateClusterMasterGlobalAccessConfig",
|
|
374
|
+
"PrivilegedAdmissionConfig",
|
|
371
375
|
"RangeInfo",
|
|
372
376
|
"RayClusterLoggingConfig",
|
|
373
377
|
"RayClusterMonitoringConfig",
|
|
@@ -13,10 +13,20 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
|
+
import sys
|
|
17
|
+
|
|
18
|
+
import google.api_core as api_core
|
|
19
|
+
|
|
16
20
|
from google.cloud.container_v1 import gapic_version as package_version
|
|
17
21
|
|
|
18
22
|
__version__ = package_version.__version__
|
|
19
23
|
|
|
24
|
+
if sys.version_info >= (3, 8): # pragma: NO COVER
|
|
25
|
+
from importlib import metadata
|
|
26
|
+
else: # pragma: NO COVER
|
|
27
|
+
# TODO(https://github.com/googleapis/python-api-core/issues/835): Remove
|
|
28
|
+
# this code path once we drop support for Python 3.7
|
|
29
|
+
import importlib_metadata as metadata
|
|
20
30
|
|
|
21
31
|
from .services.cluster_manager import ClusterManagerAsyncClient, ClusterManagerClient
|
|
22
32
|
from .types.cluster_service import (
|
|
@@ -138,6 +148,7 @@ from .types.cluster_service import (
|
|
|
138
148
|
NetworkPolicy,
|
|
139
149
|
NetworkPolicyConfig,
|
|
140
150
|
NetworkTags,
|
|
151
|
+
NetworkTierConfig,
|
|
141
152
|
NodeConfig,
|
|
142
153
|
NodeConfigDefaults,
|
|
143
154
|
NodeKubeletConfig,
|
|
@@ -162,6 +173,7 @@ from .types.cluster_service import (
|
|
|
162
173
|
PrivateClusterConfig,
|
|
163
174
|
PrivateClusterMasterGlobalAccessConfig,
|
|
164
175
|
PrivateIPv6GoogleAccess,
|
|
176
|
+
PrivilegedAdmissionConfig,
|
|
165
177
|
RangeInfo,
|
|
166
178
|
RayClusterLoggingConfig,
|
|
167
179
|
RayClusterMonitoringConfig,
|
|
@@ -223,6 +235,100 @@ from .types.cluster_service import (
|
|
|
223
235
|
WorkloadPolicyConfig,
|
|
224
236
|
)
|
|
225
237
|
|
|
238
|
+
if hasattr(api_core, "check_python_version") and hasattr(
|
|
239
|
+
api_core, "check_dependency_versions"
|
|
240
|
+
): # pragma: NO COVER
|
|
241
|
+
api_core.check_python_version("google.cloud.container_v1") # type: ignore
|
|
242
|
+
api_core.check_dependency_versions("google.cloud.container_v1") # type: ignore
|
|
243
|
+
else: # pragma: NO COVER
|
|
244
|
+
# An older version of api_core is installed which does not define the
|
|
245
|
+
# functions above. We do equivalent checks manually.
|
|
246
|
+
try:
|
|
247
|
+
import sys
|
|
248
|
+
import warnings
|
|
249
|
+
|
|
250
|
+
_py_version_str = sys.version.split()[0]
|
|
251
|
+
_package_label = "google.cloud.container_v1"
|
|
252
|
+
if sys.version_info < (3, 9):
|
|
253
|
+
warnings.warn(
|
|
254
|
+
"You are using a non-supported Python version "
|
|
255
|
+
+ f"({_py_version_str}). Google will not post any further "
|
|
256
|
+
+ f"updates to {_package_label} supporting this Python version. "
|
|
257
|
+
+ "Please upgrade to the latest Python version, or at "
|
|
258
|
+
+ f"least to Python 3.9, and then update {_package_label}.",
|
|
259
|
+
FutureWarning,
|
|
260
|
+
)
|
|
261
|
+
if sys.version_info[:2] == (3, 9):
|
|
262
|
+
warnings.warn(
|
|
263
|
+
f"You are using a Python version ({_py_version_str}) "
|
|
264
|
+
+ f"which Google will stop supporting in {_package_label} in "
|
|
265
|
+
+ "January 2026. Please "
|
|
266
|
+
+ "upgrade to the latest Python version, or at "
|
|
267
|
+
+ "least to Python 3.10, before then, and "
|
|
268
|
+
+ f"then update {_package_label}.",
|
|
269
|
+
FutureWarning,
|
|
270
|
+
)
|
|
271
|
+
|
|
272
|
+
def parse_version_to_tuple(version_string: str):
|
|
273
|
+
"""Safely converts a semantic version string to a comparable tuple of integers.
|
|
274
|
+
Example: "4.25.8" -> (4, 25, 8)
|
|
275
|
+
Ignores non-numeric parts and handles common version formats.
|
|
276
|
+
Args:
|
|
277
|
+
version_string: Version string in the format "x.y.z" or "x.y.z<suffix>"
|
|
278
|
+
Returns:
|
|
279
|
+
Tuple of integers for the parsed version string.
|
|
280
|
+
"""
|
|
281
|
+
parts = []
|
|
282
|
+
for part in version_string.split("."):
|
|
283
|
+
try:
|
|
284
|
+
parts.append(int(part))
|
|
285
|
+
except ValueError:
|
|
286
|
+
# If it's a non-numeric part (e.g., '1.0.0b1' -> 'b1'), stop here.
|
|
287
|
+
# This is a simplification compared to 'packaging.parse_version', but sufficient
|
|
288
|
+
# for comparing strictly numeric semantic versions.
|
|
289
|
+
break
|
|
290
|
+
return tuple(parts)
|
|
291
|
+
|
|
292
|
+
def _get_version(dependency_name):
|
|
293
|
+
try:
|
|
294
|
+
version_string: str = metadata.version(dependency_name)
|
|
295
|
+
parsed_version = parse_version_to_tuple(version_string)
|
|
296
|
+
return (parsed_version, version_string)
|
|
297
|
+
except Exception:
|
|
298
|
+
# Catch exceptions from metadata.version() (e.g., PackageNotFoundError)
|
|
299
|
+
# or errors during parse_version_to_tuple
|
|
300
|
+
return (None, "--")
|
|
301
|
+
|
|
302
|
+
_dependency_package = "google.protobuf"
|
|
303
|
+
_next_supported_version = "4.25.8"
|
|
304
|
+
_next_supported_version_tuple = (4, 25, 8)
|
|
305
|
+
_recommendation = " (we recommend 6.x)"
|
|
306
|
+
(_version_used, _version_used_string) = _get_version(_dependency_package)
|
|
307
|
+
if _version_used and _version_used < _next_supported_version_tuple:
|
|
308
|
+
warnings.warn(
|
|
309
|
+
f"Package {_package_label} depends on "
|
|
310
|
+
+ f"{_dependency_package}, currently installed at version "
|
|
311
|
+
+ f"{_version_used_string}. Future updates to "
|
|
312
|
+
+ f"{_package_label} will require {_dependency_package} at "
|
|
313
|
+
+ f"version {_next_supported_version} or higher{_recommendation}."
|
|
314
|
+
+ " Please ensure "
|
|
315
|
+
+ "that either (a) your Python environment doesn't pin the "
|
|
316
|
+
+ f"version of {_dependency_package}, so that updates to "
|
|
317
|
+
+ f"{_package_label} can require the higher version, or "
|
|
318
|
+
+ "(b) you manually update your Python environment to use at "
|
|
319
|
+
+ f"least version {_next_supported_version} of "
|
|
320
|
+
+ f"{_dependency_package}.",
|
|
321
|
+
FutureWarning,
|
|
322
|
+
)
|
|
323
|
+
except Exception:
|
|
324
|
+
warnings.warn(
|
|
325
|
+
"Could not determine the version of Python "
|
|
326
|
+
+ "currently being used. To continue receiving "
|
|
327
|
+
+ "updates for {_package_label}, ensure you are "
|
|
328
|
+
+ "using a supported version of Python; see "
|
|
329
|
+
+ "https://devguide.python.org/versions/"
|
|
330
|
+
)
|
|
331
|
+
|
|
226
332
|
__all__ = (
|
|
227
333
|
"ClusterManagerAsyncClient",
|
|
228
334
|
"AcceleratorConfig",
|
|
@@ -344,6 +450,7 @@ __all__ = (
|
|
|
344
450
|
"NetworkPolicy",
|
|
345
451
|
"NetworkPolicyConfig",
|
|
346
452
|
"NetworkTags",
|
|
453
|
+
"NetworkTierConfig",
|
|
347
454
|
"NodeConfig",
|
|
348
455
|
"NodeConfigDefaults",
|
|
349
456
|
"NodeKubeletConfig",
|
|
@@ -368,6 +475,7 @@ __all__ = (
|
|
|
368
475
|
"PrivateClusterConfig",
|
|
369
476
|
"PrivateClusterMasterGlobalAccessConfig",
|
|
370
477
|
"PrivateIPv6GoogleAccess",
|
|
478
|
+
"PrivilegedAdmissionConfig",
|
|
371
479
|
"RBACBindingConfig",
|
|
372
480
|
"RangeInfo",
|
|
373
481
|
"RayClusterLoggingConfig",
|
|
@@ -599,7 +599,7 @@ class ClusterManagerAsyncClient:
|
|
|
599
599
|
network <https://cloud.google.com/compute/docs/networks-and-firewalls#networks>`__.
|
|
600
600
|
|
|
601
601
|
One firewall is added for the cluster. After cluster creation,
|
|
602
|
-
the
|
|
602
|
+
the kubelet creates routes for each node to allow the containers
|
|
603
603
|
on that node to communicate with all other instances in the
|
|
604
604
|
cluster.
|
|
605
605
|
|
|
@@ -151,6 +151,34 @@ class ClusterManagerClient(metaclass=ClusterManagerClientMeta):
|
|
|
151
151
|
_DEFAULT_ENDPOINT_TEMPLATE = "container.{UNIVERSE_DOMAIN}"
|
|
152
152
|
_DEFAULT_UNIVERSE = "googleapis.com"
|
|
153
153
|
|
|
154
|
+
@staticmethod
|
|
155
|
+
def _use_client_cert_effective():
|
|
156
|
+
"""Returns whether client certificate should be used for mTLS if the
|
|
157
|
+
google-auth version supports should_use_client_cert automatic mTLS enablement.
|
|
158
|
+
|
|
159
|
+
Alternatively, read from the GOOGLE_API_USE_CLIENT_CERTIFICATE env var.
|
|
160
|
+
|
|
161
|
+
Returns:
|
|
162
|
+
bool: whether client certificate should be used for mTLS
|
|
163
|
+
Raises:
|
|
164
|
+
ValueError: (If using a version of google-auth without should_use_client_cert and
|
|
165
|
+
GOOGLE_API_USE_CLIENT_CERTIFICATE is set to an unexpected value.)
|
|
166
|
+
"""
|
|
167
|
+
# check if google-auth version supports should_use_client_cert for automatic mTLS enablement
|
|
168
|
+
if hasattr(mtls, "should_use_client_cert"): # pragma: NO COVER
|
|
169
|
+
return mtls.should_use_client_cert()
|
|
170
|
+
else: # pragma: NO COVER
|
|
171
|
+
# if unsupported, fallback to reading from env var
|
|
172
|
+
use_client_cert_str = os.getenv(
|
|
173
|
+
"GOOGLE_API_USE_CLIENT_CERTIFICATE", "false"
|
|
174
|
+
).lower()
|
|
175
|
+
if use_client_cert_str not in ("true", "false"):
|
|
176
|
+
raise ValueError(
|
|
177
|
+
"Environment variable `GOOGLE_API_USE_CLIENT_CERTIFICATE` must be"
|
|
178
|
+
" either `true` or `false`"
|
|
179
|
+
)
|
|
180
|
+
return use_client_cert_str == "true"
|
|
181
|
+
|
|
154
182
|
@classmethod
|
|
155
183
|
def from_service_account_info(cls, info: dict, *args, **kwargs):
|
|
156
184
|
"""Creates an instance of this client using the provided credentials
|
|
@@ -381,12 +409,8 @@ class ClusterManagerClient(metaclass=ClusterManagerClientMeta):
|
|
|
381
409
|
)
|
|
382
410
|
if client_options is None:
|
|
383
411
|
client_options = client_options_lib.ClientOptions()
|
|
384
|
-
use_client_cert =
|
|
412
|
+
use_client_cert = ClusterManagerClient._use_client_cert_effective()
|
|
385
413
|
use_mtls_endpoint = os.getenv("GOOGLE_API_USE_MTLS_ENDPOINT", "auto")
|
|
386
|
-
if use_client_cert not in ("true", "false"):
|
|
387
|
-
raise ValueError(
|
|
388
|
-
"Environment variable `GOOGLE_API_USE_CLIENT_CERTIFICATE` must be either `true` or `false`"
|
|
389
|
-
)
|
|
390
414
|
if use_mtls_endpoint not in ("auto", "never", "always"):
|
|
391
415
|
raise MutualTLSChannelError(
|
|
392
416
|
"Environment variable `GOOGLE_API_USE_MTLS_ENDPOINT` must be `never`, `auto` or `always`"
|
|
@@ -394,7 +418,7 @@ class ClusterManagerClient(metaclass=ClusterManagerClientMeta):
|
|
|
394
418
|
|
|
395
419
|
# Figure out the client cert source to use.
|
|
396
420
|
client_cert_source = None
|
|
397
|
-
if use_client_cert
|
|
421
|
+
if use_client_cert:
|
|
398
422
|
if client_options.client_cert_source:
|
|
399
423
|
client_cert_source = client_options.client_cert_source
|
|
400
424
|
elif mtls.has_default_client_cert_source():
|
|
@@ -426,20 +450,14 @@ class ClusterManagerClient(metaclass=ClusterManagerClientMeta):
|
|
|
426
450
|
google.auth.exceptions.MutualTLSChannelError: If GOOGLE_API_USE_MTLS_ENDPOINT
|
|
427
451
|
is not any of ["auto", "never", "always"].
|
|
428
452
|
"""
|
|
429
|
-
use_client_cert =
|
|
430
|
-
"GOOGLE_API_USE_CLIENT_CERTIFICATE", "false"
|
|
431
|
-
).lower()
|
|
453
|
+
use_client_cert = ClusterManagerClient._use_client_cert_effective()
|
|
432
454
|
use_mtls_endpoint = os.getenv("GOOGLE_API_USE_MTLS_ENDPOINT", "auto").lower()
|
|
433
455
|
universe_domain_env = os.getenv("GOOGLE_CLOUD_UNIVERSE_DOMAIN")
|
|
434
|
-
if use_client_cert not in ("true", "false"):
|
|
435
|
-
raise ValueError(
|
|
436
|
-
"Environment variable `GOOGLE_API_USE_CLIENT_CERTIFICATE` must be either `true` or `false`"
|
|
437
|
-
)
|
|
438
456
|
if use_mtls_endpoint not in ("auto", "never", "always"):
|
|
439
457
|
raise MutualTLSChannelError(
|
|
440
458
|
"Environment variable `GOOGLE_API_USE_MTLS_ENDPOINT` must be `never`, `auto` or `always`"
|
|
441
459
|
)
|
|
442
|
-
return use_client_cert
|
|
460
|
+
return use_client_cert, use_mtls_endpoint, universe_domain_env
|
|
443
461
|
|
|
444
462
|
@staticmethod
|
|
445
463
|
def _get_client_cert_source(provided_cert_source, use_cert_flag):
|
|
@@ -1052,7 +1070,7 @@ class ClusterManagerClient(metaclass=ClusterManagerClientMeta):
|
|
|
1052
1070
|
network <https://cloud.google.com/compute/docs/networks-and-firewalls#networks>`__.
|
|
1053
1071
|
|
|
1054
1072
|
One firewall is added for the cluster. After cluster creation,
|
|
1055
|
-
the
|
|
1073
|
+
the kubelet creates routes for each node to allow the containers
|
|
1056
1074
|
on that node to communicate with all other instances in the
|
|
1057
1075
|
cluster.
|
|
1058
1076
|
|
|
@@ -390,7 +390,7 @@ class ClusterManagerGrpcTransport(ClusterManagerTransport):
|
|
|
390
390
|
network <https://cloud.google.com/compute/docs/networks-and-firewalls#networks>`__.
|
|
391
391
|
|
|
392
392
|
One firewall is added for the cluster. After cluster creation,
|
|
393
|
-
the
|
|
393
|
+
the kubelet creates routes for each node to allow the containers
|
|
394
394
|
on that node to communicate with all other instances in the
|
|
395
395
|
cluster.
|
|
396
396
|
|
|
@@ -403,7 +403,7 @@ class ClusterManagerGrpcAsyncIOTransport(ClusterManagerTransport):
|
|
|
403
403
|
network <https://cloud.google.com/compute/docs/networks-and-firewalls#networks>`__.
|
|
404
404
|
|
|
405
405
|
One firewall is added for the cluster. After cluster creation,
|
|
406
|
-
the
|
|
406
|
+
the kubelet creates routes for each node to allow the containers
|
|
407
407
|
on that node to communicate with all other instances in the
|
|
408
408
|
cluster.
|
|
409
409
|
|
|
@@ -132,6 +132,7 @@ from .cluster_service import (
|
|
|
132
132
|
NetworkPolicy,
|
|
133
133
|
NetworkPolicyConfig,
|
|
134
134
|
NetworkTags,
|
|
135
|
+
NetworkTierConfig,
|
|
135
136
|
NodeConfig,
|
|
136
137
|
NodeConfigDefaults,
|
|
137
138
|
NodeKubeletConfig,
|
|
@@ -156,6 +157,7 @@ from .cluster_service import (
|
|
|
156
157
|
PrivateClusterConfig,
|
|
157
158
|
PrivateClusterMasterGlobalAccessConfig,
|
|
158
159
|
PrivateIPv6GoogleAccess,
|
|
160
|
+
PrivilegedAdmissionConfig,
|
|
159
161
|
RangeInfo,
|
|
160
162
|
RayClusterLoggingConfig,
|
|
161
163
|
RayClusterMonitoringConfig,
|
|
@@ -333,6 +335,7 @@ __all__ = (
|
|
|
333
335
|
"NetworkPolicy",
|
|
334
336
|
"NetworkPolicyConfig",
|
|
335
337
|
"NetworkTags",
|
|
338
|
+
"NetworkTierConfig",
|
|
336
339
|
"NodeConfig",
|
|
337
340
|
"NodeConfigDefaults",
|
|
338
341
|
"NodeKubeletConfig",
|
|
@@ -355,6 +358,7 @@ __all__ = (
|
|
|
355
358
|
"PodCIDROverprovisionConfig",
|
|
356
359
|
"PrivateClusterConfig",
|
|
357
360
|
"PrivateClusterMasterGlobalAccessConfig",
|
|
361
|
+
"PrivilegedAdmissionConfig",
|
|
358
362
|
"RangeInfo",
|
|
359
363
|
"RayClusterLoggingConfig",
|
|
360
364
|
"RayClusterMonitoringConfig",
|