Skip to content

Commit 1729080

Browse files
feat: [google-cloud-container] Add autoscaled node pool upgrade strategy (#12135)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 591922529 Source-Link: googleapis/googleapis@f33842a Source-Link: googleapis/googleapis-gen@5fcb719 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiNWZjYjcxOTg1OGQ2NTk5ZTA1NTQ3MmNhMTAxOGI1NTVmYzhkYzIyYSJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 60b5621 commit 1729080

File tree

6 files changed

+27
-5
lines changed

6 files changed

+27
-5
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.36.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.36.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.36.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

+22
Original file line numberDiff line numberDiff line change
@@ -6349,12 +6349,22 @@ class GetNodePoolRequest(proto.Message):
63496349
class BlueGreenSettings(proto.Message):
63506350
r"""Settings for blue-green upgrade.
63516351
6352+
This message has `oneof`_ fields (mutually exclusive fields).
6353+
For each oneof, at most one member field can be set at the same time.
6354+
Setting any member of the oneof automatically clears all other
6355+
members.
6356+
63526357
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
63536358
63546359
Attributes:
63556360
standard_rollout_policy (google.cloud.container_v1beta1.types.BlueGreenSettings.StandardRolloutPolicy):
63566361
Standard policy for the blue-green upgrade.
63576362
6363+
This field is a member of `oneof`_ ``rollout_policy``.
6364+
autoscaled_rollout_policy (google.cloud.container_v1beta1.types.BlueGreenSettings.AutoscaledRolloutPolicy):
6365+
Autoscaled policy for cluster autoscaler
6366+
enabled blue-green upgrade.
6367+
63586368
This field is a member of `oneof`_ ``rollout_policy``.
63596369
node_pool_soak_duration (google.protobuf.duration_pb2.Duration):
63606370
Time needed after draining entire blue pool.
@@ -6407,12 +6417,24 @@ class StandardRolloutPolicy(proto.Message):
64076417
message=duration_pb2.Duration,
64086418
)
64096419

6420+
class AutoscaledRolloutPolicy(proto.Message):
6421+
r"""Autoscaled rollout policy uses cluster autoscaler during
6422+
blue-green upgrades to scale both the green and blue pools.
6423+
6424+
"""
6425+
64106426
standard_rollout_policy: StandardRolloutPolicy = proto.Field(
64116427
proto.MESSAGE,
64126428
number=1,
64136429
oneof="rollout_policy",
64146430
message=StandardRolloutPolicy,
64156431
)
6432+
autoscaled_rollout_policy: AutoscaledRolloutPolicy = proto.Field(
6433+
proto.MESSAGE,
6434+
number=3,
6435+
oneof="rollout_policy",
6436+
message=AutoscaledRolloutPolicy,
6437+
)
64166438
node_pool_soak_duration: duration_pb2.Duration = proto.Field(
64176439
proto.MESSAGE,
64186440
number=2,

packages/google-cloud-container/samples/generated_samples/snippet_metadata_google.container.v1.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-container",
11-
"version": "2.36.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-container/samples/generated_samples/snippet_metadata_google.container.v1beta1.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-container",
11-
"version": "2.36.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)