Skip to content

Commit 1e46807

Browse files
feat(openapi): update go dependencies for k8s api (7357)
feat(openapi) - udpate go openapi generator --- feat(openapi) - udpate go openapi generator
1 parent a78b350 commit 1e46807

File tree

6 files changed

+2532
-1066
lines changed

6 files changed

+2532
-1066
lines changed

extensions/knative/model/src/generated/java/io/fabric8/knative/serving/v1/RevisionSpec.java

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"hostPID",
6868
"hostUsers",
6969
"hostname",
70+
"hostnameOverride",
7071
"idleTimeoutSeconds",
7172
"imagePullSecrets",
7273
"initContainers",
@@ -155,6 +156,8 @@ public class RevisionSpec implements Editable<RevisionSpecBuilder>, KubernetesRe
155156
private Boolean hostUsers;
156157
@JsonProperty("hostname")
157158
private String hostname;
159+
@JsonProperty("hostnameOverride")
160+
private String hostnameOverride;
158161
@JsonProperty("idleTimeoutSeconds")
159162
private Long idleTimeoutSeconds;
160163
@JsonProperty("imagePullSecrets")
@@ -232,7 +235,7 @@ public class RevisionSpec implements Editable<RevisionSpecBuilder>, KubernetesRe
232235
public RevisionSpec() {
233236
}
234237

