Skip to content

Commit

Permalink
feat: Add field for enabled Beta K8s APIs in proto (#3823)
Browse files Browse the repository at this point in the history
* feat: add etags for cluster and node pool update operations

Clients may now optionally specify the previously read etag for a cluster or node pool during update requests. The etag is regenerated every time the object is updated. If an etag is provided, it will be checked against the current etag, and the request will be rejected on mismatch. This is particularly useful for allowing two clients to concurrently update a repeated field without overwriting each other.

PiperOrigin-RevId: 498249600

Source-Link: googleapis/googleapis@9a294bf

Source-Link: googleapis/googleapis-gen@f0f0e1f
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiZjBmMGUxZmZjM2UyOGUyMDNlN2MyMzNhZjQ5MzY2ODhjOWIyYjA3ZiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: Add field for enabled Beta K8s APIs in proto

---
feat: add etags for cluster and node pool update operations

Clients may now optionally specify the previously read etag for a cluster or node pool during update requests. The etag is regenerated every time the object is updated. If an etag is provided, it will be checked against the current etag, and the request will be rejected on mismatch. This is particularly useful for allowing two clients to concurrently update a repeated field without overwriting each other.

PiperOrigin-RevId: 500787735

Source-Link: googleapis/googleapis@961d1ee

Source-Link: googleapis/googleapis-gen@6d95a0e
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiNmQ5NWEwZTJiZTdmYjY1Y2ZlZThiNDlhMjljMGUyMWFjZjY3MzE5NSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com>
Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com>
  • Loading branch information
4 people committed Jan 10, 2023
1 parent b1c4b9c commit 1a3497a
Show file tree
Hide file tree
Showing 49 changed files with 376 additions and 44 deletions.
2 changes: 1 addition & 1 deletion packages/google-container/.mocharc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Google LLC
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion packages/google-container/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Google LLC
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1781,6 +1781,11 @@ message Cluster {
// Node pool configs that apply to all auto-provisioned node pools
// in autopilot clusters and node auto-provisioning enabled clusters.
NodePoolAutoConfig node_pool_auto_config = 136;

// This checksum is computed by the server based on the value of cluster
// fields, and may be sent on update requests to ensure the client has an
// up-to-date value before proceeding.
string etag = 139;
}

// Node pool configs that apply to all auto-provisioned node pools
Expand Down Expand Up @@ -1979,6 +1984,11 @@ message ClusterUpdate {
// The desired config of Gateway API on this cluster.
GatewayAPIConfig desired_gateway_api_config = 114;

// The current etag of the cluster.
// If an etag is provided and does not match the current etag of the cluster,
// update will be blocked and an ABORTED error will be returned.
string etag = 115;

// The desired node pool logging configuration defaults for the cluster.
NodePoolLoggingConfig desired_node_pool_logging_config = 116;

Expand Down Expand Up @@ -2321,6 +2331,11 @@ message UpdateNodePoolRequest {
// Enable or disable gvnic on the node pool.
VirtualNIC gvnic = 29;

// The current etag of the node pool.
// If an etag is provided and does not match the current etag of the node
// pool, update will be blocked and an ABORTED error will be returned.
string etag = 30;

// Enable or disable NCCL fast socket for the node pool.
FastSocket fast_socket = 31;

Expand Down Expand Up @@ -3129,6 +3144,11 @@ message NodePool {
// Output only. [Output only] Update info contains relevant information during a node
// pool update.
UpdateInfo update_info = 109 [(google.api.field_behavior) = OUTPUT_ONLY];

// This checksum is computed by the server based on the value of node pool
// fields, and may be sent on update requests to ensure the client has an
// up-to-date value before proceeding.
string etag = 110;
}

// NodeManagement defines the set of node management services turned on for the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1961,6 +1961,11 @@ message Cluster {

// Enable/Disable Protect API features for the cluster.
optional ProtectConfig protect_config = 137;

// This checksum is computed by the server based on the value of cluster
// fields, and may be sent on update requests to ensure the client has an
// up-to-date value before proceeding.
string etag = 139;
}

// WorkloadConfig defines the flags to enable or disable the
Expand Down Expand Up @@ -2234,6 +2239,11 @@ message ClusterUpdate {
// The desired config of Gateway API on this cluster.
GatewayAPIConfig desired_gateway_api_config = 114;

// The current etag of the cluster.
// If an etag is provided and does not match the current etag of the cluster,
// update will be blocked and an ABORTED error will be returned.
string etag = 115;

// The desired node pool logging configuration defaults for the cluster.
NodePoolLoggingConfig desired_node_pool_logging_config = 116;

Expand Down Expand Up @@ -2612,6 +2622,11 @@ message UpdateNodePoolRequest {
// Enable or disable gvnic on the node pool.
VirtualNIC gvnic = 29;

// The current etag of the node pool.
// If an etag is provided and does not match the current etag of the node
// pool, update will be blocked and an ABORTED error will be returned.
string etag = 30;

// Enable or disable NCCL fast socket for the node pool.
FastSocket fast_socket = 31;

Expand Down Expand Up @@ -3609,6 +3624,11 @@ message NodePool {
// Output only. [Output only] Update info contains relevant information during a node
// pool update.
UpdateInfo update_info = 109 [(google.api.field_behavior) = OUTPUT_ONLY];

// This checksum is computed by the server based on the value of node pool
// fields, and may be sent on update requests to ensure the client has an
// up-to-date value before proceeding.
string etag = 110;
}

// NodeManagement defines the set of node management services turned on for the
Expand Down
50 changes: 49 additions & 1 deletion packages/google-container/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1a3497a

Please sign in to comment.