Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add field for enabled Beta K8s APIs in proto #3823

Merged
merged 11 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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