Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

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 (#752)

* feat: add cgroup mode to node system config
feat: add support to modify kubelet pod pid limit in node system configuration
feat: support Tier 1 bandwidth
feat: support IPV6 Dual Stack (stack_type)
feat: add Binauthz Evaluation mode support to GKE Classic
feat: support GKE Cost Allocations
feat: add network tags to autopilot cluster
feat: add protect config audit api
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

PiperOrigin-RevId: 458322449

Source-Link: googleapis/googleapis@61ea2e5

Source-Link: googleapis/googleapis-gen@30e187a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzBlMTg3YTBiMDA2ZDM5NjkyZWVlNDBiZmU4NGZiN2M3MWI5NWE3YiJ9

* 🦉 Updates from OwlBot post-processor

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

* feat: add support to modify kubelet pod pid limit in node system configuration
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: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDUyMzNjYmU2YzUxZjJjZjU2NmU1ZDVmNWU2MzEyOWM3Zjg5ZjNlZCJ9

* 🦉 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Jul 6, 2022
1 parent 38ec7bd commit 6681fbe
Show file tree
Hide file tree
Showing 272 changed files with 47,780 additions and 5,514 deletions.

Large diffs are not rendered by default.

Expand Up @@ -33,6 +33,7 @@
import com.google.container.v1.CancelOperationRequest;
import com.google.container.v1.Cluster;
import com.google.container.v1.CompleteIPRotationRequest;
import com.google.container.v1.CompleteNodePoolUpgradeRequest;
import com.google.container.v1.CreateClusterRequest;
import com.google.container.v1.CreateNodePoolRequest;
import com.google.container.v1.DeleteClusterRequest;
Expand Down Expand Up @@ -229,6 +230,12 @@ public UnaryCallSettings<DeleteNodePoolRequest, Operation> deleteNodePoolSetting
return ((ClusterManagerStubSettings) getStubSettings()).deleteNodePoolSettings();
}

/** Returns the object with the settings used for calls to completeNodePoolUpgrade. */
public UnaryCallSettings<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeSettings() {
return ((ClusterManagerStubSettings) getStubSettings()).completeNodePoolUpgradeSettings();
}

/** Returns the object with the settings used for calls to rollbackNodePoolUpgrade. */
public UnaryCallSettings<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings() {
Expand Down Expand Up @@ -505,6 +512,12 @@ public UnaryCallSettings.Builder<DeleteNodePoolRequest, Operation> deleteNodePoo
return getStubSettingsBuilder().deleteNodePoolSettings();
}

/** Returns the builder for the settings used for calls to completeNodePoolUpgrade. */
public UnaryCallSettings.Builder<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeSettings() {
return getStubSettingsBuilder().completeNodePoolUpgradeSettings();
}

/** Returns the builder for the settings used for calls to rollbackNodePoolUpgrade. */
public UnaryCallSettings.Builder<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings() {
Expand Down
Expand Up @@ -16,6 +16,9 @@
"CompleteIPRotation": {
"methods": ["completeIPRotation", "completeIPRotation", "completeIPRotation", "completeIPRotationCallable"]
},
"CompleteNodePoolUpgrade": {
"methods": ["completeNodePoolUpgrade", "completeNodePoolUpgradeCallable"]
},
"CreateCluster": {
"methods": ["createCluster", "createCluster", "createCluster", "createClusterCallable"]
},
Expand Down
Expand Up @@ -23,6 +23,7 @@
import com.google.container.v1.CancelOperationRequest;
import com.google.container.v1.Cluster;
import com.google.container.v1.CompleteIPRotationRequest;
import com.google.container.v1.CompleteNodePoolUpgradeRequest;
import com.google.container.v1.CreateClusterRequest;
import com.google.container.v1.CreateNodePoolRequest;
import com.google.container.v1.DeleteClusterRequest;
Expand Down Expand Up @@ -162,6 +163,10 @@ public UnaryCallable<DeleteNodePoolRequest, Operation> deleteNodePoolCallable()
throw new UnsupportedOperationException("Not implemented: deleteNodePoolCallable()");
}

public UnaryCallable<CompleteNodePoolUpgradeRequest, Empty> completeNodePoolUpgradeCallable() {
throw new UnsupportedOperationException("Not implemented: completeNodePoolUpgradeCallable()");
}

public UnaryCallable<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeCallable() {
throw new UnsupportedOperationException("Not implemented: rollbackNodePoolUpgradeCallable()");
Expand Down
Expand Up @@ -47,6 +47,7 @@
import com.google.container.v1.CancelOperationRequest;
import com.google.container.v1.Cluster;
import com.google.container.v1.CompleteIPRotationRequest;
import com.google.container.v1.CompleteNodePoolUpgradeRequest;
import com.google.container.v1.CreateClusterRequest;
import com.google.container.v1.CreateNodePoolRequest;
import com.google.container.v1.DeleteClusterRequest;
Expand Down Expand Up @@ -159,6 +160,8 @@ public class ClusterManagerStubSettings extends StubSettings<ClusterManagerStubS
private final UnaryCallSettings<GetNodePoolRequest, NodePool> getNodePoolSettings;
private final UnaryCallSettings<CreateNodePoolRequest, Operation> createNodePoolSettings;
private final UnaryCallSettings<DeleteNodePoolRequest, Operation> deleteNodePoolSettings;
private final UnaryCallSettings<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeSettings;
private final UnaryCallSettings<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings;
private final UnaryCallSettings<SetNodePoolManagementRequest, Operation>
Expand Down Expand Up @@ -358,6 +361,12 @@ public UnaryCallSettings<DeleteNodePoolRequest, Operation> deleteNodePoolSetting
return deleteNodePoolSettings;
}

/** Returns the object with the settings used for calls to completeNodePoolUpgrade. */
public UnaryCallSettings<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeSettings() {
return completeNodePoolUpgradeSettings;
}

/** Returns the object with the settings used for calls to rollbackNodePoolUpgrade. */
public UnaryCallSettings<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings() {
Expand Down Expand Up @@ -511,6 +520,7 @@ protected ClusterManagerStubSettings(Builder settingsBuilder) throws IOException
getNodePoolSettings = settingsBuilder.getNodePoolSettings().build();
createNodePoolSettings = settingsBuilder.createNodePoolSettings().build();
deleteNodePoolSettings = settingsBuilder.deleteNodePoolSettings().build();
completeNodePoolUpgradeSettings = settingsBuilder.completeNodePoolUpgradeSettings().build();
rollbackNodePoolUpgradeSettings = settingsBuilder.rollbackNodePoolUpgradeSettings().build();
setNodePoolManagementSettings = settingsBuilder.setNodePoolManagementSettings().build();
setLabelsSettings = settingsBuilder.setLabelsSettings().build();
Expand Down Expand Up @@ -560,6 +570,8 @@ public static class Builder extends StubSettings.Builder<ClusterManagerStubSetti
createNodePoolSettings;
private final UnaryCallSettings.Builder<DeleteNodePoolRequest, Operation>
deleteNodePoolSettings;
private final UnaryCallSettings.Builder<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeSettings;
private final UnaryCallSettings.Builder<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings;
private final UnaryCallSettings.Builder<SetNodePoolManagementRequest, Operation>
Expand Down Expand Up @@ -656,6 +668,7 @@ protected Builder(ClientContext clientContext) {
getNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
createNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
deleteNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
completeNodePoolUpgradeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
rollbackNodePoolUpgradeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
setNodePoolManagementSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
setLabelsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
Expand Down Expand Up @@ -692,6 +705,7 @@ protected Builder(ClientContext clientContext) {
getNodePoolSettings,
createNodePoolSettings,
deleteNodePoolSettings,
completeNodePoolUpgradeSettings,
rollbackNodePoolUpgradeSettings,
setNodePoolManagementSettings,
setLabelsSettings,
Expand Down Expand Up @@ -730,6 +744,7 @@ protected Builder(ClusterManagerStubSettings settings) {
getNodePoolSettings = settings.getNodePoolSettings.toBuilder();
createNodePoolSettings = settings.createNodePoolSettings.toBuilder();
deleteNodePoolSettings = settings.deleteNodePoolSettings.toBuilder();
completeNodePoolUpgradeSettings = settings.completeNodePoolUpgradeSettings.toBuilder();
rollbackNodePoolUpgradeSettings = settings.rollbackNodePoolUpgradeSettings.toBuilder();
setNodePoolManagementSettings = settings.setNodePoolManagementSettings.toBuilder();
setLabelsSettings = settings.setLabelsSettings.toBuilder();
Expand Down Expand Up @@ -765,6 +780,7 @@ protected Builder(ClusterManagerStubSettings settings) {
getNodePoolSettings,
createNodePoolSettings,
deleteNodePoolSettings,
completeNodePoolUpgradeSettings,
rollbackNodePoolUpgradeSettings,
setNodePoolManagementSettings,
setLabelsSettings,
Expand Down Expand Up @@ -901,6 +917,11 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));

builder
.completeNodePoolUpgradeSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));

builder
.rollbackNodePoolUpgradeSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
Expand Down Expand Up @@ -1092,6 +1113,12 @@ public UnaryCallSettings.Builder<DeleteNodePoolRequest, Operation> deleteNodePoo
return deleteNodePoolSettings;
}

/** Returns the builder for the settings used for calls to completeNodePoolUpgrade. */
public UnaryCallSettings.Builder<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeSettings() {
return completeNodePoolUpgradeSettings;
}

/** Returns the builder for the settings used for calls to rollbackNodePoolUpgrade. */
public UnaryCallSettings.Builder<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeSettings() {
Expand Down
Expand Up @@ -28,6 +28,7 @@
import com.google.container.v1.CancelOperationRequest;
import com.google.container.v1.Cluster;
import com.google.container.v1.CompleteIPRotationRequest;
import com.google.container.v1.CompleteNodePoolUpgradeRequest;
import com.google.container.v1.CreateClusterRequest;
import com.google.container.v1.CreateNodePoolRequest;
import com.google.container.v1.DeleteClusterRequest;
Expand Down Expand Up @@ -298,6 +299,16 @@ public class GrpcClusterManagerStub extends ClusterManagerStub {
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();

private static final MethodDescriptor<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeMethodDescriptor =
MethodDescriptor.<CompleteNodePoolUpgradeRequest, Empty>newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.container.v1.ClusterManager/CompleteNodePoolUpgrade")
.setRequestMarshaller(
ProtoUtils.marshaller(CompleteNodePoolUpgradeRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();

private static final MethodDescriptor<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeMethodDescriptor =
MethodDescriptor.<RollbackNodePoolUpgradeRequest, Operation>newBuilder()
Expand Down Expand Up @@ -420,6 +431,8 @@ public class GrpcClusterManagerStub extends ClusterManagerStub {
private final UnaryCallable<GetNodePoolRequest, NodePool> getNodePoolCallable;
private final UnaryCallable<CreateNodePoolRequest, Operation> createNodePoolCallable;
private final UnaryCallable<DeleteNodePoolRequest, Operation> deleteNodePoolCallable;
private final UnaryCallable<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeCallable;
private final UnaryCallable<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeCallable;
private final UnaryCallable<SetNodePoolManagementRequest, Operation>
Expand Down Expand Up @@ -766,6 +779,17 @@ protected GrpcClusterManagerStub(
return params.build();
})
.build();
GrpcCallSettings<CompleteNodePoolUpgradeRequest, Empty>
completeNodePoolUpgradeTransportSettings =
GrpcCallSettings.<CompleteNodePoolUpgradeRequest, Empty>newBuilder()
.setMethodDescriptor(completeNodePoolUpgradeMethodDescriptor)
.setParamsExtractor(
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
})
.build();
GrpcCallSettings<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeTransportSettings =
GrpcCallSettings.<RollbackNodePoolUpgradeRequest, Operation>newBuilder()
Expand Down Expand Up @@ -973,6 +997,11 @@ protected GrpcClusterManagerStub(
this.deleteNodePoolCallable =
callableFactory.createUnaryCallable(
deleteNodePoolTransportSettings, settings.deleteNodePoolSettings(), clientContext);
this.completeNodePoolUpgradeCallable =
callableFactory.createUnaryCallable(
completeNodePoolUpgradeTransportSettings,
settings.completeNodePoolUpgradeSettings(),
clientContext);
this.rollbackNodePoolUpgradeCallable =
callableFactory.createUnaryCallable(
rollbackNodePoolUpgradeTransportSettings,
Expand Down Expand Up @@ -1137,6 +1166,11 @@ public UnaryCallable<DeleteNodePoolRequest, Operation> deleteNodePoolCallable()
return deleteNodePoolCallable;
}

@Override
public UnaryCallable<CompleteNodePoolUpgradeRequest, Empty> completeNodePoolUpgradeCallable() {
return completeNodePoolUpgradeCallable;
}

@Override
public UnaryCallable<RollbackNodePoolUpgradeRequest, Operation>
rollbackNodePoolUpgradeCallable() {
Expand Down

0 comments on commit 6681fbe

Please sign in to comment.