diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 58fcbeee..0eb02fda 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:c8878270182edaab99f2927969d4f700c3af265accd472c3425deedff2b7fd93 -# created: 2022-07-14T01:58:16.015625351Z + digest: sha256:9db98b055a7f8bd82351238ccaacfd3cda58cdf73012ab58b8da146368330021 +# created: 2022-07-25T16:02:49.174178716Z diff --git a/CHANGELOG.md b/CHANGELOG.md index 657740ae..d756299a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ [1]: https://pypi.org/project/google-cloud-container/#history +## [2.11.1](https://github.com/googleapis/python-container/compare/v2.11.0...v2.11.1) (2022-08-02) + + +### Documentation + +* **v1beta1:** BinaryAuthorization.enabled field is marked as deprecated ([0088035](https://github.com/googleapis/python-container/commit/00880358b4021191ff90f1f2a0f08160ce7b6d6a)) +* **v1:** BinaryAuthorization.enabled field is marked as deprecated ([#272](https://github.com/googleapis/python-container/issues/272)) ([0088035](https://github.com/googleapis/python-container/commit/00880358b4021191ff90f1f2a0f08160ce7b6d6a)) + ## [2.11.0](https://github.com/googleapis/python-container/compare/v2.10.8...v2.11.0) (2022-07-16) diff --git a/google/cloud/container_v1/types/cluster_service.py b/google/cloud/container_v1/types/cluster_service.py index 77bf2d11..6af61c1b 100644 --- a/google/cloud/container_v1/types/cluster_service.py +++ b/google/cloud/container_v1/types/cluster_service.py @@ -1457,9 +1457,10 @@ class BinaryAuthorization(proto.Message): Attributes: enabled (bool): - Enable Binary Authorization for this cluster. - If enabled, all container images will be - validated by Binary Authorization. + This field is deprecated. Leave this unset and instead + configure BinaryAuthorization using evaluation_mode. If + evaluation_mode is set to anything other than + EVALUATION_MODE_UNSPECIFIED, this field is ignored. evaluation_mode (google.cloud.container_v1.types.BinaryAuthorization.EvaluationMode): Mode of operation for binauthz policy evaluation. Currently the only options are @@ -2287,8 +2288,8 @@ class NodeConfigDefaults(proto.Message): Attributes: gcfs_config (google.cloud.container_v1.types.GcfsConfig): - GCFS (Google Container File System, a.k.a. - Riptide) options. + GCFS (Google Container File System, also + known as Riptide) options. """ gcfs_config = proto.Field( @@ -4967,7 +4968,7 @@ class CompleteNodePoolUpgradeRequest(proto.Message): name (str): The name (project, location, cluster, node pool id) of the node pool to complete upgrade. Specified in the format - 'projects/*/locations/*/clusters/*/nodePools/*'. + ``projects/*/locations/*/clusters/*/nodePools/*``. """ name = proto.Field( @@ -5132,9 +5133,10 @@ class AutoprovisioningNodePoolDefaults(proto.Message): information, read `how to specify min CPU platform `__ This field is deprecated, min_cpu_platform should be - specified using cloud.google.com/requested-min-cpu-platform - label selector on the pod. To unset the min cpu platform - field pass "automatic" as field value. + specified using + https://cloud.google.com/requested-min-cpu-platform label + selector on the pod. To unset the min cpu platform field + pass "automatic" as field value. disk_size_gb (int): Size of the disk attached to each node, specified in GB. The smallest allowed disk size diff --git a/google/cloud/container_v1beta1/types/cluster_service.py b/google/cloud/container_v1beta1/types/cluster_service.py index e5ad3797..4f97f5ee 100644 --- a/google/cloud/container_v1beta1/types/cluster_service.py +++ b/google/cloud/container_v1beta1/types/cluster_service.py @@ -1738,7 +1738,7 @@ class IPAllocationPolicy(proto.Message): """ class StackType(proto.Enum): - r"""IP stack type""" + r"""Possible values for IP stack type""" STACK_TYPE_UNSPECIFIED = 0 IPV4 = 1 IPV4_IPV6 = 2 @@ -1830,9 +1830,10 @@ class BinaryAuthorization(proto.Message): Attributes: enabled (bool): - Enable Binary Authorization for this cluster. - If enabled, all container images will be - validated by Binary Authorization. + This field is deprecated. Leave this unset and instead + configure BinaryAuthorization using evaluation_mode. If + evaluation_mode is set to anything other than + EVALUATION_MODE_UNSPECIFIED, this field is ignored. evaluation_mode (google.cloud.container_v1beta1.types.BinaryAuthorization.EvaluationMode): Mode of operation for binauthz policy evaluation. Currently the only options are @@ -2660,8 +2661,8 @@ class NodeConfigDefaults(proto.Message): Attributes: gcfs_config (google.cloud.container_v1beta1.types.GcfsConfig): - GCFS (Google Container File System, a.k.a. - Riptide) options. + GCFS (Google Container File System, also + known as Riptide) options. """ gcfs_config = proto.Field( @@ -5520,7 +5521,7 @@ class CompleteNodePoolUpgradeRequest(proto.Message): name (str): The name (project, location, cluster, node pool id) of the node pool to complete upgrade. Specified in the format - 'projects/*/locations/*/clusters/*/nodePools/*'. + ``projects/*/locations/*/clusters/*/nodePools/*``. """ name = proto.Field( @@ -5702,9 +5703,10 @@ class AutoprovisioningNodePoolDefaults(proto.Message): information, read `how to specify min CPU platform `__ This field is deprecated, min_cpu_platform should be - specified using cloud.google.com/requested-min-cpu-platform - label selector on the pod. To unset the min cpu platform - field pass "automatic" as field value. + specified using + https://cloud.google.com/requested-min-cpu-platform label + selector on the pod. To unset the min cpu platform field + pass "automatic" as field value. disk_size_gb (int): Size of the disk attached to each node, specified in GB. The smallest allowed disk size @@ -6383,7 +6385,7 @@ class Location(proto.Message): Contains the name of the resource requested. Specified in the format ``projects/*/locations/*``. recommended (bool): - Whether the location is recomended for GKE + Whether the location is recommended for GKE cluster scheduling. """ diff --git a/noxfile.py b/noxfile.py index 94b2f9c2..cc39f3b8 100644 --- a/noxfile.py +++ b/noxfile.py @@ -334,7 +334,8 @@ def prerelease_deps(session): # Install all dependencies session.install("-e", ".[all, tests, tracing]") - session.install(*UNIT_TEST_STANDARD_DEPENDENCIES) + unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES + session.install(*unit_deps_all) system_deps_all = ( SYSTEM_TEST_STANDARD_DEPENDENCIES + SYSTEM_TEST_EXTERNAL_DEPENDENCIES @@ -363,12 +364,6 @@ def prerelease_deps(session): session.install(*constraints_deps) - if os.path.exists("samples/snippets/requirements.txt"): - session.install("-r", "samples/snippets/requirements.txt") - - if os.path.exists("samples/snippets/requirements-test.txt"): - session.install("-r", "samples/snippets/requirements-test.txt") - prerel_deps = [ "protobuf", # dependency of grpc @@ -405,11 +400,19 @@ def prerelease_deps(session): system_test_folder_path = os.path.join("tests", "system") # Only run system tests if found. - if os.path.exists(system_test_path) or os.path.exists(system_test_folder_path): - session.run("py.test", "tests/system") - - snippets_test_path = os.path.join("samples", "snippets") - - # Only run samples tests if found. - if os.path.exists(snippets_test_path): - session.run("py.test", "samples/snippets") + if os.path.exists(system_test_path): + session.run( + "py.test", + "--verbose", + f"--junitxml=system_{session.python}_sponge_log.xml", + system_test_path, + *session.posargs, + ) + if os.path.exists(system_test_folder_path): + session.run( + "py.test", + "--verbose", + f"--junitxml=system_{session.python}_sponge_log.xml", + system_test_folder_path, + *session.posargs, + ) diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index d5b72bad..05990f91 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,3 +1,3 @@ -google-cloud-container==2.10.8 +google-cloud-container==2.11.0 backoff==2.1.2 pytest==7.1.2 \ No newline at end of file diff --git a/setup.py b/setup.py index ae635606..bc412fd9 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ name = "google-cloud-container" description = "Google Container Engine API client library" -version = "2.11.0" +version = "2.11.1" # Should be one of: # 'Development Status :: 3 - Alpha' # 'Development Status :: 4 - Beta'