235-
public RevisionSpec(Long activeDeadlineSeconds, Affinity affinity, Boolean automountServiceAccountToken, Long containerConcurrency, List<Container> containers, PodDNSConfig dnsConfig, String dnsPolicy, Boolean enableServiceLinks, List<EphemeralContainer> ephemeralContainers, List<HostAlias> hostAliases, Boolean hostIPC, Boolean hostNetwork, Boolean hostPID, Boolean hostUsers, String hostname, Long idleTimeoutSeconds, List<LocalObjectReference> imagePullSecrets, List<Container> initContainers, String nodeName, Map<String, String> nodeSelector, PodOS os, Map<String, Quantity> overhead, String preemptionPolicy, Integer priority, String priorityClassName, List<PodReadinessGate> readinessGates, List<PodResourceClaim> resourceClaims, ResourceRequirements resources, Long responseStartTimeoutSeconds, String restartPolicy, String runtimeClassName, String schedulerName, List<PodSchedulingGate> schedulingGates, PodSecurityContext securityContext, String serviceAccount, String serviceAccountName, Boolean setHostnameAsFQDN, Boolean shareProcessNamespace, String subdomain, Long terminationGracePeriodSeconds, Long timeoutSeconds, List<Toleration> tolerations, List<TopologySpreadConstraint> topologySpreadConstraints, List<Volume> volumes) {
238+
public RevisionSpec(Long activeDeadlineSeconds, Affinity affinity, Boolean automountServiceAccountToken, Long containerConcurrency, List<Container> containers, PodDNSConfig dnsConfig, String dnsPolicy, Boolean enableServiceLinks, List<EphemeralContainer> ephemeralContainers, List<HostAlias> hostAliases, Boolean hostIPC, Boolean hostNetwork, Boolean hostPID, Boolean hostUsers, String hostname, String hostnameOverride, Long idleTimeoutSeconds, List<LocalObjectReference> imagePullSecrets, List<Container> initContainers, String nodeName, Map<String, String> nodeSelector, PodOS os, Map<String, Quantity> overhead, String preemptionPolicy, Integer priority, String priorityClassName, List<PodReadinessGate> readinessGates, List<PodResourceClaim> resourceClaims, ResourceRequirements resources, Long responseStartTimeoutSeconds, String restartPolicy, String runtimeClassName, String schedulerName, List<PodSchedulingGate> schedulingGates, PodSecurityContext securityContext, String serviceAccount, String serviceAccountName, Boolean setHostnameAsFQDN, Boolean shareProcessNamespace, String subdomain, Long terminationGracePeriodSeconds, Long timeoutSeconds, List<Toleration> tolerations, List<TopologySpreadConstraint> topologySpreadConstraints, List<Volume> volumes) {
236239
super();
237240
this.activeDeadlineSeconds = activeDeadlineSeconds;
238241
this.affinity = affinity;
@@ -249,6 +252,7 @@ public RevisionSpec(Long activeDeadlineSeconds, Affinity affinity, Boolean autom
249252
this.hostPID = hostPID;
250253
this.hostUsers = hostUsers;
251254
this.hostname = hostname;
255+
this.hostnameOverride = hostnameOverride;
252256
this.idleTimeoutSeconds = idleTimeoutSeconds;
253257
this.imagePullSecrets = imagePullSecrets;
254258
this.initContainers = initContainers;
@@ -460,15 +464,15 @@ public void setHostIPC(Boolean hostIPC) {
460464
}
461465

462466
/**
463-
* Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.
467+
* Host networking requested for this pod. Use the host's network namespace. When using HostNetwork you should specify ports so the scheduler is aware. When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. Default to false.
464468
*/
465469
@JsonProperty("hostNetwork")
466470
public Boolean getHostNetwork() {
467471
return hostNetwork;
468472
}
469473

470474
/**
471-
* Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.
475+
* Host networking requested for this pod. Use the host's network namespace. When using HostNetwork you should specify ports so the scheduler is aware. When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. Default to false.
472476
*/
473477
@JsonProperty("hostNetwork")
474478
public void setHostNetwork(Boolean hostNetwork) {
@@ -523,6 +527,22 @@ public void setHostname(String hostname) {
523527
this.hostname = hostname;
524528
}
525529

530+
/**
531+
* HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false.<br><p> <br><p> This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. Requires the HostnameOverride feature gate to be enabled.
532+
*/
533+
@JsonProperty("hostnameOverride")
534+
public String getHostnameOverride() {
535+
return hostnameOverride;
536+
}
537+
538+
/**
539+
* HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false.<br><p> <br><p> This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. Requires the HostnameOverride feature gate to be enabled.
540+
*/
541+
@JsonProperty("hostnameOverride")
542+
public void setHostnameOverride(String hostnameOverride) {
543+
this.hostnameOverride = hostnameOverride;
544+
}
545+
526546
/**
527547
* IdleTimeoutSeconds is the maximum duration in seconds a request will be allowed to stay open while not receiving any bytes from the user's application. If unspecified, a system default will be provided.
528548
*/

kubernetes-model-generator/openapi/generator/go.mod

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ require (
3333
github.com/tektoncd/pipeline v1.3.1
3434
github.com/tektoncd/triggers v0.33.0
3535
istio.io/client-go v1.27.0
36-
k8s.io/api v0.33.4
36+
k8s.io/api v0.34.1
3737
k8s.io/apiextensions-apiserver v0.33.4
38-
k8s.io/apimachinery v0.33.4
38+
k8s.io/apimachinery v0.34.1
3939
k8s.io/autoscaler/vertical-pod-autoscaler v1.4.1
4040
k8s.io/client-go v12.0.0+incompatible
41-
k8s.io/gengo/v2 v2.0.0-20250207200755-1244d31929d7
42-
k8s.io/kube-openapi v0.0.0-20250701173324-9bd5c66d9911
41+
k8s.io/gengo/v2 v2.0.0-20250604051438-85fd79dbfd9f
42+
k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b
4343
k8s.io/metrics v0.33.4
4444
knative.dev/caching v0.0.0-20250821143751-b982aa0cd1c1
4545
knative.dev/eventing v0.46.2
@@ -74,12 +74,12 @@ replace (
7474
github.com/openshift/hive => github.com/openshift/hive v1.1.17-0.20250725035156-a29a23859060 // Latest Master
7575
github.com/openshift/installer => github.com/openshift/installer v1.4.19-ec5 // Most up-to-date tag https://issues.redhat.com/browse/OCPBUGS-42448
7676

77-
k8s.io/api => k8s.io/api v0.33.0
78-
k8s.io/client-go => k8s.io/client-go v0.33.0
79-
k8s.io/cloud-provider => k8s.io/cloud-provider v0.33.0
80-
k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.33.0
81-
k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.33.0
82-
k8s.io/mount-utils => k8s.io/mount-utils v0.33.0
77+
k8s.io/api => k8s.io/api v0.34.1
78+
k8s.io/client-go => k8s.io/client-go v0.34.1
79+
k8s.io/cloud-provider => k8s.io/cloud-provider v0.34.1
80+
k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.34.1
81+
k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.34.1
82+
k8s.io/mount-utils => k8s.io/mount-utils v0.34.1
8383

8484
// Some dependencies are not compatible with latest controller-runtime webhooks TODO: should be removed as soon as possible
8585
sigs.k8s.io/controller-runtime => sigs.k8s.io/controller-runtime v0.19.7
@@ -125,7 +125,7 @@ require (
125125
github.com/emicklei/go-restful/v3 v3.12.2 // indirect
126126
github.com/evanphx/json-patch/v5 v5.9.11 // indirect
127127
github.com/fsnotify/fsnotify v1.9.0 // indirect
128-
github.com/fxamacker/cbor/v2 v2.8.0 // indirect
128+
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
129129
github.com/go-errors/errors v1.5.1 // indirect
130130
github.com/go-kit/log v0.2.1 // indirect
131131
github.com/go-logfmt/logfmt v0.6.0 // indirect
@@ -167,7 +167,7 @@ require (
167167
github.com/metal3-io/baremetal-operator/pkg/hardwareutils v0.5.1 // indirect
168168
github.com/mitchellh/mapstructure v1.5.0 // indirect
169169
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
170-
github.com/modern-go/reflect2 v1.0.2 // indirect
170+
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
171171
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
172172
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
173173
github.com/nutanix-cloud-native/prism-go-client v0.5.0 // indirect
@@ -180,6 +180,7 @@ require (
180180
github.com/operator-framework/operator-registry v1.56.0 // indirect
181181
github.com/perimeterx/marshmallow v1.1.5 // indirect
182182
github.com/pkg/errors v0.9.1 // indirect
183+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
183184
github.com/prometheus/client_golang v1.23.0 // indirect
184185
github.com/prometheus/client_model v0.6.2 // indirect
185186
github.com/prometheus/common v0.65.0 // indirect
@@ -237,6 +238,6 @@ require (
237238
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
238239
sigs.k8s.io/kustomize/kyaml v0.20.1 // indirect
239240
sigs.k8s.io/randfill v1.0.0 // indirect
240-
sigs.k8s.io/structured-merge-diff/v4 v4.7.0 // indirect
241+
sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
241242
sigs.k8s.io/yaml v1.6.0 // indirect
242243
)

0 commit comments

Comments
 (0)