Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public V1DeleteOptions build() {
buildable.setApiVersion(fluent.getApiVersion());
buildable.setDryRun(fluent.getDryRun());
buildable.setGracePeriodSeconds(fluent.getGracePeriodSeconds());
buildable.setIgnoreStoreReadErrorWithClusterBreakingPotential(fluent.getIgnoreStoreReadErrorWithClusterBreakingPotential());
buildable.setKind(fluent.getKind());
buildable.setOrphanDependents(fluent.getOrphanDependents());
buildable.setPreconditions(fluent.buildPreconditions());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public V1DeleteOptionsFluent(V1DeleteOptions instance) {
private String apiVersion;
private List<String> dryRun;
private Long gracePeriodSeconds;
private Boolean ignoreStoreReadErrorWithClusterBreakingPotential;
private String kind;
private Boolean orphanDependents;
private V1PreconditionsBuilder preconditions;
Expand All @@ -37,6 +38,7 @@ protected void copyInstance(V1DeleteOptions instance) {
this.withApiVersion(instance.getApiVersion());
this.withDryRun(instance.getDryRun());
this.withGracePeriodSeconds(instance.getGracePeriodSeconds());
this.withIgnoreStoreReadErrorWithClusterBreakingPotential(instance.getIgnoreStoreReadErrorWithClusterBreakingPotential());
this.withKind(instance.getKind());
this.withOrphanDependents(instance.getOrphanDependents());
this.withPreconditions(instance.getPreconditions());
Expand Down Expand Up @@ -164,6 +166,19 @@ public boolean hasGracePeriodSeconds() {
return this.gracePeriodSeconds != null;
}

public Boolean getIgnoreStoreReadErrorWithClusterBreakingPotential() {
return this.ignoreStoreReadErrorWithClusterBreakingPotential;
}

public A withIgnoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) {
this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential;
return (A) this;
}

public boolean hasIgnoreStoreReadErrorWithClusterBreakingPotential() {
return this.ignoreStoreReadErrorWithClusterBreakingPotential != null;
}

public String getKind() {
return this.kind;
}
Expand Down Expand Up @@ -251,6 +266,7 @@ public boolean equals(Object o) {
if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false;
if (!java.util.Objects.equals(dryRun, that.dryRun)) return false;
if (!java.util.Objects.equals(gracePeriodSeconds, that.gracePeriodSeconds)) return false;
if (!java.util.Objects.equals(ignoreStoreReadErrorWithClusterBreakingPotential, that.ignoreStoreReadErrorWithClusterBreakingPotential)) return false;
if (!java.util.Objects.equals(kind, that.kind)) return false;
if (!java.util.Objects.equals(orphanDependents, that.orphanDependents)) return false;
if (!java.util.Objects.equals(preconditions, that.preconditions)) return false;
Expand All @@ -259,7 +275,7 @@ public boolean equals(Object o) {
}

public int hashCode() {
return java.util.Objects.hash(apiVersion, dryRun, gracePeriodSeconds, kind, orphanDependents, preconditions, propagationPolicy, super.hashCode());
return java.util.Objects.hash(apiVersion, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, kind, orphanDependents, preconditions, propagationPolicy, super.hashCode());
}

public String toString() {
Expand All @@ -268,6 +284,7 @@ public String toString() {
if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); }
if (dryRun != null && !dryRun.isEmpty()) { sb.append("dryRun:"); sb.append(dryRun + ","); }
if (gracePeriodSeconds != null) { sb.append("gracePeriodSeconds:"); sb.append(gracePeriodSeconds + ","); }
if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { sb.append("ignoreStoreReadErrorWithClusterBreakingPotential:"); sb.append(ignoreStoreReadErrorWithClusterBreakingPotential + ","); }
if (kind != null) { sb.append("kind:"); sb.append(kind + ","); }
if (orphanDependents != null) { sb.append("orphanDependents:"); sb.append(orphanDependents + ","); }
if (preconditions != null) { sb.append("preconditions:"); sb.append(preconditions + ","); }
Expand All @@ -276,6 +293,10 @@ public String toString() {
return sb.toString();
}

public A withIgnoreStoreReadErrorWithClusterBreakingPotential() {
return withIgnoreStoreReadErrorWithClusterBreakingPotential(true);
}

public A withOrphanDependents() {
return withOrphanDependents(true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public V1PodSecurityContext build() {
buildable.setRunAsGroup(fluent.getRunAsGroup());
buildable.setRunAsNonRoot(fluent.getRunAsNonRoot());
buildable.setRunAsUser(fluent.getRunAsUser());
buildable.setSeLinuxChangePolicy(fluent.getSeLinuxChangePolicy());
buildable.setSeLinuxOptions(fluent.buildSeLinuxOptions());
buildable.setSeccompProfile(fluent.buildSeccompProfile());
buildable.setSupplementalGroups(fluent.getSupplementalGroups());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public V1PodSecurityContextFluent(V1PodSecurityContext instance) {
private Long runAsGroup;
private Boolean runAsNonRoot;
private Long runAsUser;
private String seLinuxChangePolicy;
private V1SELinuxOptionsBuilder seLinuxOptions;
private V1SeccompProfileBuilder seccompProfile;
private List<Long> supplementalGroups;
Expand All @@ -47,6 +48,7 @@ protected void copyInstance(V1PodSecurityContext instance) {
this.withRunAsGroup(instance.getRunAsGroup());
this.withRunAsNonRoot(instance.getRunAsNonRoot());
this.withRunAsUser(instance.getRunAsUser());
this.withSeLinuxChangePolicy(instance.getSeLinuxChangePolicy());
this.withSeLinuxOptions(instance.getSeLinuxOptions());
this.withSeccompProfile(instance.getSeccompProfile());
this.withSupplementalGroups(instance.getSupplementalGroups());
Expand Down Expand Up @@ -161,6 +163,19 @@ public boolean hasRunAsUser() {
return this.runAsUser != null;
}

public String getSeLinuxChangePolicy() {
return this.seLinuxChangePolicy;
}

public A withSeLinuxChangePolicy(String seLinuxChangePolicy) {
this.seLinuxChangePolicy = seLinuxChangePolicy;
return (A) this;
}

public boolean hasSeLinuxChangePolicy() {
return this.seLinuxChangePolicy != null;
}

public V1SELinuxOptions buildSeLinuxOptions() {
return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null;
}
Expand Down Expand Up @@ -550,6 +565,7 @@ public boolean equals(Object o) {
if (!java.util.Objects.equals(runAsGroup, that.runAsGroup)) return false;
if (!java.util.Objects.equals(runAsNonRoot, that.runAsNonRoot)) return false;
if (!java.util.Objects.equals(runAsUser, that.runAsUser)) return false;
if (!java.util.Objects.equals(seLinuxChangePolicy, that.seLinuxChangePolicy)) return false;
if (!java.util.Objects.equals(seLinuxOptions, that.seLinuxOptions)) return false;
if (!java.util.Objects.equals(seccompProfile, that.seccompProfile)) return false;
if (!java.util.Objects.equals(supplementalGroups, that.supplementalGroups)) return false;
Expand All @@ -560,7 +576,7 @@ public boolean equals(Object o) {
}

public int hashCode() {
return java.util.Objects.hash(appArmorProfile, fsGroup, fsGroupChangePolicy, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, supplementalGroups, supplementalGroupsPolicy, sysctls, windowsOptions, super.hashCode());
return java.util.Objects.hash(appArmorProfile, fsGroup, fsGroupChangePolicy, runAsGroup, runAsNonRoot, runAsUser, seLinuxChangePolicy, seLinuxOptions, seccompProfile, supplementalGroups, supplementalGroupsPolicy, sysctls, windowsOptions, super.hashCode());
}

public String toString() {
Expand All @@ -572,6 +588,7 @@ public String toString() {
if (runAsGroup != null) { sb.append("runAsGroup:"); sb.append(runAsGroup + ","); }
if (runAsNonRoot != null) { sb.append("runAsNonRoot:"); sb.append(runAsNonRoot + ","); }
if (runAsUser != null) { sb.append("runAsUser:"); sb.append(runAsUser + ","); }
if (seLinuxChangePolicy != null) { sb.append("seLinuxChangePolicy:"); sb.append(seLinuxChangePolicy + ","); }
if (seLinuxOptions != null) { sb.append("seLinuxOptions:"); sb.append(seLinuxOptions + ","); }
if (seccompProfile != null) { sb.append("seccompProfile:"); sb.append(seccompProfile + ","); }
if (supplementalGroups != null && !supplementalGroups.isEmpty()) { sb.append("supplementalGroups:"); sb.append(supplementalGroups + ","); }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public V1PodSpec build() {
buildable.setPriorityClassName(fluent.getPriorityClassName());
buildable.setReadinessGates(fluent.buildReadinessGates());
buildable.setResourceClaims(fluent.buildResourceClaims());
buildable.setResources(fluent.buildResources());
buildable.setRestartPolicy(fluent.getRestartPolicy());
buildable.setRuntimeClassName(fluent.getRuntimeClassName());
buildable.setSchedulerName(fluent.getSchedulerName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public V1PodSpecFluent(V1PodSpec instance) {
private String priorityClassName;
private ArrayList<V1PodReadinessGateBuilder> readinessGates;
private ArrayList<V1PodResourceClaimBuilder> resourceClaims;
private V1ResourceRequirementsBuilder resources;
private String restartPolicy;
private String runtimeClassName;
private String schedulerName;
Expand Down Expand Up @@ -97,6 +98,7 @@ protected void copyInstance(V1PodSpec instance) {
this.withPriorityClassName(instance.getPriorityClassName());
this.withReadinessGates(instance.getReadinessGates());
this.withResourceClaims(instance.getResourceClaims());
this.withResources(instance.getResources());
this.withRestartPolicy(instance.getRestartPolicy());
this.withRuntimeClassName(instance.getRuntimeClassName());
this.withSchedulerName(instance.getSchedulerName());
Expand Down Expand Up @@ -1534,6 +1536,46 @@ public ResourceClaimsNested<A> editMatchingResourceClaim(Predicate<V1PodResource
return setNewResourceClaimLike(index, buildResourceClaim(index));
}

public V1ResourceRequirements buildResources() {
return this.resources != null ? this.resources.build() : null;
}

public A withResources(V1ResourceRequirements resources) {
this._visitables.remove("resources");
if (resources != null) {
this.resources = new V1ResourceRequirementsBuilder(resources);
this._visitables.get("resources").add(this.resources);
} else {
this.resources = null;
this._visitables.get("resources").remove(this.resources);
}
return (A) this;
}

public boolean hasResources() {
return this.resources != null;
}

public ResourcesNested<A> withNewResources() {
return new ResourcesNested(null);
}

public ResourcesNested<A> withNewResourcesLike(V1ResourceRequirements item) {
return new ResourcesNested(item);
}

public ResourcesNested<A> editResources() {
return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(null));
}

public ResourcesNested<A> editOrNewResources() {
return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(new V1ResourceRequirementsBuilder().build()));
}

public ResourcesNested<A> editOrNewResourcesLike(V1ResourceRequirements item) {
return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(item));
}

public String getRestartPolicy() {
return this.restartPolicy;
}
Expand Down Expand Up @@ -2325,6 +2367,7 @@ public boolean equals(Object o) {
if (!java.util.Objects.equals(priorityClassName, that.priorityClassName)) return false;
if (!java.util.Objects.equals(readinessGates, that.readinessGates)) return false;
if (!java.util.Objects.equals(resourceClaims, that.resourceClaims)) return false;
if (!java.util.Objects.equals(resources, that.resources)) return false;
if (!java.util.Objects.equals(restartPolicy, that.restartPolicy)) return false;
if (!java.util.Objects.equals(runtimeClassName, that.runtimeClassName)) return false;
if (!java.util.Objects.equals(schedulerName, that.schedulerName)) return false;
Expand All @@ -2343,7 +2386,7 @@ public boolean equals(Object o) {
}

public int hashCode() {
return java.util.Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, restartPolicy, runtimeClassName, schedulerName, schedulingGates, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes, super.hashCode());
return java.util.Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, resources, restartPolicy, runtimeClassName, schedulerName, schedulingGates, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes, super.hashCode());
}

public String toString() {
Expand Down Expand Up @@ -2374,6 +2417,7 @@ public String toString() {
if (priorityClassName != null) { sb.append("priorityClassName:"); sb.append(priorityClassName + ","); }
if (readinessGates != null && !readinessGates.isEmpty()) { sb.append("readinessGates:"); sb.append(readinessGates + ","); }
if (resourceClaims != null && !resourceClaims.isEmpty()) { sb.append("resourceClaims:"); sb.append(resourceClaims + ","); }
if (resources != null) { sb.append("resources:"); sb.append(resources + ","); }
if (restartPolicy != null) { sb.append("restartPolicy:"); sb.append(restartPolicy + ","); }
if (runtimeClassName != null) { sb.append("runtimeClassName:"); sb.append(runtimeClassName + ","); }
if (schedulerName != null) { sb.append("schedulerName:"); sb.append(schedulerName + ","); }
Expand Down Expand Up @@ -2596,6 +2640,22 @@ public N endResourceClaim() {
}


}
public class ResourcesNested<N> extends V1ResourceRequirementsFluent<ResourcesNested<N>> implements Nested<N>{
ResourcesNested(V1ResourceRequirements item) {
this.builder = new V1ResourceRequirementsBuilder(this, item);
}
V1ResourceRequirementsBuilder builder;

public N and() {
return (N) V1PodSpecFluent.this.withResources(builder.build());
}

public N endResources() {
return and();
}


}
public class SchedulingGatesNested<N> extends V1PodSchedulingGateFluent<SchedulingGatesNested<N>> implements Nested<N>{
SchedulingGatesNested(int index,V1PodSchedulingGate item) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
public class V1alpha1ApplyConfigurationBuilder extends V1alpha1ApplyConfigurationFluent<V1alpha1ApplyConfigurationBuilder> implements VisitableBuilder<V1alpha1ApplyConfiguration,V1alpha1ApplyConfigurationBuilder>{
public V1alpha1ApplyConfigurationBuilder() {
this(new V1alpha1ApplyConfiguration());
}

public V1alpha1ApplyConfigurationBuilder(V1alpha1ApplyConfigurationFluent<?> fluent) {
this(fluent, new V1alpha1ApplyConfiguration());
}

public V1alpha1ApplyConfigurationBuilder(V1alpha1ApplyConfigurationFluent<?> fluent,V1alpha1ApplyConfiguration instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}

public V1alpha1ApplyConfigurationBuilder(V1alpha1ApplyConfiguration instance) {
this.fluent = this;
this.copyInstance(instance);
}
V1alpha1ApplyConfigurationFluent<?> fluent;

public V1alpha1ApplyConfiguration build() {
V1alpha1ApplyConfiguration buildable = new V1alpha1ApplyConfiguration();
buildable.setExpression(fluent.getExpression());
return buildable;
}


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
package io.kubernetes.client.openapi.models;

import java.lang.SuppressWarnings;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.String;

/**
* Generated
*/
@SuppressWarnings("unchecked")
public class V1alpha1ApplyConfigurationFluent<A extends V1alpha1ApplyConfigurationFluent<A>> extends BaseFluent<A>{
public V1alpha1ApplyConfigurationFluent() {
}

public V1alpha1ApplyConfigurationFluent(V1alpha1ApplyConfiguration instance) {
this.copyInstance(instance);
}
private String expression;

protected void copyInstance(V1alpha1ApplyConfiguration instance) {
instance = (instance != null ? instance : new V1alpha1ApplyConfiguration());
if (instance != null) {
this.withExpression(instance.getExpression());
}
}

public String getExpression() {
return this.expression;
}

public A withExpression(String expression) {
this.expression = expression;
return (A) this;
}

public boolean hasExpression() {
return this.expression != null;
}

public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
V1alpha1ApplyConfigurationFluent that = (V1alpha1ApplyConfigurationFluent) o;
if (!java.util.Objects.equals(expression, that.expression)) return false;
return true;
}

public int hashCode() {
return java.util.Objects.hash(expression, super.hashCode());
}

public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (expression != null) { sb.append("expression:"); sb.append(expression); }
sb.append("}");
return sb.toString();
}


}

This file was deleted.

Loading