Skip to content

Commit

Permalink
chore(deps): bump sigs.k8s.io/gateway-api from 1.1.0 to 1.2.0 in /kub…
Browse files Browse the repository at this point in the history
…ernetes-model-generator/openapi/generator (6587)

chore(deps): bump sigs.k8s.io/gateway-api

Bumps [sigs.k8s.io/gateway-api](https://github.com/kubernetes-sigs/gateway-api) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/kubernetes-sigs/gateway-api/releases)
- [Changelog](https://github.com/kubernetes-sigs/gateway-api/blob/main/RELEASE.md)
- [Commits](kubernetes-sigs/gateway-api@v1.1.0...v1.2.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/gateway-api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
---
feat(openapi): regenerate model for sigs.k8s.io/gateway-api 1.2.0

Signed-off-by: Marc Nuri <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marc Nuri <[email protected]>
  • Loading branch information
dependabot[bot] and manusa authored Nov 14, 2024
1 parent ea5b2a1 commit 847a839
Show file tree
Hide file tree
Showing 11 changed files with 592 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@

package io.fabric8.kubernetes.api.model.gatewayapi.v1;

import java.util.LinkedHashMap;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.fabric8.kubernetes.api.builder.Editable;
import io.fabric8.kubernetes.api.model.Container;
import io.fabric8.kubernetes.api.model.ContainerPort;
import io.fabric8.kubernetes.api.model.EnvVar;
import io.fabric8.kubernetes.api.model.IntOrString;
import io.fabric8.kubernetes.api.model.KubernetesResource;
import io.fabric8.kubernetes.api.model.LabelSelector;
import io.fabric8.kubernetes.api.model.LocalObjectReference;
import io.fabric8.kubernetes.api.model.ObjectMeta;
import io.fabric8.kubernetes.api.model.ObjectReference;
import io.fabric8.kubernetes.api.model.PersistentVolumeClaim;
import io.fabric8.kubernetes.api.model.PodTemplateSpec;
import io.fabric8.kubernetes.api.model.ResourceRequirements;
import io.fabric8.kubernetes.api.model.Volume;
import io.fabric8.kubernetes.api.model.VolumeMount;
import io.sundr.builder.annotations.Buildable;
import io.sundr.builder.annotations.BuildableReference;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"denominator",
"numerator"
})
@ToString
@EqualsAndHashCode
@Accessors(prefix = {
"_",
""
})
@Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = {
@BuildableReference(ObjectMeta.class),
@BuildableReference(LabelSelector.class),
@BuildableReference(Container.class),
@BuildableReference(PodTemplateSpec.class),
@BuildableReference(ResourceRequirements.class),
@BuildableReference(IntOrString.class),
@BuildableReference(ObjectReference.class),
@BuildableReference(LocalObjectReference.class),
@BuildableReference(PersistentVolumeClaim.class),
@BuildableReference(EnvVar.class),
@BuildableReference(ContainerPort.class),
@BuildableReference(Volume.class),
@BuildableReference(VolumeMount.class)
})
@Generated("jsonschema2pojo")
public class Fraction implements Editable<FractionBuilder> , KubernetesResource
{

@JsonProperty("denominator")
private Integer denominator;
@JsonProperty("numerator")
private Integer numerator;
@JsonIgnore
private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>();

/**
* No args constructor for use in serialization
*
*/
public Fraction() {
}

public Fraction(Integer denominator, Integer numerator) {
super();
this.denominator = denominator;
this.numerator = numerator;
}

@JsonProperty("denominator")
public Integer getDenominator() {
return denominator;
}

@JsonProperty("denominator")
public void setDenominator(Integer denominator) {
this.denominator = denominator;
}

@JsonProperty("numerator")
public Integer getNumerator() {
return numerator;
}

@JsonProperty("numerator")
public void setNumerator(Integer numerator) {
this.numerator = numerator;
}

@JsonIgnore
public FractionBuilder edit() {
return new FractionBuilder(this);
}

@JsonIgnore
public FractionBuilder toBuilder() {
return edit();
}

@JsonAnyGetter
public Map<String, Object> getAdditionalProperties() {
return this.additionalProperties;
}

@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}

