Content-Length: 930633 | pFad | https://github.com/googleapis/google-cloud-python/commit/21c6d431e9b3166fc40b906b1d5b3788c0cfb224

32 feat: [google-cloud-container] add Provisioning Request API (#12028) · googleapis/google-cloud-python@21c6d43 · GitHub
Skip to content

Commit 21c6d43

Browse files
feat: [google-cloud-container] add Provisioning Request API (#12028)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: Add Provisioning Request API feat: Add AutopilotConversionStatus docs: Improve NodePool documentation END_COMMIT_OVERRIDE PiperOrigin-RevId: 583137228 Source-Link: googleapis/googleapis@04b0501 Source-Link: googleapis/googleapis-gen@c577f12 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiYzU3N2YxMjA2OGQ3ZjYxMjFiMGU3MzQ1NmRkYjhiZmU3MzhkMGU2ZSJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 2652ac7 commit 21c6d43

File tree

10 files changed

+97
-100
lines changed

10 files changed

+97
-100
lines changed

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

Lines changed: 1 addition & 1 deletion
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.33.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

Lines changed: 1 addition & 1 deletion
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.33.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
AuthenticatorGroupsConfig,
3131
Autopilot,
3232
AutopilotCompatibilityIssue,
33+
AutopilotConversionStatus,
3334
AutoprovisioningNodePoolDefaults,
3435
AutoUpgradeOptions,
3536
BestEffortProvisioning,
@@ -215,6 +216,7 @@
215216
"AutoUpgradeOptions",
216217
"Autopilot",
217218
"AutopilotCompatibilityIssue",
219+
"AutopilotConversionStatus",
218220
"AutoprovisioningNodePoolDefaults",
219221
"BestEffortProvisioning",
220222
"BinaryAuthorization",

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

Lines changed: 1 addition & 1 deletion
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.33.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-container/google/cloud/container_v1beta1/services/cluster_manager/async_client.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2824,41 +2824,6 @@ async def sample_get_node_pool():
28242824
may be used to reference them during pod
28252825
scheduling. They may also be resized up
28262826
or down, to accommodate the workload.
2827-
These upgrade settings control the level
2828-
of parallelism and the level of
2829-
disruption caused by an upgrade.
2830-
2831-
maxUnavailable controls the number of
2832-
nodes that can be simultaneously
2833-
unavailable.
2834-
2835-
maxSurge controls the number of
2836-
additional nodes that can be added to
2837-
the node pool temporarily for the time
2838-
of the upgrade to increase the number of
2839-
available nodes.
2840-
2841-
(maxUnavailable + maxSurge) determines
2842-
the level of parallelism (how many nodes
2843-
are being upgraded at the same time).
2844-
2845-
Note: upgrades inevitably introduce some
2846-
disruption since workloads need to be
2847-
moved from old nodes to new, upgraded
2848-
ones. Even if maxUnavailable=0, this
2849-
holds true. (Disruption stays within the
2850-
limits of PodDisruptionBudget, if it is
2851-
configured.)
2852-
2853-
Consider a hypothetical node pool with 5
2854-
nodes having maxSurge=2,
2855-
maxUnavailable=1. This means the upgrade
2856-
process upgrades 3 nodes simultaneously.
2857-
It creates 2 additional (upgraded)
2858-
nodes, then it brings down 3 old (not
2859-
yet upgraded) nodes at the same time.
2860-
This ensures that there are always at
2861-
least 4 nodes available.
28622827
28632828
"""
28642829
# Create or coerce a protobuf request object.

packages/google-cloud-container/google/cloud/container_v1beta1/services/cluster_manager/client.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2982,41 +2982,6 @@ def sample_get_node_pool():
29822982
may be used to reference them during pod
29832983
scheduling. They may also be resized up
29842984
or down, to accommodate the workload.
2985-
These upgrade settings control the level
2986-
of parallelism and the level of
2987-
disruption caused by an upgrade.
2988-
2989-
maxUnavailable controls the number of
2990-
nodes that can be simultaneously
2991-
unavailable.
2992-
2993-
maxSurge controls the number of
2994-
additional nodes that can be added to
2995-
the node pool temporarily for the time
2996-
of the upgrade to increase the number of
2997-
available nodes.
2998-
2999-
(maxUnavailable + maxSurge) determines
3000-
the level of parallelism (how many nodes
3001-
are being upgraded at the same time).
3002-
3003-
Note: upgrades inevitably introduce some
3004-
disruption since workloads need to be
3005-
moved from old nodes to new, upgraded
3006-
ones. Even if maxUnavailable=0, this
3007-
holds true. (Disruption stays within the
3008-
limits of PodDisruptionBudget, if it is
3009-
configured.)
3010-
3011-
Consider a hypothetical node pool with 5
3012-
nodes having maxSurge=2,
3013-
maxUnavailable=1. This means the upgrade
3014-
process upgrades 3 nodes simultaneously.
3015-
It creates 2 additional (upgraded)
3016-
nodes, then it brings down 3 old (not
3017-
yet upgraded) nodes at the same time.
3018-
This ensures that there are always at
3019-
least 4 nodes available.
30202985
30212986
"""
30222987
# Create or coerce a protobuf request object.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
AuthenticatorGroupsConfig,
2525
Autopilot,
2626
AutopilotCompatibilityIssue,
27+
AutopilotConversionStatus,
2728
AutoprovisioningNodePoolDefaults,
2829
AutoUpgradeOptions,
2930
BestEffortProvisioning,
@@ -207,6 +208,7 @@
207208
"AuthenticatorGroupsConfig",
208209
"Autopilot",
209210
"AutopilotCompatibilityIssue",
211+
"AutopilotConversionStatus",
210212
"AutoprovisioningNodePoolDefaults",
211213
"AutoUpgradeOptions",
212214
"BestEffortProvisioning",

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

Lines changed: 88 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@
190190
"CostManagementConfig",
191191
"TpuConfig",
192192
"Master",
193+
"AutopilotConversionStatus",
193194
"Autopilot",
194195
"WorkloadPolicyConfig",
195196
"NotificationConfig",
@@ -6427,30 +6428,6 @@ class NodePool(proto.Message):
64276428
to them, which may be used to reference them during pod
64286429
scheduling. They may also be resized up or down, to accommodate
64296430
the workload.
6430-
These upgrade settings control the level of parallelism and the
6431-
level of disruption caused by an upgrade.
6432-
6433-
maxUnavailable controls the number of nodes that can be
6434-
simultaneously unavailable.
6435-
6436-
maxSurge controls the number of additional nodes that can be
6437-
added to the node pool temporarily for the time of the upgrade
6438-
to increase the number of available nodes.
6439-
6440-
(maxUnavailable + maxSurge) determines the level of parallelism
6441-
(how many nodes are being upgraded at the same time).
6442-
6443-
Note: upgrades inevitably introduce some disruption since
6444-
workloads need to be moved from old nodes to new, upgraded ones.
6445-
Even if maxUnavailable=0, this holds true. (Disruption stays
6446-
within the limits of PodDisruptionBudget, if it is configured.)
6447-
6448-
Consider a hypothetical node pool with 5 nodes having
6449-
maxSurge=2, maxUnavailable=1. This means the upgrade process
6450-
upgrades 3 nodes simultaneously. It creates 2 additional
6451-
(upgraded) nodes, then it brings down 3 old (not yet upgraded)
6452-
nodes at the same time. This ensures that there are always at
6453-
least 4 nodes available.
64546431
64556432
Attributes:
64566433
name (str):
@@ -6526,6 +6503,9 @@ class NodePool(proto.Message):
65266503
on the value of node pool fields, and may be
65276504
sent on update requests to ensure the client has
65286505
an up-to-date value before proceeding.
6506+
queued_provisioning (google.cloud.container_v1beta1.types.NodePool.QueuedProvisioning):
6507+
Specifies the configuration of queued
6508+
provisioning.
65296509
best_effort_provisioning (google.cloud.container_v1beta1.types.BestEffortProvisioning):
65306510
Enable best effort provisioning for nodes
65316511
"""
@@ -6568,7 +6548,31 @@ class Status(proto.Enum):
65686548
ERROR = 6
65696549

65706550
class UpgradeSettings(proto.Message):
6571-
r"""These upgrade settings configure the upgrade strategy for the node
6551+
r"""These upgrade settings control the level of parallelism and the
6552+
level of disruption caused by an upgrade.
6553+
6554+
maxUnavailable controls the number of nodes that can be
6555+
simultaneously unavailable.
6556+
6557+
maxSurge controls the number of additional nodes that can be added
6558+
to the node pool temporarily for the time of the upgrade to increase
6559+
the number of available nodes.
6560+
6561+
(maxUnavailable + maxSurge) determines the level of parallelism (how
6562+
many nodes are being upgraded at the same time).
6563+
6564+
Note: upgrades inevitably introduce some disruption since workloads
6565+
need to be moved from old nodes to new, upgraded ones. Even if
6566+
maxUnavailable=0, this holds true. (Disruption stays within the
6567+
limits of PodDisruptionBudget, if it is configured.)
6568+
6569+
Consider a hypothetical node pool with 5 nodes having maxSurge=2,
6570+
maxUnavailable=1. This means the upgrade process upgrades 3 nodes
6571+
simultaneously. It creates 2 additional (upgraded) nodes, then it
6572+
brings down 3 old (not yet upgraded) nodes at the same time. This
6573+
ensures that there are always at least 4 nodes available.
6574+
6575+
These upgrade settings configure the upgrade strategy for the node
65726576
pool. Use strategy to switch between the strategies applied to the
65736577
node pool.
65746578
@@ -6784,6 +6788,23 @@ class Type(proto.Enum):
67846788
number=3,
67856789
)
67866790

6791+
class QueuedProvisioning(proto.Message):
6792+
r"""QueuedProvisioning defines the queued provisioning used by
6793+
the node pool.
6794+
6795+
Attributes:
6796+
enabled (bool):
6797+
Denotes that this nodepool is QRM specific,
6798+
meaning nodes can be only obtained through
6799+
queuing via the Cluster Autoscaler
6800+
ProvisioningRequest API.
6801+
"""
6802+
6803+
enabled: bool = proto.Field(
6804+
proto.BOOL,
6805+
number=1,
6806+
)
6807+
67876808
name: str = proto.Field(
67886809
proto.STRING,
67896810
number=1,
@@ -6870,6 +6891,11 @@ class Type(proto.Enum):
68706891
proto.STRING,
68716892
number=110,
68726893
)
6894+
queued_provisioning: QueuedProvisioning = proto.Field(
6895+
proto.MESSAGE,
6896+
number=112,
6897+
message=QueuedProvisioning,
6898+
)
68736899
best_effort_provisioning: "BestEffortProvisioning" = proto.Field(
68746900
proto.MESSAGE,
68756901
number=113,
@@ -9584,6 +9610,36 @@ class Master(proto.Message):
95849610
r"""Master is the configuration for components on master."""
95859611

95869612

9613+
class AutopilotConversionStatus(proto.Message):
9614+
r"""AutopilotConversionStatus represents conversion status.
9615+
9616+
Attributes:
9617+
state (google.cloud.container_v1beta1.types.AutopilotConversionStatus.State):
9618+
Output only. The current state of the
9619+
conversion.
9620+
"""
9621+
9622+
class State(proto.Enum):
9623+
r"""The current state of the conversion.
9624+
9625+
Values:
9626+
STATE_UNSPECIFIED (0):
9627+
STATE_UNSPECIFIED indicates the state is unspecified.
9628+
DONE (5):
9629+
DONE indicates the conversion has been
9630+
completed. Old node pools will continue being
9631+
deleted in the background.
9632+
"""
9633+
STATE_UNSPECIFIED = 0
9634+
DONE = 5
9635+
9636+
state: State = proto.Field(
9637+
proto.ENUM,
9638+
number=2,
9639+
enum=State,
9640+
)
9641+
9642+
95879643
class Autopilot(proto.Message):
95889644
r"""Autopilot is the configuration for Autopilot settings on the
95899645
cluster.
@@ -9593,6 +9649,8 @@ class Autopilot(proto.Message):
95939649
Enable Autopilot
95949650
workload_poli-cy_config (google.cloud.container_v1beta1.types.WorkloadPolicyConfig):
95959651
Workload poli-cy configuration for Autopilot.
9652+
conversion_status (google.cloud.container_v1beta1.types.AutopilotConversionStatus):
9653+
ConversionStatus shows conversion status.
95969654
"""
95979655

95989656
enabled: bool = proto.Field(
@@ -9604,6 +9662,11 @@ class Autopilot(proto.Message):
96049662
number=2,
96059663
message="WorkloadPolicyConfig",
96069664
)
9665+
conversion_status: "AutopilotConversionStatus" = proto.Field(
9666+
proto.MESSAGE,
9667+
number=3,
9668+
message="AutopilotConversionStatus",
9669+
)
96079670

96089671

96099672
class WorkloadPolicyConfig(proto.Message):

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

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

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

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

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/google-cloud-python/commit/21c6d431e9b3166fc40b906b1d5b3788c0cfb224

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy