Skip to content

Commit

Permalink
feat: add support to modify kubelet pod pid limit in node system conf…
Browse files Browse the repository at this point in the history
…iguration

feat: support spot VM
feat: support Tier 1 bandwidth
feat: update support for node pool labels, taints and network tags
feat: add Binauthz Evaluation mode support to GKE Classic
feat: add GKE Identity Service
feat: add network tags to autopilot cluster
feat: support enabling Confidential Nodes in the node pool
feat: support node pool blue-green upgrade
feat: add Location Policy API
feat: support GPU timesharing
feat: add managed prometheus feature

PiperOrigin-RevId: 458323987

Source-Link: googleapis/googleapis@c51f2ed

Source-Link: googleapis/googleapis-gen@45233cb
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQ29udGFpbmVyLlYxLy5Pd2xCb3QueWFtbCIsImgiOiI0NTIzM2NiZTZjNTFmMmNmNTY2ZTVkNWY1ZTYzMTI5YzdmODlmM2VkIn0=
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Jul 1, 2022
1 parent 27b3c67 commit 33a4b1d
Show file tree
Hide file tree
Showing 13 changed files with 6,351 additions and 1,539 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Generated code. DO NOT EDIT!

namespace Google.Cloud.Container.V1.Snippets
{
// [START container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_async]
using Google.Cloud.Container.V1;
using System.Threading.Tasks;

public sealed partial class GeneratedClusterManagerClientSnippets
{
/// <summary>Snippet for CompleteNodePoolUpgradeAsync</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public async Task CompleteNodePoolUpgradeRequestObjectAsync()
{
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
CompleteNodePoolUpgradeRequest request = new CompleteNodePoolUpgradeRequest { Name = "", };
// Make the request
await clusterManagerClient.CompleteNodePoolUpgradeAsync(request);
}
}
// [END container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Generated code. DO NOT EDIT!

namespace Google.Cloud.Container.V1.Snippets
{
// [START container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_sync]
using Google.Cloud.Container.V1;

public sealed partial class GeneratedClusterManagerClientSnippets
{
/// <summary>Snippet for CompleteNodePoolUpgrade</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public void CompleteNodePoolUpgradeRequestObject()
{
// Create client
ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
// Initialize request argument(s)
CompleteNodePoolUpgradeRequest request = new CompleteNodePoolUpgradeRequest { Name = "", };
// Make the request
clusterManagerClient.CompleteNodePoolUpgrade(request);
}
}
// [END container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_sync]
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ public async Task RollbackNodePoolUpgradeRequestObjectAsync()
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
RollbackNodePoolUpgradeRequest request = new RollbackNodePoolUpgradeRequest { Name = "", };
RollbackNodePoolUpgradeRequest request = new RollbackNodePoolUpgradeRequest
{
Name = "",
RespectPdb = false,
};
// Make the request
Operation response = await clusterManagerClient.RollbackNodePoolUpgradeAsync(request);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ public void RollbackNodePoolUpgradeRequestObject()
// Create client
ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
// Initialize request argument(s)
RollbackNodePoolUpgradeRequest request = new RollbackNodePoolUpgradeRequest { Name = "", };
RollbackNodePoolUpgradeRequest request = new RollbackNodePoolUpgradeRequest
{
Name = "",
RespectPdb = false,
};
// Make the request
Operation response = clusterManagerClient.RollbackNodePoolUpgrade(request);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,14 @@ public async Task UpdateNodePoolRequestObjectAsync()
Locations = { "", },
WorkloadMetadataConfig = new WorkloadMetadataConfig(),
UpgradeSettings = new NodePool.Types.UpgradeSettings(),
Tags = new NetworkTags(),
Taints = new NodeTaints(),
Labels = new NodeLabels(),
LinuxNodeConfig = new LinuxNodeConfig(),
KubeletConfig = new NodeKubeletConfig(),
NodeNetworkConfig = new NodeNetworkConfig(),
GcfsConfig = new GcfsConfig(),
ConfidentialNodes = new ConfidentialNodes(),
Gvnic = new VirtualNIC(),
};
// Make the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ public void UpdateNodePoolRequestObject()
Locations = { "", },
WorkloadMetadataConfig = new WorkloadMetadataConfig(),
UpgradeSettings = new NodePool.Types.UpgradeSettings(),
Tags = new NetworkTags(),
Taints = new NodeTaints(),
Labels = new NodeLabels(),
LinuxNodeConfig = new LinuxNodeConfig(),
KubeletConfig = new NodeKubeletConfig(),
NodeNetworkConfig = new NodeNetworkConfig(),
GcfsConfig = new GcfsConfig(),
ConfidentialNodes = new ConfidentialNodes(),
Gvnic = new VirtualNIC(),
};
// Make the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2958,6 +2958,58 @@
},
"origin": "API_DEFINITION"
},
{
"regionTag": "container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_sync",
"title": "CompleteNodePoolUpgradeRequestObject",
"description": "Snippet for CompleteNodePoolUpgrade",
"file": "ClusterManagerClient.CompleteNodePoolUpgradeRequestObjectSnippet.g.cs",
"language": "C_SHARP",
"clientMethod": {
"shortName": "CompleteNodePoolUpgrade",
"fullName": "Google.Cloud.Container.V1.ClusterManagerClient.CompleteNodePoolUpgrade",
"client": {
"shortName": "ClusterManagerClient",
"fullName": "Google.Cloud.Container.V1.ClusterManagerClient"
},
"method": {
"shortName": "CompleteNodePoolUpgrade",
"fullName": "google.container.v1.ClusterManager.CompleteNodePoolUpgrade",
"service": {
"shortName": "ClusterManager",
"fullName": "google.container.v1.ClusterManager"
}
}
},
"canonical": true,
"origin": "API_DEFINITION"
},
{
"regionTag": "container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_async",
"title": "CompleteNodePoolUpgradeRequestObjectAsync",
"description": "Snippet for CompleteNodePoolUpgradeAsync",
"file": "ClusterManagerClient.CompleteNodePoolUpgradeRequestObjectAsyncSnippet.g.cs",
"language": "C_SHARP",
"clientMethod": {
"shortName": "CompleteNodePoolUpgradeAsync",
"fullName": "Google.Cloud.Container.V1.ClusterManagerClient.CompleteNodePoolUpgradeAsync",
"async": true,
"resultType": "System.Threading.Tasks.Task",
"client": {
"shortName": "ClusterManagerClient",
"fullName": "Google.Cloud.Container.V1.ClusterManagerClient"
},
"method": {
"shortName": "CompleteNodePoolUpgrade",
"fullName": "google.container.v1.ClusterManager.CompleteNodePoolUpgrade",
"service": {
"shortName": "ClusterManager",
"fullName": "google.container.v1.ClusterManager"
}
}
},
"canonical": true,
"origin": "API_DEFINITION"
},
{
"regionTag": "container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_sync",
"title": "RollbackNodePoolUpgradeRequestObject",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,14 @@ public void UpdateNodePoolRequestObject()
Locations = { "", },
WorkloadMetadataConfig = new WorkloadMetadataConfig(),
UpgradeSettings = new NodePool.Types.UpgradeSettings(),
Tags = new NetworkTags(),
Taints = new NodeTaints(),
Labels = new NodeLabels(),
LinuxNodeConfig = new LinuxNodeConfig(),
KubeletConfig = new NodeKubeletConfig(),
NodeNetworkConfig = new NodeNetworkConfig(),
GcfsConfig = new GcfsConfig(),
ConfidentialNodes = new ConfidentialNodes(),
Gvnic = new VirtualNIC(),
};
// Make the request
Expand All @@ -442,9 +447,14 @@ public async Task UpdateNodePoolRequestObjectAsync()
Locations = { "", },
WorkloadMetadataConfig = new WorkloadMetadataConfig(),
UpgradeSettings = new NodePool.Types.UpgradeSettings(),
Tags = new NetworkTags(),
Taints = new NodeTaints(),
Labels = new NodeLabels(),
LinuxNodeConfig = new LinuxNodeConfig(),
KubeletConfig = new NodeKubeletConfig(),
NodeNetworkConfig = new NodeNetworkConfig(),
GcfsConfig = new GcfsConfig(),
ConfidentialNodes = new ConfidentialNodes(),
Gvnic = new VirtualNIC(),
};
// Make the request
Expand Down Expand Up @@ -1850,14 +1860,45 @@ public async Task DeleteNodePool2Async()
// End snippet
}

/// <summary>Snippet for CompleteNodePoolUpgrade</summary>
public void CompleteNodePoolUpgradeRequestObject()
{
// Snippet: CompleteNodePoolUpgrade(CompleteNodePoolUpgradeRequest, CallSettings)
// Create client
ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
// Initialize request argument(s)
CompleteNodePoolUpgradeRequest request = new CompleteNodePoolUpgradeRequest { Name = "", };
// Make the request
clusterManagerClient.CompleteNodePoolUpgrade(request);
// End snippet
}

/// <summary>Snippet for CompleteNodePoolUpgradeAsync</summary>
public async Task CompleteNodePoolUpgradeRequestObjectAsync()
{
// Snippet: CompleteNodePoolUpgradeAsync(CompleteNodePoolUpgradeRequest, CallSettings)
// Additional: CompleteNodePoolUpgradeAsync(CompleteNodePoolUpgradeRequest, CancellationToken)
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
CompleteNodePoolUpgradeRequest request = new CompleteNodePoolUpgradeRequest { Name = "", };
// Make the request
await clusterManagerClient.CompleteNodePoolUpgradeAsync(request);
// End snippet
}

/// <summary>Snippet for RollbackNodePoolUpgrade</summary>
public void RollbackNodePoolUpgradeRequestObject()
{
// Snippet: RollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest, CallSettings)
// Create client
ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
// Initialize request argument(s)
RollbackNodePoolUpgradeRequest request = new RollbackNodePoolUpgradeRequest { Name = "", };
RollbackNodePoolUpgradeRequest request = new RollbackNodePoolUpgradeRequest
{
Name = "",
RespectPdb = false,
};
// Make the request
Operation response = clusterManagerClient.RollbackNodePoolUpgrade(request);
// End snippet
Expand All @@ -1871,7 +1912,11 @@ public async Task RollbackNodePoolUpgradeRequestObjectAsync()
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
RollbackNodePoolUpgradeRequest request = new RollbackNodePoolUpgradeRequest { Name = "", };
RollbackNodePoolUpgradeRequest request = new RollbackNodePoolUpgradeRequest
{
Name = "",
RespectPdb = false,
};
// Make the request
Operation response = await clusterManagerClient.RollbackNodePoolUpgradeAsync(request);
// End snippet
Expand Down
Loading

0 comments on commit 33a4b1d

Please sign in to comment.