public void setAdditionalProperties(Map<String, Object> additionalProperties) {
this.additionalProperties = additionalProperties;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@

package io.fabric8.kubernetes.api.model.gatewayapi.v1;

import java.util.LinkedHashMap;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.fabric8.kubernetes.api.builder.Editable;
import io.fabric8.kubernetes.api.model.Container;
import io.fabric8.kubernetes.api.model.ContainerPort;
import io.fabric8.kubernetes.api.model.EnvVar;
import io.fabric8.kubernetes.api.model.IntOrString;
import io.fabric8.kubernetes.api.model.KubernetesResource;
import io.fabric8.kubernetes.api.model.LabelSelector;
import io.fabric8.kubernetes.api.model.LocalObjectReference;
import io.fabric8.kubernetes.api.model.ObjectMeta;
import io.fabric8.kubernetes.api.model.ObjectReference;
import io.fabric8.kubernetes.api.model.PersistentVolumeClaim;
import io.fabric8.kubernetes.api.model.PodTemplateSpec;
import io.fabric8.kubernetes.api.model.ResourceRequirements;
import io.fabric8.kubernetes.api.model.Volume;
import io.fabric8.kubernetes.api.model.VolumeMount;
import io.sundr.builder.annotations.Buildable;
import io.sundr.builder.annotations.BuildableReference;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"clientCertificateRef"
})
@ToString
@EqualsAndHashCode
@Accessors(prefix = {
"_",
""
})
@Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = {
@BuildableReference(ObjectMeta.class),
@BuildableReference(LabelSelector.class),
@BuildableReference(Container.class),
@BuildableReference(PodTemplateSpec.class),
@BuildableReference(ResourceRequirements.class),
@BuildableReference(IntOrString.class),
@BuildableReference(ObjectReference.class),
@BuildableReference(LocalObjectReference.class),
@BuildableReference(PersistentVolumeClaim.class),
@BuildableReference(EnvVar.class),
@BuildableReference(ContainerPort.class),
@BuildableReference(Volume.class),
@BuildableReference(VolumeMount.class)
})
@Generated("jsonschema2pojo")
public class GatewayBackendTLS implements Editable<GatewayBackendTLSBuilder> , KubernetesResource
{

@JsonProperty("clientCertificateRef")
private SecretObjectReference clientCertificateRef;
@JsonIgnore
private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>();

/**
* No args constructor for use in serialization
*
*/
public GatewayBackendTLS() {
}

public GatewayBackendTLS(SecretObjectReference clientCertificateRef) {
super();
this.clientCertificateRef = clientCertificateRef;
}

@JsonProperty("clientCertificateRef")
public SecretObjectReference getClientCertificateRef() {
return clientCertificateRef;
}

@JsonProperty("clientCertificateRef")
public void setClientCertificateRef(SecretObjectReference clientCertificateRef) {
this.clientCertificateRef = clientCertificateRef;
}

@JsonIgnore
public GatewayBackendTLSBuilder edit() {
return new GatewayBackendTLSBuilder(this);
}

@JsonIgnore
public GatewayBackendTLSBuilder toBuilder() {
return edit();
}

@JsonAnyGetter
public Map<String, Object> getAdditionalProperties() {
return this.additionalProperties;
}

@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}

public void setAdditionalProperties(Map<String, Object> additionalProperties) {
this.additionalProperties = additionalProperties;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class GatewayClassStatus implements Editable<GatewayClassStatusBuilder> ,
private List<Condition> conditions = new ArrayList<>();
@JsonProperty("supportedFeatures")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> supportedFeatures = new ArrayList<>();
private List<SupportedFeature> supportedFeatures = new ArrayList<>();
@JsonIgnore
private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>();

Expand All @@ -82,7 +82,7 @@ public class GatewayClassStatus implements Editable<GatewayClassStatusBuilder> ,
public GatewayClassStatus() {
}

public GatewayClassStatus(List<Condition> conditions, List<String> supportedFeatures) {
public GatewayClassStatus(List<Condition> conditions, List<SupportedFeature> supportedFeatures) {
super();
this.conditions = conditions;
this.supportedFeatures = supportedFeatures;
Expand All @@ -101,12 +101,12 @@ public void setConditions(List<Condition> conditions) {

@JsonProperty("supportedFeatures")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public List<String> getSupportedFeatures() {
public List<SupportedFeature> getSupportedFeatures() {
return supportedFeatures;
}

@JsonProperty("supportedFeatures")
public void setSupportedFeatures(List<String> supportedFeatures) {
public void setSupportedFeatures(List<SupportedFeature> supportedFeatures) {
this.supportedFeatures = supportedFeatures;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"addresses",
"backendTLS",
"gatewayClassName",
"infrastructure",
"listeners"
Expand Down Expand Up @@ -70,6 +71,8 @@ public class GatewaySpec implements Editable<GatewaySpecBuilder> , KubernetesRes
@JsonProperty("addresses")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<GatewayAddress> addresses = new ArrayList<>();
@JsonProperty("backendTLS")
private GatewayBackendTLS backendTLS;
@JsonProperty("gatewayClassName")
private String gatewayClassName;
@JsonProperty("infrastructure")
Expand All @@ -87,9 +90,10 @@ public class GatewaySpec implements Editable<GatewaySpecBuilder> , KubernetesRes
public GatewaySpec() {
}

public GatewaySpec(List<GatewayAddress> addresses, String gatewayClassName, GatewayInfrastructure infrastructure, List<Listener> listeners) {
public GatewaySpec(List<GatewayAddress> addresses, GatewayBackendTLS backendTLS, String gatewayClassName, GatewayInfrastructure infrastructure, List<Listener> listeners) {
super();
this.addresses = addresses;
this.backendTLS = backendTLS;
this.gatewayClassName = gatewayClassName;
this.infrastructure = infrastructure;
this.listeners = listeners;
Expand All @@ -106,6 +110,16 @@ public void setAddresses(List<GatewayAddress> addresses) {
this.addresses = addresses;
}

@JsonProperty("backendTLS")
public GatewayBackendTLS getBackendTLS() {
return backendTLS;
}

@JsonProperty("backendTLS")
public void setBackendTLS(GatewayBackendTLS backendTLS) {
this.backendTLS = backendTLS;
}

@JsonProperty("gatewayClassName")
public String getGatewayClassName() {
return gatewayClassName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"backendRef"
"backendRef",
"fraction",
"percent"
})
@ToString
@EqualsAndHashCode
Expand Down Expand Up @@ -64,6 +66,10 @@ public class HTTPRequestMirrorFilter implements Editable<HTTPRequestMirrorFilter

@JsonProperty("backendRef")
private BackendObjectReference backendRef;
@JsonProperty("fraction")
private Fraction fraction;
@JsonProperty("percent")
private Integer percent;
@JsonIgnore
private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>();

Expand All @@ -74,9 +80,11 @@ public class HTTPRequestMirrorFilter implements Editable<HTTPRequestMirrorFilter
public HTTPRequestMirrorFilter() {
}

public HTTPRequestMirrorFilter(BackendObjectReference backendRef) {
public HTTPRequestMirrorFilter(BackendObjectReference backendRef, Fraction fraction, Integer percent) {
super();
this.backendRef = backendRef;
this.fraction = fraction;
this.percent = percent;
}

@JsonProperty("backendRef")
Expand All @@ -89,6 +97,26 @@ public void setBackendRef(BackendObjectReference backendRef) {
this.backendRef = backendRef;
}

@JsonProperty("fraction")
public Fraction getFraction() {
return fraction;
}

@JsonProperty("fraction")
public void setFraction(Fraction fraction) {
this.fraction = fraction;
}

@JsonProperty("percent")
public Integer getPercent() {
return percent;
}

@JsonProperty("percent")
public void setPercent(Integer percent) {
this.percent = percent;
}

@JsonIgnore
public HTTPRequestMirrorFilterBuilder edit() {
return new HTTPRequestMirrorFilterBuilder(this);
Expand Down
Loading

0 comments on commit 847a839

Please sign in to comment.