Skip to content

Commit 50832ad

Browse files
1 parent 6722e66 commit 50832ad

File tree

5 files changed

+279
-15
lines changed

5 files changed

+279
-15
lines changed

clients/google-api-services-container/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-container</artifactId>
25-
<version>v1-rev20241228-2.0.0</version>
25+
<version>v1-rev20250114-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-container:v1-rev20241228-2.0.0'
38+
implementation 'com.google.apis:google-api-services-container:v1-rev20250114-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/LinuxNodeConfig.java

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,13 @@ public final class LinuxNodeConfig extends com.google.api.client.json.GenericJso
4747
/**
4848
* The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The
4949
* following parameters are supported. net.core.busy_poll net.core.busy_read
50-
* net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max
51-
* net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem
52-
* net.ipv4.tcp_tw_reuse kernel.shmmni kernel.shmmax kernel.shmall
50+
* net.core.netdev_max_backlog net.core.rmem_max net.core.rmem_default net.core.wmem_default
51+
* net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem
52+
* net.ipv4.tcp_tw_reuse net.netfilter.nf_conntrack_max net.netfilter.nf_conntrack_buckets
53+
* net.netfilter.nf_conntrack_tcp_timeout_close_wait
54+
* net.netfilter.nf_conntrack_tcp_timeout_time_wait
55+
* net.netfilter.nf_conntrack_tcp_timeout_established net.netfilter.nf_conntrack_acct
56+
* kernel.shmmni kernel.shmmax kernel.shmall vm.max_map_count
5357
* The value may be {@code null}.
5458
*/
5559
@com.google.api.client.util.Key
@@ -92,9 +96,13 @@ public LinuxNodeConfig setHugepages(HugepagesConfig hugepages) {
9296
/**
9397
* The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The
9498
* following parameters are supported. net.core.busy_poll net.core.busy_read
95-
* net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max
96-
* net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem
97-
* net.ipv4.tcp_tw_reuse kernel.shmmni kernel.shmmax kernel.shmall
99+
* net.core.netdev_max_backlog net.core.rmem_max net.core.rmem_default net.core.wmem_default
100+
* net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem
101+
* net.ipv4.tcp_tw_reuse net.netfilter.nf_conntrack_max net.netfilter.nf_conntrack_buckets
102+
* net.netfilter.nf_conntrack_tcp_timeout_close_wait
103+
* net.netfilter.nf_conntrack_tcp_timeout_time_wait
104+
* net.netfilter.nf_conntrack_tcp_timeout_established net.netfilter.nf_conntrack_acct
105+
* kernel.shmmni kernel.shmmax kernel.shmall vm.max_map_count
98106
* @return value or {@code null} for none
99107
*/
100108
public java.util.Map<String, java.lang.String> getSysctls() {
@@ -104,9 +112,13 @@ public java.util.Map<String, java.lang.String> getSysctls() {
104112
/**
105113
* The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The
106114
* following parameters are supported. net.core.busy_poll net.core.busy_read
107-
* net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max
108-
* net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem
109-
* net.ipv4.tcp_tw_reuse kernel.shmmni kernel.shmmax kernel.shmall
115+
* net.core.netdev_max_backlog net.core.rmem_max net.core.rmem_default net.core.wmem_default
116+
* net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem
117+
* net.ipv4.tcp_tw_reuse net.netfilter.nf_conntrack_max net.netfilter.nf_conntrack_buckets
118+
* net.netfilter.nf_conntrack_tcp_timeout_close_wait
119+
* net.netfilter.nf_conntrack_tcp_timeout_time_wait
120+
* net.netfilter.nf_conntrack_tcp_timeout_established net.netfilter.nf_conntrack_acct
121+
* kernel.shmmni kernel.shmmax kernel.shmall vm.max_map_count
110122
* @param sysctls sysctls or {@code null} for none
111123
*/
112124
public LinuxNodeConfig setSysctls(java.util.Map<String, java.lang.String> sysctls) {

clients/google-api-services-container/v1/2.0.0/com/google/api/services/container/model/NodeKubeletConfig.java

Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,40 @@
3030
@SuppressWarnings("javadoc")
3131
public final class NodeKubeletConfig extends com.google.api.client.json.GenericJson {
3232

33+
/**
34+
* Optional. Defines a comma-separated allowlist of unsafe sysctls or sysctl patterns (ending in
35+
* `*`). The unsafe namespaced sysctl groups are `kernel.shm*`, `kernel.msg*`, `kernel.sem`,
36+
* `fs.mqueue.*`, and `net.*`. Leaving this allowlist empty means they cannot be set on Pods. To
37+
* allow certain sysctls or sysctl patterns to be set on Pods, list them separated by commas. For
38+
* example: `kernel.msg*,net.ipv4.route.min_pmtu`. See
39+
* https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for more details.
40+
* The value may be {@code null}.
41+
*/
42+
@com.google.api.client.util.Key
43+
private java.util.List<java.lang.String> allowedUnsafeSysctls;
44+
45+
/**
46+
* Optional. Defines the maximum number of container log files that can be present for a
47+
* container. See https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation
48+
* The value must be an integer between 2 and 10, inclusive. The default value is 5 if
49+
* unspecified.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.lang.Integer containerLogMaxFiles;
54+
55+
/**
56+
* Optional. Defines the maximum size of the container log file before it is rotated. See
57+
* https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation Valid format
58+
* is positive number + unit, e.g. 100Ki, 10Mi. Valid units are Ki, Mi, Gi. The value must be
59+
* between 10Mi and 500Mi, inclusive. Note that the total container log size
60+
* (container_log_max_size * container_log_max_files) cannot exceed 1% of the total storage of the
61+
* node, to avoid disk pressure caused by log files. The default value is 10Mi if unspecified.
62+
* The value may be {@code null}.
63+
*/
64+
@com.google.api.client.util.Key
65+
private java.lang.String containerLogMaxSize;
66+
3367
/**
3468
* Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled
3569
* by default which makes kubelet use CFS quota
@@ -62,6 +96,49 @@ public final class NodeKubeletConfig extends com.google.api.client.json.GenericJ
6296
@com.google.api.client.util.Key
6397
private java.lang.String cpuManagerPolicy;
6498

99+
/**
100+
* Optional. Defines the percent of disk usage after which image garbage collection is always run.
101+
* The percent is calculated as this field value out of 100. The value must be between 10 and 85,
102+
* inclusive and greater than image_gc_low_threshold_percent. The default value is 85 if
103+
* unspecified.
104+
* The value may be {@code null}.
105+
*/
106+
@com.google.api.client.util.Key
107+
private java.lang.Integer imageGcHighThresholdPercent;
108+
109+
/**
110+
* Optional. Defines the percent of disk usage before which image garbage collection is never run.
111+
* Lowest disk usage to garbage collect to. The percent is calculated as this field value out of
112+
* 100. The value must be between 10 and 85, inclusive and smaller than
113+
* image_gc_high_threshold_percent. The default value is 80 if unspecified.
114+
* The value may be {@code null}.
115+
*/
116+
@com.google.api.client.util.Key
117+
private java.lang.Integer imageGcLowThresholdPercent;
118+
119+
/**
120+
* Optional. Defines the maximum age an image can be unused before it is garbage collected. The
121+
* string must be a sequence of decimal numbers, each with optional fraction and a unit suffix,
122+
* such as "300s", "1.5h", and "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
123+
* "h". The value must be a positive duration greater than image_minimum_gc_age or "0s". The
124+
* default value is "0s" if unspecified, which disables this field, meaning images won't be
125+
* garbage collected based on being unused for too long.
126+
* The value may be {@code null}.
127+
*/
128+
@com.google.api.client.util.Key
129+
private java.lang.String imageMaximumGcAge;
130+
131+
/**
132+
* Optional. Defines the minimum age for an unused image before it is garbage collected. The
133+
* string must be a sequence of decimal numbers, each with optional fraction and a unit suffix,
134+
* such as "300s", "1.5h", and "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
135+
* "h". The value must be a positive duration less than or equal to 2 minutes. The default value
136+
* is "2m0s" if unspecified.
137+
* The value may be {@code null}.
138+
*/
139+
@com.google.api.client.util.Key
140+
private java.lang.String imageMinimumGcAge;
141+
65142
/**
66143
* Enable or disable Kubelet read only port.
67144
* The value may be {@code null}.
@@ -78,6 +155,83 @@ public final class NodeKubeletConfig extends com.google.api.client.json.GenericJ
78155
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
79156
private java.lang.Long podPidsLimit;
80157

158+
/**
159+
* Optional. Defines a comma-separated allowlist of unsafe sysctls or sysctl patterns (ending in
160+
* `*`). The unsafe namespaced sysctl groups are `kernel.shm*`, `kernel.msg*`, `kernel.sem`,
161+
* `fs.mqueue.*`, and `net.*`. Leaving this allowlist empty means they cannot be set on Pods. To
162+
* allow certain sysctls or sysctl patterns to be set on Pods, list them separated by commas. For
163+
* example: `kernel.msg*,net.ipv4.route.min_pmtu`. See
164+
* https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for more details.
165+
* @return value or {@code null} for none
166+
*/
167+
public java.util.List<java.lang.String> getAllowedUnsafeSysctls() {
168+
return allowedUnsafeSysctls;
169+
}
170+
171+
/**
172+
* Optional. Defines a comma-separated allowlist of unsafe sysctls or sysctl patterns (ending in
173+
* `*`). The unsafe namespaced sysctl groups are `kernel.shm*`, `kernel.msg*`, `kernel.sem`,
174+
* `fs.mqueue.*`, and `net.*`. Leaving this allowlist empty means they cannot be set on Pods. To
175+
* allow certain sysctls or sysctl patterns to be set on Pods, list them separated by commas. For
176+
* example: `kernel.msg*,net.ipv4.route.min_pmtu`. See
177+
* https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for more details.
178+
* @param allowedUnsafeSysctls allowedUnsafeSysctls or {@code null} for none
179+
*/
180+
public NodeKubeletConfig setAllowedUnsafeSysctls(java.util.List<java.lang.String> allowedUnsafeSysctls) {
181+
this.allowedUnsafeSysctls = allowedUnsafeSysctls;
182+
return this;
183+
}
184+
185+
/**
186+
* Optional. Defines the maximum number of container log files that can be present for a
187+
* container. See https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation
188+
* The value must be an integer between 2 and 10, inclusive. The default value is 5 if
189+
* unspecified.
190+
* @return value or {@code null} for none
191+
*/
192+
public java.lang.Integer getContainerLogMaxFiles() {
193+
return containerLogMaxFiles;
194+
}
195+
196+
/**
197+
* Optional. Defines the maximum number of container log files that can be present for a
198+
* container. See https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation
199+
* The value must be an integer between 2 and 10, inclusive. The default value is 5 if
200+
* unspecified.
201+
* @param containerLogMaxFiles containerLogMaxFiles or {@code null} for none
202+
*/
203+
public NodeKubeletConfig setContainerLogMaxFiles(java.lang.Integer containerLogMaxFiles) {
204+
this.containerLogMaxFiles = containerLogMaxFiles;
205+
return this;
206+
}
207+
208+
/**
209+
* Optional. Defines the maximum size of the container log file before it is rotated. See
210+
* https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation Valid format
211+
* is positive number + unit, e.g. 100Ki, 10Mi. Valid units are Ki, Mi, Gi. The value must be
212+
* between 10Mi and 500Mi, inclusive. Note that the total container log size
213+
* (container_log_max_size * container_log_max_files) cannot exceed 1% of the total storage of the
214+
* node, to avoid disk pressure caused by log files. The default value is 10Mi if unspecified.
215+
* @return value or {@code null} for none
216+
*/
217+
public java.lang.String getContainerLogMaxSize() {
218+
return containerLogMaxSize;
219+
}
220+
221+
/**
222+
* Optional. Defines the maximum size of the container log file before it is rotated. See
223+
* https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation Valid format
224+
* is positive number + unit, e.g. 100Ki, 10Mi. Valid units are Ki, Mi, Gi. The value must be
225+
* between 10Mi and 500Mi, inclusive. Note that the total container log size
226+
* (container_log_max_size * container_log_max_files) cannot exceed 1% of the total storage of the
227+
* node, to avoid disk pressure caused by log files. The default value is 10Mi if unspecified.
228+
* @param containerLogMaxSize containerLogMaxSize or {@code null} for none
229+
*/
230+
public NodeKubeletConfig setContainerLogMaxSize(java.lang.String containerLogMaxSize) {
231+
this.containerLogMaxSize = containerLogMaxSize;
232+
return this;
233+
}
234+
81235
/**
82236
* Enable CPU CFS quota enforcement for containers that specify CPU limits. This option is enabled
83237
* by default which makes kubelet use CFS quota
@@ -151,6 +305,104 @@ public NodeKubeletConfig setCpuManagerPolicy(java.lang.String cpuManagerPolicy)
151305
return this;
152306
}
153307

308+
/**
309+
* Optional. Defines the percent of disk usage after which image garbage collection is always run.
310+
* The percent is calculated as this field value out of 100. The value must be between 10 and 85,
311+
* inclusive and greater than image_gc_low_threshold_percent. The default value is 85 if
312+
* unspecified.
313+
* @return value or {@code null} for none
314+
*/
315+
public java.lang.Integer getImageGcHighThresholdPercent() {
316+
return imageGcHighThresholdPercent;
317+
}
318+
319+
/**
320+
* Optional. Defines the percent of disk usage after which image garbage collection is always run.
321+
* The percent is calculated as this field value out of 100. The value must be between 10 and 85,
322+
* inclusive and greater than image_gc_low_threshold_percent. The default value is 85 if
323+
* unspecified.
324+
* @param imageGcHighThresholdPercent imageGcHighThresholdPercent or {@code null} for none
325+
*/
326+
public NodeKubeletConfig setImageGcHighThresholdPercent(java.lang.Integer imageGcHighThresholdPercent) {
327+
this.imageGcHighThresholdPercent = imageGcHighThresholdPercent;
328+
return this;
329+
}
330+
331+
/**
332+
* Optional. Defines the percent of disk usage before which image garbage collection is never run.
333+
* Lowest disk usage to garbage collect to. The percent is calculated as this field value out of
334+
* 100. The value must be between 10 and 85, inclusive and smaller than
335+
* image_gc_high_threshold_percent. The default value is 80 if unspecified.
336+
* @return value or {@code null} for none
337+
*/
338+
public java.lang.Integer getImageGcLowThresholdPercent() {
339+
return imageGcLowThresholdPercent;
340+
}
341+
342+
/**
343+
* Optional. Defines the percent of disk usage before which image garbage collection is never run.
344+
* Lowest disk usage to garbage collect to. The percent is calculated as this field value out of
345+
* 100. The value must be between 10 and 85, inclusive and smaller than
346+
* image_gc_high_threshold_percent. The default value is 80 if unspecified.
347+
* @param imageGcLowThresholdPercent imageGcLowThresholdPercent or {@code null} for none
348+
*/
349+
public NodeKubeletConfig setImageGcLowThresholdPercent(java.lang.Integer imageGcLowThresholdPercent) {
350+
this.imageGcLowThresholdPercent = imageGcLowThresholdPercent;
351+
return this;
352+
}
353+
354+
/**
355+
* Optional. Defines the maximum age an image can be unused before it is garbage collected. The
356+
* string must be a sequence of decimal numbers, each with optional fraction and a unit suffix,
357+
* such as "300s", "1.5h", and "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
358+
* "h". The value must be a positive duration greater than image_minimum_gc_age or "0s". The
359+
* default value is "0s" if unspecified, which disables this field, meaning images won't be
360+
* garbage collected based on being unused for too long.
361+
* @return value or {@code null} for none
362+
*/
363+
public java.lang.String getImageMaximumGcAge() {
364+
return imageMaximumGcAge;
365+
}
366+
367+
/**
368+
* Optional. Defines the maximum age an image can be unused before it is garbage collected. The
369+
* string must be a sequence of decimal numbers, each with optional fraction and a unit suffix,
370+
* such as "300s", "1.5h", and "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
371+
* "h". The value must be a positive duration greater than image_minimum_gc_age or "0s". The
372+
* default value is "0s" if unspecified, which disables this field, meaning images won't be
373+
* garbage collected based on being unused for too long.
374+
* @param imageMaximumGcAge imageMaximumGcAge or {@code null} for none
375+
*/
376+
public NodeKubeletConfig setImageMaximumGcAge(java.lang.String imageMaximumGcAge) {
377+
this.imageMaximumGcAge = imageMaximumGcAge;
378+
return this;
379+
}
380+
381+
/**
382+
* Optional. Defines the minimum age for an unused image before it is garbage collected. The
383+
* string must be a sequence of decimal numbers, each with optional fraction and a unit suffix,
384+
* such as "300s", "1.5h", and "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
385+
* "h". The value must be a positive duration less than or equal to 2 minutes. The default value
386+
* is "2m0s" if unspecified.
387+
* @return value or {@code null} for none
388+
*/
389+
public java.lang.String getImageMinimumGcAge() {
390+
return imageMinimumGcAge;
391+
}
392+
393+
/**
394+
* Optional. Defines the minimum age for an unused image before it is garbage collected. The
395+
* string must be a sequence of decimal numbers, each with optional fraction and a unit suffix,
396+
* such as "300s", "1.5h", and "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
397+
* "h". The value must be a positive duration less than or equal to 2 minutes. The default value
398+
* is "2m0s" if unspecified.
399+
* @param imageMinimumGcAge imageMinimumGcAge or {@code null} for none
400+
*/
401+
public NodeKubeletConfig setImageMinimumGcAge(java.lang.String imageMinimumGcAge) {
402+
this.imageMinimumGcAge = imageMinimumGcAge;
403+
return this;
404+
}
405+
154406
/**
155407
* Enable or disable Kubelet read only port.
156408
* @return value or {@code null} for none

clients/google-api-services-container/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-container</artifactId>
11-
<version>v1-rev20241228-2.0.0</version>
12-
<name>Kubernetes Engine API v1-rev20241228-2.0.0</name>
11+
<version>v1-rev20250114-2.0.0</version>
12+
<name>Kubernetes Engine API v1-rev20250114-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-container/v1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-container</artifactId>
25-
<version>v1-rev20241228-2.0.0</version>
25+
<version>v1-rev20250114-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-container:v1-rev20241228-2.0.0'
38+
implementation 'com.google.apis:google-api-services-container:v1-rev20250114-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)