Skip to content

Commit

Permalink
feat: [google-cloud-container] Add autoscaled node pool upgrade strat…
Browse files Browse the repository at this point in the history
…egy (#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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Dec 19, 2023
1 parent 60b5621 commit 1729080
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.36.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.36.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.36.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -6349,12 +6349,22 @@ class GetNodePoolRequest(proto.Message):
class BlueGreenSettings(proto.Message):
r"""Settings for blue-green upgrade.
This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes:
standard_rollout_policy (google.cloud.container_v1beta1.types.BlueGreenSettings.StandardRolloutPolicy):
Standard policy for the blue-green upgrade.
This field is a member of `oneof`_ ``rollout_policy``.
autoscaled_rollout_policy (google.cloud.container_v1beta1.types.BlueGreenSettings.AutoscaledRolloutPolicy):
Autoscaled policy for cluster autoscaler
enabled blue-green upgrade.
This field is a member of `oneof`_ ``rollout_policy``.
node_pool_soak_duration (google.protobuf.duration_pb2.Duration):
Time needed after draining entire blue pool.
Expand Down Expand Up @@ -6407,12 +6417,24 @@ class StandardRolloutPolicy(proto.Message):
message=duration_pb2.Duration,
)

class AutoscaledRolloutPolicy(proto.Message):
r"""Autoscaled rollout policy uses cluster autoscaler during
blue-green upgrades to scale both the green and blue pools.
"""

standard_rollout_policy: StandardRolloutPolicy = proto.Field(
proto.MESSAGE,
number=1,
oneof="rollout_policy",
message=StandardRolloutPolicy,
)
autoscaled_rollout_policy: AutoscaledRolloutPolicy = proto.Field(
proto.MESSAGE,
number=3,
oneof="rollout_policy",
message=AutoscaledRolloutPolicy,
)
node_pool_soak_duration: duration_pb2.Duration = proto.Field(
proto.MESSAGE,
number=2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-container",
"version": "2.36.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-container",
"version": "2.36.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 1729080

Please sign in to comment.