From bec71e2291bf24012f93ecdf57f37c8e70a09a5d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 25 Jul 2022 22:31:09 -0400 Subject: [PATCH 1/4] chore(python): fix prerelease session [autoapprove] (#270) Source-Link: https://github.com/googleapis/synthtool/commit/1b9ad7694e44ddb4d9844df55ff7af77b51a4435 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:9db98b055a7f8bd82351238ccaacfd3cda58cdf73012ab58b8da146368330021 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 ++-- noxfile.py | 33 ++++++++++++++++++--------------- 2 files changed, 20 insertions(+), 17 deletions(-) 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/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, + ) From 00880358b4021191ff90f1f2a0f08160ce7b6d6a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 2 Aug 2022 12:02:12 +0000 Subject: [PATCH 2/4] docs(v1): BinaryAuthorization.enabled field is marked as deprecated (#272) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 464729666 Source-Link: https://github.com/googleapis/googleapis/commit/c77c0672449e87c8fd65e31c62c72cc87f3e131c Source-Link: https://github.com/googleapis/googleapis-gen/commit/68c2282850add16ddacf3906ff2dae880bf9b4cc Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjhjMjI4Mjg1MGFkZDE2ZGRhY2YzOTA2ZmYyZGFlODgwYmY5YjRjYyJ9 docs(v1beta1): BinaryAuthorization.enabled field is marked as deprecated PiperOrigin-RevId: 464729205 Source-Link: https://github.com/googleapis/googleapis/commit/901a2a2b94c1b746b8375d420e8525542180de2f Source-Link: https://github.com/googleapis/googleapis-gen/commit/dd9caa4fb0ed03441092404ef8fd2516dc590823 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGQ5Y2FhNGZiMGVkMDM0NDEwOTI0MDRlZjhmZDI1MTZkYzU5MDgyMyJ9 --- .../container_v1/types/cluster_service.py | 20 +++++++++------- .../types/cluster_service.py | 24 ++++++++++--------- 2 files changed, 24 insertions(+), 20 deletions(-) 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. """ From 7a4a957ecd0dafd3affa2142fdef927b71ab8660 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 15:47:58 +0200 Subject: [PATCH 3/4] chore(deps): update all dependencies (#271) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update all dependencies * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * revert Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- samples/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From ccd1ea1cb6d51983312ef7c1e5ef8825833facf0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 9 Aug 2022 07:38:59 -0400 Subject: [PATCH 4/4] chore(main): release 2.11.1 (#273) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Shabir Mohamed Abdul Samadh <7249208+Shabirmean@users.noreply.github.com> --- CHANGELOG.md | 8 ++++++++ setup.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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/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'