diff --git a/kubernetes-model-generator/openapi/generator/pkg/openapi/openapi-gen.go b/kubernetes-model-generator/openapi/generator/pkg/openapi/openapi-gen.go
index c15c737d39a..ee12d10da6b 100644
--- a/kubernetes-model-generator/openapi/generator/pkg/openapi/openapi-gen.go
+++ b/kubernetes-model-generator/openapi/generator/pkg/openapi/openapi-gen.go
@@ -44,6 +44,9 @@ func (g *GoGenerator) Generate() error {
)
}
+// KubernetesTargets wrapper function around kube-openapi's generators.GetTargets function.
+//
+// Allows to override the default kube-openapi generators.apiTypeFilterFunc with our own (see KubernetesFilterFunc).
func (g *GoGenerator) KubernetesTargets(context *generator.Context) []generator.Target {
// Create a map of all the input packages for performance (queried later on)
g.inputPkgs = make(map[string]bool)
@@ -59,8 +62,16 @@ func (g *GoGenerator) KubernetesTargets(context *generator.Context) []generator.
return openApiGenTargets
}
-// KubernetesFilterFunc
+// KubernetesFilterFunc function to filter out types that are not Kubernetes Objects,
+// Lists, or nested structs within those.
+//
// Adaptation of https://github.com/kubernetes/kube-openapi/blob/9e1beecbcb384a484fb5cbd41024f316d51fdfac/pkg/generators/openapi.go#L106
+//
+// The original function only takes into account those structs that have been tagged with +k8s:openapi-gen=true
+// or that belong to a package that has been tagged with +k8s:openapi-gen=true
+//
+// The default behavior is fine for most packages, however, some of them lack these annotations.
+// While the upstream projects are fixed, we need to provide a workaround to generate the complete OpenAPI definitions.
func (g *GoGenerator) KubernetesFilterFunc(c *generator.Context, t *types.Type) bool {
// Skip types that are not structs
if t.Kind != types.Struct {
diff --git a/kubernetes-model-generator/openapi/generator/pkg/openshift/openshift.go b/kubernetes-model-generator/openapi/generator/pkg/openshift/openshift.go
index 9cc7bb95628..c78c706b7fc 100644
--- a/kubernetes-model-generator/openapi/generator/pkg/openshift/openshift.go
+++ b/kubernetes-model-generator/openapi/generator/pkg/openshift/openshift.go
@@ -19,11 +19,12 @@ package openshift
// PackagePatterns are the patterns required for OpenShift GO and JSON OpenAPI generation
var PackagePatterns = []string{
+ // Always import Kubernetes base packages as they are required by the rest of APIs
+ "k8s.io/apimachinery/pkg/apis/meta/v...",
+ "k8s.io/api/.../v...",
+ // OpenShift APIs
"github.com/openshift/api/.../v...",
// CRDs don't provide info for reused types
"github.com/operator-framework/api/pkg/operators/v...",
"github.com/openshift/cluster-network-operator/pkg/apis/.../v...",
- // Always import Kubernetes base packages as they are required by the rest of APIs
- "k8s.io/apimachinery/pkg/apis/meta/v...",
- "k8s.io/api/.../v...",
}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/pom.xml b/kubernetes-model-generator/openshift-model-operatorhub/pom.xml
index bbb833787f8..cdddf9494e7 100644
--- a/kubernetes-model-generator/openshift-model-operatorhub/pom.xml
+++ b/kubernetes-model-generator/openshift-model-operatorhub/pom.xml
@@ -43,6 +43,18 @@
io.fabric8
kubernetes-model-core
+
+ io.fabric8
+ kubernetes-model-admissionregistration
+
+
+ io.fabric8
+ kubernetes-model-apps
+
+
+ io.fabric8
+ kubernetes-model-rbac
+
org.assertj
assertj-core
@@ -58,22 +70,16 @@
io.fabric8
openapi-model-generator-maven-plugin
-
+
- ${openapi.schema.openshift-latest}
+ ${openapi.schema.openshift-generated}
- io.fabric8.kubernetes.api.model
- io.fabric8.openshift.api.model.operatorhub
io.fabric8.openshift.api.model.operatorhub
- io.fabric8.openshift.api.model.operatorhub
- io.fabric8.openshift.api.model.operatorhub.lifecyclemanager
^com\.coreos\.operators\..*$
- ^com\.github\.operator-framework\.api\.pkg\.operators\.v1alpha1\..*$
- ^com\.github\.operator-framework\.operator-lifecycle-manager\.pkg\.package-server\.apis\.operators\..*$
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/CSVDescription.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/CSVDescription.java
deleted file mode 100644
index 0b1b7a74047..00000000000
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/CSVDescription.java
+++ /dev/null
@@ -1,340 +0,0 @@
-
-package io.fabric8.openshift.api.model.operatorhub.lifecyclemanager.v1;
-
-import java.util.ArrayList;
-import java.util.LinkedHashMap;
-import java.util.List;
-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.GroupVersionKind;
-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.openshift.api.model.operatorhub.v1alpha1.APIServiceDefinitions;
-import io.fabric8.openshift.api.model.operatorhub.v1alpha1.CustomResourceDefinitions;
-import io.fabric8.openshift.api.model.operatorhub.v1alpha1.InstallMode;
-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({
- "annotations",
- "apiservicedefinitions",
- "customresourcedefinitions",
- "description",
- "displayName",
- "icon",
- "installModes",
- "keywords",
- "links",
- "maintainers",
- "maturity",
- "minKubeVersion",
- "nativeApis",
- "provider",
- "relatedImages",
- "version"
-})
-@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)
-})
-@Generated("jsonschema2pojo")
-public class CSVDescription implements Editable , KubernetesResource
-{
-
- @JsonProperty("annotations")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- private Map annotations = new LinkedHashMap<>();
- @JsonProperty("apiservicedefinitions")
- private APIServiceDefinitions apiservicedefinitions;
- @JsonProperty("customresourcedefinitions")
- private CustomResourceDefinitions customresourcedefinitions;
- @JsonProperty("description")
- private String description;
- @JsonProperty("displayName")
- private String displayName;
- @JsonProperty("icon")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List icon = new ArrayList<>();
- @JsonProperty("installModes")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List installModes = new ArrayList<>();
- @JsonProperty("keywords")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List keywords = new ArrayList<>();
- @JsonProperty("links")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List links = new ArrayList<>();
- @JsonProperty("maintainers")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List maintainers = new ArrayList<>();
- @JsonProperty("maturity")
- private String maturity;
- @JsonProperty("minKubeVersion")
- private String minKubeVersion;
- @JsonProperty("nativeApis")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List nativeApis = new ArrayList<>();
- @JsonProperty("provider")
- private AppLink provider;
- @JsonProperty("relatedImages")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List relatedImages = new ArrayList<>();
- @JsonProperty("version")
- private String version;
- @JsonIgnore
- private Map additionalProperties = new LinkedHashMap();
-
- /**
- * No args constructor for use in serialization
- *
- */
- public CSVDescription() {
- }
-
- public CSVDescription(Map annotations, APIServiceDefinitions apiservicedefinitions, CustomResourceDefinitions customresourcedefinitions, String description, String displayName, List icon, List installModes, List keywords, List links, List maintainers, String maturity, String minKubeVersion, List nativeApis, AppLink provider, List relatedImages, String version) {
- super();
- this.annotations = annotations;
- this.apiservicedefinitions = apiservicedefinitions;
- this.customresourcedefinitions = customresourcedefinitions;
- this.description = description;
- this.displayName = displayName;
- this.icon = icon;
- this.installModes = installModes;
- this.keywords = keywords;
- this.links = links;
- this.maintainers = maintainers;
- this.maturity = maturity;
- this.minKubeVersion = minKubeVersion;
- this.nativeApis = nativeApis;
- this.provider = provider;
- this.relatedImages = relatedImages;
- this.version = version;
- }
-
- @JsonProperty("annotations")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- public Map getAnnotations() {
- return annotations;
- }
-
- @JsonProperty("annotations")
- public void setAnnotations(Map annotations) {
- this.annotations = annotations;
- }
-
- @JsonProperty("apiservicedefinitions")
- public APIServiceDefinitions getApiservicedefinitions() {
- return apiservicedefinitions;
- }
-
- @JsonProperty("apiservicedefinitions")
- public void setApiservicedefinitions(APIServiceDefinitions apiservicedefinitions) {
- this.apiservicedefinitions = apiservicedefinitions;
- }
-
- @JsonProperty("customresourcedefinitions")
- public CustomResourceDefinitions getCustomresourcedefinitions() {
- return customresourcedefinitions;
- }
-
- @JsonProperty("customresourcedefinitions")
- public void setCustomresourcedefinitions(CustomResourceDefinitions customresourcedefinitions) {
- this.customresourcedefinitions = customresourcedefinitions;
- }
-
- @JsonProperty("description")
- public String getDescription() {
- return description;
- }
-
- @JsonProperty("description")
- public void setDescription(String description) {
- this.description = description;
- }
-
- @JsonProperty("displayName")
- public String getDisplayName() {
- return displayName;
- }
-
- @JsonProperty("displayName")
- public void setDisplayName(String displayName) {
- this.displayName = displayName;
- }
-
- @JsonProperty("icon")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getIcon() {
- return icon;
- }
-
- @JsonProperty("icon")
- public void setIcon(List icon) {
- this.icon = icon;
- }
-
- @JsonProperty("installModes")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getInstallModes() {
- return installModes;
- }
-
- @JsonProperty("installModes")
- public void setInstallModes(List installModes) {
- this.installModes = installModes;
- }
-
- @JsonProperty("keywords")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getKeywords() {
- return keywords;
- }
-
- @JsonProperty("keywords")
- public void setKeywords(List keywords) {
- this.keywords = keywords;
- }
-
- @JsonProperty("links")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getLinks() {
- return links;
- }
-
- @JsonProperty("links")
- public void setLinks(List links) {
- this.links = links;
- }
-
- @JsonProperty("maintainers")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getMaintainers() {
- return maintainers;
- }
-
- @JsonProperty("maintainers")
- public void setMaintainers(List maintainers) {
- this.maintainers = maintainers;
- }
-
- @JsonProperty("maturity")
- public String getMaturity() {
- return maturity;
- }
-
- @JsonProperty("maturity")
- public void setMaturity(String maturity) {
- this.maturity = maturity;
- }
-
- @JsonProperty("minKubeVersion")
- public String getMinKubeVersion() {
- return minKubeVersion;
- }
-
- @JsonProperty("minKubeVersion")
- public void setMinKubeVersion(String minKubeVersion) {
- this.minKubeVersion = minKubeVersion;
- }
-
- @JsonProperty("nativeApis")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getNativeApis() {
- return nativeApis;
- }
-
- @JsonProperty("nativeApis")
- public void setNativeApis(List nativeApis) {
- this.nativeApis = nativeApis;
- }
-
- @JsonProperty("provider")
- public AppLink getProvider() {
- return provider;
- }
-
- @JsonProperty("provider")
- public void setProvider(AppLink provider) {
- this.provider = provider;
- }
-
- @JsonProperty("relatedImages")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getRelatedImages() {
- return relatedImages;
- }
-
- @JsonProperty("relatedImages")
- public void setRelatedImages(List relatedImages) {
- this.relatedImages = relatedImages;
- }
-
- @JsonProperty("version")
- public String getVersion() {
- return version;
- }
-
- @JsonProperty("version")
- public void setVersion(String version) {
- this.version = version;
- }
-
- @JsonIgnore
- public CSVDescriptionBuilder edit() {
- return new CSVDescriptionBuilder(this);
- }
-
- @JsonIgnore
- public CSVDescriptionBuilder toBuilder() {
- return edit();
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- public void setAdditionalProperties(Map additionalProperties) {
- this.additionalProperties = additionalProperties;
- }
-
-}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/ChannelEntry.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/ChannelEntry.java
deleted file mode 100644
index 3fd369f0767..00000000000
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/ChannelEntry.java
+++ /dev/null
@@ -1,136 +0,0 @@
-
-package io.fabric8.openshift.api.model.operatorhub.lifecyclemanager.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.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.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({
- "deprecation",
- "name",
- "version"
-})
-@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)
-})
-@Generated("jsonschema2pojo")
-public class ChannelEntry implements Editable , KubernetesResource
-{
-
- @JsonProperty("deprecation")
- private Deprecation deprecation;
- @JsonProperty("name")
- private String name;
- @JsonProperty("version")
- private String version;
- @JsonIgnore
- private Map additionalProperties = new LinkedHashMap();
-
- /**
- * No args constructor for use in serialization
- *
- */
- public ChannelEntry() {
- }
-
- public ChannelEntry(Deprecation deprecation, String name, String version) {
- super();
- this.deprecation = deprecation;
- this.name = name;
- this.version = version;
- }
-
- @JsonProperty("deprecation")
- public Deprecation getDeprecation() {
- return deprecation;
- }
-
- @JsonProperty("deprecation")
- public void setDeprecation(Deprecation deprecation) {
- this.deprecation = deprecation;
- }
-
- @JsonProperty("name")
- public String getName() {
- return name;
- }
-
- @JsonProperty("name")
- public void setName(String name) {
- this.name = name;
- }
-
- @JsonProperty("version")
- public String getVersion() {
- return version;
- }
-
- @JsonProperty("version")
- public void setVersion(String version) {
- this.version = version;
- }
-
- @JsonIgnore
- public ChannelEntryBuilder edit() {
- return new ChannelEntryBuilder(this);
- }
-
- @JsonIgnore
- public ChannelEntryBuilder toBuilder() {
- return edit();
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- public void setAdditionalProperties(Map additionalProperties) {
- this.additionalProperties = additionalProperties;
- }
-
-}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/Deprecation.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/Deprecation.java
deleted file mode 100644
index ad00284d437..00000000000
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/Deprecation.java
+++ /dev/null
@@ -1,108 +0,0 @@
-
-package io.fabric8.openshift.api.model.operatorhub.lifecyclemanager.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.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.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({
- "message"
-})
-@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)
-})
-@Generated("jsonschema2pojo")
-public class Deprecation implements Editable , KubernetesResource
-{
-
- @JsonProperty("message")
- private String message;
- @JsonIgnore
- private Map additionalProperties = new LinkedHashMap();
-
- /**
- * No args constructor for use in serialization
- *
- */
- public Deprecation() {
- }
-
- public Deprecation(String message) {
- super();
- this.message = message;
- }
-
- @JsonProperty("message")
- public String getMessage() {
- return message;
- }
-
- @JsonProperty("message")
- public void setMessage(String message) {
- this.message = message;
- }
-
- @JsonIgnore
- public DeprecationBuilder edit() {
- return new DeprecationBuilder(this);
- }
-
- @JsonIgnore
- public DeprecationBuilder toBuilder() {
- return edit();
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- public void setAdditionalProperties(Map additionalProperties) {
- this.additionalProperties = additionalProperties;
- }
-
-}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/PackageChannel.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/PackageChannel.java
deleted file mode 100644
index fe01c7afc7e..00000000000
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/PackageChannel.java
+++ /dev/null
@@ -1,168 +0,0 @@
-
-package io.fabric8.openshift.api.model.operatorhub.lifecyclemanager.v1;
-
-import java.util.ArrayList;
-import java.util.LinkedHashMap;
-import java.util.List;
-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.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.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({
- "currentCSV",
- "currentCSVDesc",
- "deprecation",
- "entries",
- "name"
-})
-@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)
-})
-@Generated("jsonschema2pojo")
-public class PackageChannel implements Editable , KubernetesResource
-{
-
- @JsonProperty("currentCSV")
- private String currentCSV;
- @JsonProperty("currentCSVDesc")
- private CSVDescription currentCSVDesc;
- @JsonProperty("deprecation")
- private Deprecation deprecation;
- @JsonProperty("entries")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List entries = new ArrayList<>();
- @JsonProperty("name")
- private String name;
- @JsonIgnore
- private Map additionalProperties = new LinkedHashMap();
-
- /**
- * No args constructor for use in serialization
- *
- */
- public PackageChannel() {
- }
-
- public PackageChannel(String currentCSV, CSVDescription currentCSVDesc, Deprecation deprecation, List entries, String name) {
- super();
- this.currentCSV = currentCSV;
- this.currentCSVDesc = currentCSVDesc;
- this.deprecation = deprecation;
- this.entries = entries;
- this.name = name;
- }
-
- @JsonProperty("currentCSV")
- public String getCurrentCSV() {
- return currentCSV;
- }
-
- @JsonProperty("currentCSV")
- public void setCurrentCSV(String currentCSV) {
- this.currentCSV = currentCSV;
- }
-
- @JsonProperty("currentCSVDesc")
- public CSVDescription getCurrentCSVDesc() {
- return currentCSVDesc;
- }
-
- @JsonProperty("currentCSVDesc")
- public void setCurrentCSVDesc(CSVDescription currentCSVDesc) {
- this.currentCSVDesc = currentCSVDesc;
- }
-
- @JsonProperty("deprecation")
- public Deprecation getDeprecation() {
- return deprecation;
- }
-
- @JsonProperty("deprecation")
- public void setDeprecation(Deprecation deprecation) {
- this.deprecation = deprecation;
- }
-
- @JsonProperty("entries")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getEntries() {
- return entries;
- }
-
- @JsonProperty("entries")
- public void setEntries(List entries) {
- this.entries = entries;
- }
-
- @JsonProperty("name")
- public String getName() {
- return name;
- }
-
- @JsonProperty("name")
- public void setName(String name) {
- this.name = name;
- }
-
- @JsonIgnore
- public PackageChannelBuilder edit() {
- return new PackageChannelBuilder(this);
- }
-
- @JsonIgnore
- public PackageChannelBuilder toBuilder() {
- return edit();
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- public void setAdditionalProperties(Map additionalProperties) {
- this.additionalProperties = additionalProperties;
- }
-
-}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/PackageManifest.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/PackageManifest.java
deleted file mode 100644
index dd63e47ec20..00000000000
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/PackageManifest.java
+++ /dev/null
@@ -1,204 +0,0 @@
-
-package io.fabric8.openshift.api.model.operatorhub.lifecyclemanager.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.HasMetadata;
-import io.fabric8.kubernetes.api.model.IntOrString;
-import io.fabric8.kubernetes.api.model.LabelSelector;
-import io.fabric8.kubernetes.api.model.LocalObjectReference;
-import io.fabric8.kubernetes.api.model.Namespaced;
-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.model.annotation.Group;
-import io.fabric8.kubernetes.model.annotation.Version;
-import io.sundr.builder.annotations.Buildable;
-import io.sundr.builder.annotations.BuildableReference;
-import io.sundr.transform.annotations.TemplateTransformation;
-import io.sundr.transform.annotations.TemplateTransformations;
-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({
- "apiVersion",
- "kind",
- "metadata",
- "spec",
- "status"
-})
-@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)
-})
-@TemplateTransformations({
- @TemplateTransformation(value = "/manifest.vm", outputPath = "META-INF/services/io.fabric8.kubernetes.api.model.KubernetesResource", gather = true)
-})
-@Version("v1")
-@Group("packages.operators.coreos.com")
-@Generated("jsonschema2pojo")
-public class PackageManifest implements Editable , HasMetadata, Namespaced
-{
-
- /**
- *
- * (Required)
- *
- */
- @JsonProperty("apiVersion")
- private String apiVersion = "packages.operators.coreos.com/v1";
- /**
- *
- * (Required)
- *
- */
- @JsonProperty("kind")
- private String kind = "PackageManifest";
- @JsonProperty("metadata")
- private ObjectMeta metadata;
- @JsonProperty("spec")
- private PackageManifestSpec spec;
- @JsonProperty("status")
- private PackageManifestStatus status;
- @JsonIgnore
- private Map additionalProperties = new LinkedHashMap();
-
- /**
- * No args constructor for use in serialization
- *
- */
- public PackageManifest() {
- }
-
- public PackageManifest(String apiVersion, String kind, ObjectMeta metadata, PackageManifestSpec spec, PackageManifestStatus status) {
- super();
- this.apiVersion = apiVersion;
- this.kind = kind;
- this.metadata = metadata;
- this.spec = spec;
- this.status = status;
- }
-
- /**
- *
- * (Required)
- *
- */
- @JsonProperty("apiVersion")
- public String getApiVersion() {
- return apiVersion;
- }
-
- /**
- *
- * (Required)
- *
- */
- @JsonProperty("apiVersion")
- public void setApiVersion(String apiVersion) {
- this.apiVersion = apiVersion;
- }
-
- /**
- *
- * (Required)
- *
- */
- @JsonProperty("kind")
- public String getKind() {
- return kind;
- }
-
- /**
- *
- * (Required)
- *
- */
- @JsonProperty("kind")
- public void setKind(String kind) {
- this.kind = kind;
- }
-
- @JsonProperty("metadata")
- public ObjectMeta getMetadata() {
- return metadata;
- }
-
- @JsonProperty("metadata")
- public void setMetadata(ObjectMeta metadata) {
- this.metadata = metadata;
- }
-
- @JsonProperty("spec")
- public PackageManifestSpec getSpec() {
- return spec;
- }
-
- @JsonProperty("spec")
- public void setSpec(PackageManifestSpec spec) {
- this.spec = spec;
- }
-
- @JsonProperty("status")
- public PackageManifestStatus getStatus() {
- return status;
- }
-
- @JsonProperty("status")
- public void setStatus(PackageManifestStatus status) {
- this.status = status;
- }
-
- @JsonIgnore
- public PackageManifestBuilder edit() {
- return new PackageManifestBuilder(this);
- }
-
- @JsonIgnore
- public PackageManifestBuilder toBuilder() {
- return edit();
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- public void setAdditionalProperties(Map additionalProperties) {
- this.additionalProperties = additionalProperties;
- }
-
-}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/PackageManifestList.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/PackageManifestList.java
deleted file mode 100644
index fb692cddb08..00000000000
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/PackageManifestList.java
+++ /dev/null
@@ -1,195 +0,0 @@
-
-package io.fabric8.openshift.api.model.operatorhub.lifecyclemanager.v1;
-
-import java.util.ArrayList;
-import java.util.LinkedHashMap;
-import java.util.List;
-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.IntOrString;
-import io.fabric8.kubernetes.api.model.KubernetesResource;
-import io.fabric8.kubernetes.api.model.KubernetesResourceList;
-import io.fabric8.kubernetes.api.model.LabelSelector;
-import io.fabric8.kubernetes.api.model.ListMeta;
-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.model.annotation.Group;
-import io.fabric8.kubernetes.model.annotation.Version;
-import io.sundr.builder.annotations.Buildable;
-import io.sundr.builder.annotations.BuildableReference;
-import io.sundr.transform.annotations.TemplateTransformation;
-import io.sundr.transform.annotations.TemplateTransformations;
-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({
- "apiVersion",
- "kind",
- "metadata",
- "items"
-})
-@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)
-})
-@TemplateTransformations({
- @TemplateTransformation(value = "/manifest.vm", outputPath = "META-INF/services/io.fabric8.kubernetes.api.model.KubernetesResource", gather = true)
-})
-@Version("v1")
-@Group("packages.operators.coreos.com")
-@Generated("jsonschema2pojo")
-public class PackageManifestList implements Editable , KubernetesResource, KubernetesResourceList
-{
-
- /**
- *
- * (Required)
- *
- */
- @JsonProperty("apiVersion")
- private String apiVersion = "packages.operators.coreos.com/v1";
- @JsonProperty("items")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List items = new ArrayList<>();
- /**
- *
- * (Required)
- *
- */
- @JsonProperty("kind")
- private String kind = "PackageManifestList";
- @JsonProperty("metadata")
- private ListMeta metadata;
- @JsonIgnore
- private Map additionalProperties = new LinkedHashMap();
-
- /**
- * No args constructor for use in serialization
- *
- */
- public PackageManifestList() {
- }
-
- public PackageManifestList(String apiVersion, List items, String kind, ListMeta metadata) {
- super();
- this.apiVersion = apiVersion;
- this.items = items;
- this.kind = kind;
- this.metadata = metadata;
- }
-
- /**
- *
- * (Required)
- *
- */
- @JsonProperty("apiVersion")
- public String getApiVersion() {
- return apiVersion;
- }
-
- /**
- *
- * (Required)
- *
- */
- @JsonProperty("apiVersion")
- public void setApiVersion(String apiVersion) {
- this.apiVersion = apiVersion;
- }
-
- @JsonProperty("items")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getItems() {
- return items;
- }
-
- @JsonProperty("items")
- public void setItems(List items) {
- this.items = items;
- }
-
- /**
- *
- * (Required)
- *
- */
- @JsonProperty("kind")
- public String getKind() {
- return kind;
- }
-
- /**
- *
- * (Required)
- *
- */
- @JsonProperty("kind")
- public void setKind(String kind) {
- this.kind = kind;
- }
-
- @JsonProperty("metadata")
- public ListMeta getMetadata() {
- return metadata;
- }
-
- @JsonProperty("metadata")
- public void setMetadata(ListMeta metadata) {
- this.metadata = metadata;
- }
-
- @JsonIgnore
- public PackageManifestListBuilder edit() {
- return new PackageManifestListBuilder(this);
- }
-
- @JsonIgnore
- public PackageManifestListBuilder toBuilder() {
- return edit();
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- public void setAdditionalProperties(Map additionalProperties) {
- this.additionalProperties = additionalProperties;
- }
-
-}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/PackageManifestStatus.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/PackageManifestStatus.java
deleted file mode 100644
index c21e1350007..00000000000
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/PackageManifestStatus.java
+++ /dev/null
@@ -1,224 +0,0 @@
-
-package io.fabric8.openshift.api.model.operatorhub.lifecyclemanager.v1;
-
-import java.util.ArrayList;
-import java.util.LinkedHashMap;
-import java.util.List;
-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.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.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({
- "catalogSource",
- "catalogSourceDisplayName",
- "catalogSourceNamespace",
- "catalogSourcePublisher",
- "channels",
- "defaultChannel",
- "deprecation",
- "packageName",
- "provider"
-})
-@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)
-})
-@Generated("jsonschema2pojo")
-public class PackageManifestStatus implements Editable , KubernetesResource
-{
-
- @JsonProperty("catalogSource")
- private String catalogSource;
- @JsonProperty("catalogSourceDisplayName")
- private String catalogSourceDisplayName;
- @JsonProperty("catalogSourceNamespace")
- private String catalogSourceNamespace;
- @JsonProperty("catalogSourcePublisher")
- private String catalogSourcePublisher;
- @JsonProperty("channels")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List channels = new ArrayList<>();
- @JsonProperty("defaultChannel")
- private String defaultChannel;
- @JsonProperty("deprecation")
- private Deprecation deprecation;
- @JsonProperty("packageName")
- private String packageName;
- @JsonProperty("provider")
- private AppLink provider;
- @JsonIgnore
- private Map additionalProperties = new LinkedHashMap();
-
- /**
- * No args constructor for use in serialization
- *
- */
- public PackageManifestStatus() {
- }
-
- public PackageManifestStatus(String catalogSource, String catalogSourceDisplayName, String catalogSourceNamespace, String catalogSourcePublisher, List channels, String defaultChannel, Deprecation deprecation, String packageName, AppLink provider) {
- super();
- this.catalogSource = catalogSource;
- this.catalogSourceDisplayName = catalogSourceDisplayName;
- this.catalogSourceNamespace = catalogSourceNamespace;
- this.catalogSourcePublisher = catalogSourcePublisher;
- this.channels = channels;
- this.defaultChannel = defaultChannel;
- this.deprecation = deprecation;
- this.packageName = packageName;
- this.provider = provider;
- }
-
- @JsonProperty("catalogSource")
- public String getCatalogSource() {
- return catalogSource;
- }
-
- @JsonProperty("catalogSource")
- public void setCatalogSource(String catalogSource) {
- this.catalogSource = catalogSource;
- }
-
- @JsonProperty("catalogSourceDisplayName")
- public String getCatalogSourceDisplayName() {
- return catalogSourceDisplayName;
- }
-
- @JsonProperty("catalogSourceDisplayName")
- public void setCatalogSourceDisplayName(String catalogSourceDisplayName) {
- this.catalogSourceDisplayName = catalogSourceDisplayName;
- }
-
- @JsonProperty("catalogSourceNamespace")
- public String getCatalogSourceNamespace() {
- return catalogSourceNamespace;
- }
-
- @JsonProperty("catalogSourceNamespace")
- public void setCatalogSourceNamespace(String catalogSourceNamespace) {
- this.catalogSourceNamespace = catalogSourceNamespace;
- }
-
- @JsonProperty("catalogSourcePublisher")
- public String getCatalogSourcePublisher() {
- return catalogSourcePublisher;
- }
-
- @JsonProperty("catalogSourcePublisher")
- public void setCatalogSourcePublisher(String catalogSourcePublisher) {
- this.catalogSourcePublisher = catalogSourcePublisher;
- }
-
- @JsonProperty("channels")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getChannels() {
- return channels;
- }
-
- @JsonProperty("channels")
- public void setChannels(List channels) {
- this.channels = channels;
- }
-
- @JsonProperty("defaultChannel")
- public String getDefaultChannel() {
- return defaultChannel;
- }
-
- @JsonProperty("defaultChannel")
- public void setDefaultChannel(String defaultChannel) {
- this.defaultChannel = defaultChannel;
- }
-
- @JsonProperty("deprecation")
- public Deprecation getDeprecation() {
- return deprecation;
- }
-
- @JsonProperty("deprecation")
- public void setDeprecation(Deprecation deprecation) {
- this.deprecation = deprecation;
- }
-
- @JsonProperty("packageName")
- public String getPackageName() {
- return packageName;
- }
-
- @JsonProperty("packageName")
- public void setPackageName(String packageName) {
- this.packageName = packageName;
- }
-
- @JsonProperty("provider")
- public AppLink getProvider() {
- return provider;
- }
-
- @JsonProperty("provider")
- public void setProvider(AppLink provider) {
- this.provider = provider;
- }
-
- @JsonIgnore
- public PackageManifestStatusBuilder edit() {
- return new PackageManifestStatusBuilder(this);
- }
-
- @JsonIgnore
- public PackageManifestStatusBuilder toBuilder() {
- return edit();
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- public void setAdditionalProperties(Map additionalProperties) {
- this.additionalProperties = additionalProperties;
- }
-
-}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatusComponents.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/Components.java
similarity index 81%
rename from kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatusComponents.java
rename to kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/Components.java
index 9f0a1c3c2f5..98c92383e81 100644
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatusComponents.java
+++ b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/Components.java
@@ -54,14 +54,14 @@
@BuildableReference(PersistentVolumeClaim.class)
})
@Generated("jsonschema2pojo")
-public class OperatorStatusComponents implements Editable , KubernetesResource
+public class Components implements Editable , KubernetesResource
{
@JsonProperty("labelSelector")
- private OperatorStatusCLabelSelector labelSelector;
+ private LabelSelector labelSelector;
@JsonProperty("refs")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List refs = new ArrayList<>();
+ private List refs = new ArrayList<>();
@JsonIgnore
private Map additionalProperties = new LinkedHashMap();
@@ -69,43 +69,43 @@ public class OperatorStatusComponents implements Editable refs) {
+ public Components(LabelSelector labelSelector, List refs) {
super();
this.labelSelector = labelSelector;
this.refs = refs;
}
@JsonProperty("labelSelector")
- public OperatorStatusCLabelSelector getLabelSelector() {
+ public LabelSelector getLabelSelector() {
return labelSelector;
}
@JsonProperty("labelSelector")
- public void setLabelSelector(OperatorStatusCLabelSelector labelSelector) {
+ public void setLabelSelector(LabelSelector labelSelector) {
this.labelSelector = labelSelector;
}
@JsonProperty("refs")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getRefs() {
+ public List getRefs() {
return refs;
}
@JsonProperty("refs")
- public void setRefs(List refs) {
+ public void setRefs(List refs) {
this.refs = refs;
}
@JsonIgnore
- public OperatorStatusComponentsBuilder edit() {
- return new OperatorStatusComponentsBuilder(this);
+ public ComponentsBuilder edit() {
+ return new ComponentsBuilder(this);
}
@JsonIgnore
- public OperatorStatusComponentsBuilder toBuilder() {
+ public ComponentsBuilder toBuilder() {
return edit();
}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatusCRConditions.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/Condition.java
similarity index 91%
rename from kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatusCRConditions.java
rename to kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/Condition.java
index d308ce3c18e..ccbfc41e026 100644
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatusCRConditions.java
+++ b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/Condition.java
@@ -56,7 +56,7 @@
@BuildableReference(PersistentVolumeClaim.class)
})
@Generated("jsonschema2pojo")
-public class OperatorStatusCRConditions implements Editable , KubernetesResource
+public class Condition implements Editable , KubernetesResource
{
@JsonProperty("lastTransitionTime")
@@ -78,10 +78,10 @@ public class OperatorStatusCRConditions implements Editable , KubernetesResource
+public class Features implements Editable , KubernetesResource
{
@JsonProperty("disableCopiedCSVs")
@@ -66,10 +66,10 @@ public class OLMConfigSpecFeatures implements Editable , Kubernete
{
@JsonProperty("features")
- private OLMConfigSpecFeatures features;
+ private Features features;
@JsonIgnore
private Map additionalProperties = new LinkedHashMap();
@@ -66,18 +66,18 @@ public class OLMConfigSpec implements Editable , Kubernete
public OLMConfigSpec() {
}
- public OLMConfigSpec(OLMConfigSpecFeatures features) {
+ public OLMConfigSpec(Features features) {
super();
this.features = features;
}
@JsonProperty("features")
- public OLMConfigSpecFeatures getFeatures() {
+ public Features getFeatures() {
return features;
}
@JsonProperty("features")
- public void setFeatures(OLMConfigSpecFeatures features) {
+ public void setFeatures(Features features) {
this.features = features;
}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OLMConfigStatus.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OLMConfigStatus.java
index b4014ab1a4a..e51d6f13010 100644
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OLMConfigStatus.java
+++ b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OLMConfigStatus.java
@@ -14,6 +14,7 @@
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.Condition;
import io.fabric8.kubernetes.api.model.Container;
import io.fabric8.kubernetes.api.model.IntOrString;
import io.fabric8.kubernetes.api.model.KubernetesResource;
@@ -58,7 +59,7 @@ public class OLMConfigStatus implements Editable , Kuber
@JsonProperty("conditions")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List conditions = new ArrayList<>();
+ private List conditions = new ArrayList<>();
@JsonIgnore
private Map additionalProperties = new LinkedHashMap();
@@ -69,19 +70,19 @@ public class OLMConfigStatus implements Editable , Kuber
public OLMConfigStatus() {
}
- public OLMConfigStatus(List conditions) {
+ public OLMConfigStatus(List conditions) {
super();
this.conditions = conditions;
}
@JsonProperty("conditions")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getConditions() {
+ public List getConditions() {
return conditions;
}
@JsonProperty("conditions")
- public void setConditions(List conditions) {
+ public void setConditions(List conditions) {
this.conditions = conditions;
}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OLMConfigStatusConditions.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OLMConfigStatusConditions.java
deleted file mode 100644
index 3eee4c4751f..00000000000
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OLMConfigStatusConditions.java
+++ /dev/null
@@ -1,178 +0,0 @@
-
-package io.fabric8.openshift.api.model.operatorhub.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.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.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({
- "lastTransitionTime",
- "message",
- "observedGeneration",
- "reason",
- "status",
- "type"
-})
-@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)
-})
-@Generated("jsonschema2pojo")
-public class OLMConfigStatusConditions implements Editable , KubernetesResource
-{
-
- @JsonProperty("lastTransitionTime")
- private String lastTransitionTime;
- @JsonProperty("message")
- private String message;
- @JsonProperty("observedGeneration")
- private Long observedGeneration;
- @JsonProperty("reason")
- private String reason;
- @JsonProperty("status")
- private String status;
- @JsonProperty("type")
- private String type;
- @JsonIgnore
- private Map additionalProperties = new LinkedHashMap();
-
- /**
- * No args constructor for use in serialization
- *
- */
- public OLMConfigStatusConditions() {
- }
-
- public OLMConfigStatusConditions(String lastTransitionTime, String message, Long observedGeneration, String reason, String status, String type) {
- super();
- this.lastTransitionTime = lastTransitionTime;
- this.message = message;
- this.observedGeneration = observedGeneration;
- this.reason = reason;
- this.status = status;
- this.type = type;
- }
-
- @JsonProperty("lastTransitionTime")
- public String getLastTransitionTime() {
- return lastTransitionTime;
- }
-
- @JsonProperty("lastTransitionTime")
- public void setLastTransitionTime(String lastTransitionTime) {
- this.lastTransitionTime = lastTransitionTime;
- }
-
- @JsonProperty("message")
- public String getMessage() {
- return message;
- }
-
- @JsonProperty("message")
- public void setMessage(String message) {
- this.message = message;
- }
-
- @JsonProperty("observedGeneration")
- public Long getObservedGeneration() {
- return observedGeneration;
- }
-
- @JsonProperty("observedGeneration")
- public void setObservedGeneration(Long observedGeneration) {
- this.observedGeneration = observedGeneration;
- }
-
- @JsonProperty("reason")
- public String getReason() {
- return reason;
- }
-
- @JsonProperty("reason")
- public void setReason(String reason) {
- this.reason = reason;
- }
-
- @JsonProperty("status")
- public String getStatus() {
- return status;
- }
-
- @JsonProperty("status")
- public void setStatus(String status) {
- this.status = status;
- }
-
- @JsonProperty("type")
- public String getType() {
- return type;
- }
-
- @JsonProperty("type")
- public void setType(String type) {
- this.type = type;
- }
-
- @JsonIgnore
- public OLMConfigStatusConditionsBuilder edit() {
- return new OLMConfigStatusConditionsBuilder(this);
- }
-
- @JsonIgnore
- public OLMConfigStatusConditionsBuilder toBuilder() {
- return edit();
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- public void setAdditionalProperties(Map additionalProperties) {
- this.additionalProperties = additionalProperties;
- }
-
-}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/Operator.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/Operator.java
index e784db0b6cf..3eee7d72400 100644
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/Operator.java
+++ b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/Operator.java
@@ -84,8 +84,7 @@ public class Operator implements Editable , HasMetadata
@JsonProperty("metadata")
private ObjectMeta metadata;
@JsonProperty("spec")
- @JsonDeserialize(using = io.fabric8.kubernetes.internal.KubernetesDeserializer.class)
- private Object spec;
+ private OperatorSpec spec;
@JsonProperty("status")
private OperatorStatus status;
@JsonIgnore
@@ -98,7 +97,7 @@ public class Operator implements Editable , HasMetadata
public Operator() {
}
- public Operator(String apiVersion, String kind, ObjectMeta metadata, Object spec, OperatorStatus status) {
+ public Operator(String apiVersion, String kind, ObjectMeta metadata, OperatorSpec spec, OperatorStatus status) {
super();
this.apiVersion = apiVersion;
this.kind = kind;
@@ -158,13 +157,12 @@ public void setMetadata(ObjectMeta metadata) {
}
@JsonProperty("spec")
- public Object getSpec() {
+ public OperatorSpec getSpec() {
return spec;
}
@JsonProperty("spec")
- @JsonDeserialize(using = io.fabric8.kubernetes.internal.KubernetesDeserializer.class)
- public void setSpec(Object spec) {
+ public void setSpec(OperatorSpec spec) {
this.spec = spec;
}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorConditionSpec.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorConditionSpec.java
index a0327849b94..21b02ffdee5 100644
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorConditionSpec.java
+++ b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorConditionSpec.java
@@ -14,6 +14,7 @@
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.Condition;
import io.fabric8.kubernetes.api.model.Container;
import io.fabric8.kubernetes.api.model.IntOrString;
import io.fabric8.kubernetes.api.model.KubernetesResource;
@@ -63,7 +64,7 @@ public class OperatorConditionSpec implements Editable deployments = new ArrayList<>();
@JsonProperty("overrides")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List overrides = new ArrayList<>();
+ private List overrides = new ArrayList<>();
@JsonProperty("serviceAccounts")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List serviceAccounts = new ArrayList<>();
@@ -77,7 +78,7 @@ public class OperatorConditionSpec implements Editable deployments, List overrides, List serviceAccounts) {
+ public OperatorConditionSpec(List deployments, List overrides, List serviceAccounts) {
super();
this.deployments = deployments;
this.overrides = overrides;
@@ -97,12 +98,12 @@ public void setDeployments(List deployments) {
@JsonProperty("overrides")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getOverrides() {
+ public List getOverrides() {
return overrides;
}
@JsonProperty("overrides")
- public void setOverrides(List overrides) {
+ public void setOverrides(List overrides) {
this.overrides = overrides;
}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorConditionSpecOverrides.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorConditionSpecOverrides.java
deleted file mode 100644
index 9c7b3bd68d3..00000000000
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorConditionSpecOverrides.java
+++ /dev/null
@@ -1,178 +0,0 @@
-
-package io.fabric8.openshift.api.model.operatorhub.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.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.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({
- "lastTransitionTime",
- "message",
- "observedGeneration",
- "reason",
- "status",
- "type"
-})
-@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)
-})
-@Generated("jsonschema2pojo")
-public class OperatorConditionSpecOverrides implements Editable , KubernetesResource
-{
-
- @JsonProperty("lastTransitionTime")
- private String lastTransitionTime;
- @JsonProperty("message")
- private String message;
- @JsonProperty("observedGeneration")
- private Long observedGeneration;
- @JsonProperty("reason")
- private String reason;
- @JsonProperty("status")
- private String status;
- @JsonProperty("type")
- private String type;
- @JsonIgnore
- private Map additionalProperties = new LinkedHashMap();
-
- /**
- * No args constructor for use in serialization
- *
- */
- public OperatorConditionSpecOverrides() {
- }
-
- public OperatorConditionSpecOverrides(String lastTransitionTime, String message, Long observedGeneration, String reason, String status, String type) {
- super();
- this.lastTransitionTime = lastTransitionTime;
- this.message = message;
- this.observedGeneration = observedGeneration;
- this.reason = reason;
- this.status = status;
- this.type = type;
- }
-
- @JsonProperty("lastTransitionTime")
- public String getLastTransitionTime() {
- return lastTransitionTime;
- }
-
- @JsonProperty("lastTransitionTime")
- public void setLastTransitionTime(String lastTransitionTime) {
- this.lastTransitionTime = lastTransitionTime;
- }
-
- @JsonProperty("message")
- public String getMessage() {
- return message;
- }
-
- @JsonProperty("message")
- public void setMessage(String message) {
- this.message = message;
- }
-
- @JsonProperty("observedGeneration")
- public Long getObservedGeneration() {
- return observedGeneration;
- }
-
- @JsonProperty("observedGeneration")
- public void setObservedGeneration(Long observedGeneration) {
- this.observedGeneration = observedGeneration;
- }
-
- @JsonProperty("reason")
- public String getReason() {
- return reason;
- }
-
- @JsonProperty("reason")
- public void setReason(String reason) {
- this.reason = reason;
- }
-
- @JsonProperty("status")
- public String getStatus() {
- return status;
- }
-
- @JsonProperty("status")
- public void setStatus(String status) {
- this.status = status;
- }
-
- @JsonProperty("type")
- public String getType() {
- return type;
- }
-
- @JsonProperty("type")
- public void setType(String type) {
- this.type = type;
- }
-
- @JsonIgnore
- public OperatorConditionSpecOverridesBuilder edit() {
- return new OperatorConditionSpecOverridesBuilder(this);
- }
-
- @JsonIgnore
- public OperatorConditionSpecOverridesBuilder toBuilder() {
- return edit();
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- public void setAdditionalProperties(Map additionalProperties) {
- this.additionalProperties = additionalProperties;
- }
-
-}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorConditionStatus.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorConditionStatus.java
index a0b09fbab1c..9cb80e85ba9 100644
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorConditionStatus.java
+++ b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorConditionStatus.java
@@ -14,6 +14,7 @@
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.Condition;
import io.fabric8.kubernetes.api.model.Container;
import io.fabric8.kubernetes.api.model.IntOrString;
import io.fabric8.kubernetes.api.model.KubernetesResource;
@@ -58,7 +59,7 @@ public class OperatorConditionStatus implements Editable conditions = new ArrayList<>();
+ private List conditions = new ArrayList<>();
@JsonIgnore
private Map additionalProperties = new LinkedHashMap();
@@ -69,19 +70,19 @@ public class OperatorConditionStatus implements Editable conditions) {
+ public OperatorConditionStatus(List conditions) {
super();
this.conditions = conditions;
}
@JsonProperty("conditions")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getConditions() {
+ public List getConditions() {
return conditions;
}
@JsonProperty("conditions")
- public void setConditions(List conditions) {
+ public void setConditions(List conditions) {
this.conditions = conditions;
}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorConditionStatusConditions.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorConditionStatusConditions.java
deleted file mode 100644
index 9b0c57336b6..00000000000
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorConditionStatusConditions.java
+++ /dev/null
@@ -1,178 +0,0 @@
-
-package io.fabric8.openshift.api.model.operatorhub.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.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.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({
- "lastTransitionTime",
- "message",
- "observedGeneration",
- "reason",
- "status",
- "type"
-})
-@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)
-})
-@Generated("jsonschema2pojo")
-public class OperatorConditionStatusConditions implements Editable , KubernetesResource
-{
-
- @JsonProperty("lastTransitionTime")
- private String lastTransitionTime;
- @JsonProperty("message")
- private String message;
- @JsonProperty("observedGeneration")
- private Long observedGeneration;
- @JsonProperty("reason")
- private String reason;
- @JsonProperty("status")
- private String status;
- @JsonProperty("type")
- private String type;
- @JsonIgnore
- private Map additionalProperties = new LinkedHashMap();
-
- /**
- * No args constructor for use in serialization
- *
- */
- public OperatorConditionStatusConditions() {
- }
-
- public OperatorConditionStatusConditions(String lastTransitionTime, String message, Long observedGeneration, String reason, String status, String type) {
- super();
- this.lastTransitionTime = lastTransitionTime;
- this.message = message;
- this.observedGeneration = observedGeneration;
- this.reason = reason;
- this.status = status;
- this.type = type;
- }
-
- @JsonProperty("lastTransitionTime")
- public String getLastTransitionTime() {
- return lastTransitionTime;
- }
-
- @JsonProperty("lastTransitionTime")
- public void setLastTransitionTime(String lastTransitionTime) {
- this.lastTransitionTime = lastTransitionTime;
- }
-
- @JsonProperty("message")
- public String getMessage() {
- return message;
- }
-
- @JsonProperty("message")
- public void setMessage(String message) {
- this.message = message;
- }
-
- @JsonProperty("observedGeneration")
- public Long getObservedGeneration() {
- return observedGeneration;
- }
-
- @JsonProperty("observedGeneration")
- public void setObservedGeneration(Long observedGeneration) {
- this.observedGeneration = observedGeneration;
- }
-
- @JsonProperty("reason")
- public String getReason() {
- return reason;
- }
-
- @JsonProperty("reason")
- public void setReason(String reason) {
- this.reason = reason;
- }
-
- @JsonProperty("status")
- public String getStatus() {
- return status;
- }
-
- @JsonProperty("status")
- public void setStatus(String status) {
- this.status = status;
- }
-
- @JsonProperty("type")
- public String getType() {
- return type;
- }
-
- @JsonProperty("type")
- public void setType(String type) {
- this.type = type;
- }
-
- @JsonIgnore
- public OperatorConditionStatusConditionsBuilder edit() {
- return new OperatorConditionStatusConditionsBuilder(this);
- }
-
- @JsonIgnore
- public OperatorConditionStatusConditionsBuilder toBuilder() {
- return edit();
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- public void setAdditionalProperties(Map additionalProperties) {
- this.additionalProperties = additionalProperties;
- }
-
-}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupSpec.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupSpec.java
index f7738c37c73..61dd0e86d83 100644
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupSpec.java
+++ b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupSpec.java
@@ -61,7 +61,7 @@ public class OperatorGroupSpec implements Editable , K
{
@JsonProperty("selector")
- private OperatorGroupSpecSelector selector;
+ private LabelSelector selector;
@JsonProperty("serviceAccountName")
private String serviceAccountName;
@JsonProperty("staticProvidedAPIs")
@@ -81,7 +81,7 @@ public class OperatorGroupSpec implements Editable , K
public OperatorGroupSpec() {
}
- public OperatorGroupSpec(OperatorGroupSpecSelector selector, String serviceAccountName, Boolean staticProvidedAPIs, List targetNamespaces, String upgradeStrategy) {
+ public OperatorGroupSpec(LabelSelector selector, String serviceAccountName, Boolean staticProvidedAPIs, List targetNamespaces, String upgradeStrategy) {
super();
this.selector = selector;
this.serviceAccountName = serviceAccountName;
@@ -91,12 +91,12 @@ public OperatorGroupSpec(OperatorGroupSpecSelector selector, String serviceAccou
}
@JsonProperty("selector")
- public OperatorGroupSpecSelector getSelector() {
+ public LabelSelector getSelector() {
return selector;
}
@JsonProperty("selector")
- public void setSelector(OperatorGroupSpecSelector selector) {
+ public void setSelector(LabelSelector selector) {
this.selector = selector;
}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupSpecSMatchExpressions.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupSpecSMatchExpressions.java
deleted file mode 100644
index baa49bd7733..00000000000
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupSpecSMatchExpressions.java
+++ /dev/null
@@ -1,140 +0,0 @@
-
-package io.fabric8.openshift.api.model.operatorhub.v1;
-
-import java.util.ArrayList;
-import java.util.LinkedHashMap;
-import java.util.List;
-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.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.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({
- "key",
- "operator",
- "values"
-})
-@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)
-})
-@Generated("jsonschema2pojo")
-public class OperatorGroupSpecSMatchExpressions implements Editable , KubernetesResource
-{
-
- @JsonProperty("key")
- private String key;
- @JsonProperty("operator")
- private String operator;
- @JsonProperty("values")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List values = new ArrayList<>();
- @JsonIgnore
- private Map additionalProperties = new LinkedHashMap();
-
- /**
- * No args constructor for use in serialization
- *
- */
- public OperatorGroupSpecSMatchExpressions() {
- }
-
- public OperatorGroupSpecSMatchExpressions(String key, String operator, List values) {
- super();
- this.key = key;
- this.operator = operator;
- this.values = values;
- }
-
- @JsonProperty("key")
- public String getKey() {
- return key;
- }
-
- @JsonProperty("key")
- public void setKey(String key) {
- this.key = key;
- }
-
- @JsonProperty("operator")
- public String getOperator() {
- return operator;
- }
-
- @JsonProperty("operator")
- public void setOperator(String operator) {
- this.operator = operator;
- }
-
- @JsonProperty("values")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getValues() {
- return values;
- }
-
- @JsonProperty("values")
- public void setValues(List values) {
- this.values = values;
- }
-
- @JsonIgnore
- public OperatorGroupSpecSMatchExpressionsBuilder edit() {
- return new OperatorGroupSpecSMatchExpressionsBuilder(this);
- }
-
- @JsonIgnore
- public OperatorGroupSpecSMatchExpressionsBuilder toBuilder() {
- return edit();
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- public void setAdditionalProperties(Map additionalProperties) {
- this.additionalProperties = additionalProperties;
- }
-
-}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupSpecSelector.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupSpecSelector.java
deleted file mode 100644
index d61c5afd6c1..00000000000
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupSpecSelector.java
+++ /dev/null
@@ -1,128 +0,0 @@
-
-package io.fabric8.openshift.api.model.operatorhub.v1;
-
-import java.util.ArrayList;
-import java.util.LinkedHashMap;
-import java.util.List;
-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.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.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({
- "matchExpressions",
- "matchLabels"
-})
-@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)
-})
-@Generated("jsonschema2pojo")
-public class OperatorGroupSpecSelector implements Editable , KubernetesResource
-{
-
- @JsonProperty("matchExpressions")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List matchExpressions = new ArrayList<>();
- @JsonProperty("matchLabels")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- private Map matchLabels = new LinkedHashMap<>();
- @JsonIgnore
- private Map additionalProperties = new LinkedHashMap();
-
- /**
- * No args constructor for use in serialization
- *
- */
- public OperatorGroupSpecSelector() {
- }
-
- public OperatorGroupSpecSelector(List matchExpressions, Map matchLabels) {
- super();
- this.matchExpressions = matchExpressions;
- this.matchLabels = matchLabels;
- }
-
- @JsonProperty("matchExpressions")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getMatchExpressions() {
- return matchExpressions;
- }
-
- @JsonProperty("matchExpressions")
- public void setMatchExpressions(List matchExpressions) {
- this.matchExpressions = matchExpressions;
- }
-
- @JsonProperty("matchLabels")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- public Map getMatchLabels() {
- return matchLabels;
- }
-
- @JsonProperty("matchLabels")
- public void setMatchLabels(Map matchLabels) {
- this.matchLabels = matchLabels;
- }
-
- @JsonIgnore
- public OperatorGroupSpecSelectorBuilder edit() {
- return new OperatorGroupSpecSelectorBuilder(this);
- }
-
- @JsonIgnore
- public OperatorGroupSpecSelectorBuilder toBuilder() {
- return edit();
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- public void setAdditionalProperties(Map additionalProperties) {
- this.additionalProperties = additionalProperties;
- }
-
-}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupStatus.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupStatus.java
index 761b1ac888c..8fe41d45ab2 100644
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupStatus.java
+++ b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupStatus.java
@@ -14,6 +14,7 @@
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.Condition;
import io.fabric8.kubernetes.api.model.Container;
import io.fabric8.kubernetes.api.model.IntOrString;
import io.fabric8.kubernetes.api.model.KubernetesResource;
@@ -61,14 +62,14 @@ public class OperatorGroupStatus implements Editable
@JsonProperty("conditions")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List conditions = new ArrayList<>();
+ private List conditions = new ArrayList<>();
@JsonProperty("lastUpdated")
private String lastUpdated;
@JsonProperty("namespaces")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List namespaces = new ArrayList<>();
@JsonProperty("serviceAccountRef")
- private OperatorGroupStatusServiceAccountRef serviceAccountRef;
+ private ObjectReference serviceAccountRef;
@JsonIgnore
private Map additionalProperties = new LinkedHashMap();
@@ -79,7 +80,7 @@ public class OperatorGroupStatus implements Editable
public OperatorGroupStatus() {
}
- public OperatorGroupStatus(List conditions, String lastUpdated, List namespaces, OperatorGroupStatusServiceAccountRef serviceAccountRef) {
+ public OperatorGroupStatus(List conditions, String lastUpdated, List namespaces, ObjectReference serviceAccountRef) {
super();
this.conditions = conditions;
this.lastUpdated = lastUpdated;
@@ -89,12 +90,12 @@ public OperatorGroupStatus(List conditions, Strin
@JsonProperty("conditions")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getConditions() {
+ public List getConditions() {
return conditions;
}
@JsonProperty("conditions")
- public void setConditions(List conditions) {
+ public void setConditions(List conditions) {
this.conditions = conditions;
}
@@ -120,12 +121,12 @@ public void setNamespaces(List namespaces) {
}
@JsonProperty("serviceAccountRef")
- public OperatorGroupStatusServiceAccountRef getServiceAccountRef() {
+ public ObjectReference getServiceAccountRef() {
return serviceAccountRef;
}
@JsonProperty("serviceAccountRef")
- public void setServiceAccountRef(OperatorGroupStatusServiceAccountRef serviceAccountRef) {
+ public void setServiceAccountRef(ObjectReference serviceAccountRef) {
this.serviceAccountRef = serviceAccountRef;
}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupStatusConditions.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupStatusConditions.java
deleted file mode 100644
index e05c086d7a6..00000000000
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupStatusConditions.java
+++ /dev/null
@@ -1,178 +0,0 @@
-
-package io.fabric8.openshift.api.model.operatorhub.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.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.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({
- "lastTransitionTime",
- "message",
- "observedGeneration",
- "reason",
- "status",
- "type"
-})
-@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)
-})
-@Generated("jsonschema2pojo")
-public class OperatorGroupStatusConditions implements Editable , KubernetesResource
-{
-
- @JsonProperty("lastTransitionTime")
- private String lastTransitionTime;
- @JsonProperty("message")
- private String message;
- @JsonProperty("observedGeneration")
- private Long observedGeneration;
- @JsonProperty("reason")
- private String reason;
- @JsonProperty("status")
- private String status;
- @JsonProperty("type")
- private String type;
- @JsonIgnore
- private Map additionalProperties = new LinkedHashMap();
-
- /**
- * No args constructor for use in serialization
- *
- */
- public OperatorGroupStatusConditions() {
- }
-
- public OperatorGroupStatusConditions(String lastTransitionTime, String message, Long observedGeneration, String reason, String status, String type) {
- super();
- this.lastTransitionTime = lastTransitionTime;
- this.message = message;
- this.observedGeneration = observedGeneration;
- this.reason = reason;
- this.status = status;
- this.type = type;
- }
-
- @JsonProperty("lastTransitionTime")
- public String getLastTransitionTime() {
- return lastTransitionTime;
- }
-
- @JsonProperty("lastTransitionTime")
- public void setLastTransitionTime(String lastTransitionTime) {
- this.lastTransitionTime = lastTransitionTime;
- }
-
- @JsonProperty("message")
- public String getMessage() {
- return message;
- }
-
- @JsonProperty("message")
- public void setMessage(String message) {
- this.message = message;
- }
-
- @JsonProperty("observedGeneration")
- public Long getObservedGeneration() {
- return observedGeneration;
- }
-
- @JsonProperty("observedGeneration")
- public void setObservedGeneration(Long observedGeneration) {
- this.observedGeneration = observedGeneration;
- }
-
- @JsonProperty("reason")
- public String getReason() {
- return reason;
- }
-
- @JsonProperty("reason")
- public void setReason(String reason) {
- this.reason = reason;
- }
-
- @JsonProperty("status")
- public String getStatus() {
- return status;
- }
-
- @JsonProperty("status")
- public void setStatus(String status) {
- this.status = status;
- }
-
- @JsonProperty("type")
- public String getType() {
- return type;
- }
-
- @JsonProperty("type")
- public void setType(String type) {
- this.type = type;
- }
-
- @JsonIgnore
- public OperatorGroupStatusConditionsBuilder edit() {
- return new OperatorGroupStatusConditionsBuilder(this);
- }
-
- @JsonIgnore
- public OperatorGroupStatusConditionsBuilder toBuilder() {
- return edit();
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- public void setAdditionalProperties(Map additionalProperties) {
- this.additionalProperties = additionalProperties;
- }
-
-}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupStatusServiceAccountRef.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupStatusServiceAccountRef.java
deleted file mode 100644
index 08d29b8ef3e..00000000000
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorGroupStatusServiceAccountRef.java
+++ /dev/null
@@ -1,192 +0,0 @@
-
-package io.fabric8.openshift.api.model.operatorhub.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.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.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({
- "apiVersion",
- "kind",
- "fieldPath",
- "name",
- "namespace",
- "resourceVersion",
- "uid"
-})
-@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)
-})
-@Generated("jsonschema2pojo")
-public class OperatorGroupStatusServiceAccountRef implements Editable , KubernetesResource
-{
-
- @JsonProperty("apiVersion")
- private String apiVersion;
- @JsonProperty("fieldPath")
- private String fieldPath;
- @JsonProperty("kind")
- private String kind;
- @JsonProperty("name")
- private String name;
- @JsonProperty("namespace")
- private String namespace;
- @JsonProperty("resourceVersion")
- private String resourceVersion;
- @JsonProperty("uid")
- private String uid;
- @JsonIgnore
- private Map additionalProperties = new LinkedHashMap();
-
- /**
- * No args constructor for use in serialization
- *
- */
- public OperatorGroupStatusServiceAccountRef() {
- }
-
- public OperatorGroupStatusServiceAccountRef(String apiVersion, String fieldPath, String kind, String name, String namespace, String resourceVersion, String uid) {
- super();
- this.apiVersion = apiVersion;
- this.fieldPath = fieldPath;
- this.kind = kind;
- this.name = name;
- this.namespace = namespace;
- this.resourceVersion = resourceVersion;
- this.uid = uid;
- }
-
- @JsonProperty("apiVersion")
- public String getApiVersion() {
- return apiVersion;
- }
-
- @JsonProperty("apiVersion")
- public void setApiVersion(String apiVersion) {
- this.apiVersion = apiVersion;
- }
-
- @JsonProperty("fieldPath")
- public String getFieldPath() {
- return fieldPath;
- }
-
- @JsonProperty("fieldPath")
- public void setFieldPath(String fieldPath) {
- this.fieldPath = fieldPath;
- }
-
- @JsonProperty("kind")
- public String getKind() {
- return kind;
- }
-
- @JsonProperty("kind")
- public void setKind(String kind) {
- this.kind = kind;
- }
-
- @JsonProperty("name")
- public String getName() {
- return name;
- }
-
- @JsonProperty("name")
- public void setName(String name) {
- this.name = name;
- }
-
- @JsonProperty("namespace")
- public String getNamespace() {
- return namespace;
- }
-
- @JsonProperty("namespace")
- public void setNamespace(String namespace) {
- this.namespace = namespace;
- }
-
- @JsonProperty("resourceVersion")
- public String getResourceVersion() {
- return resourceVersion;
- }
-
- @JsonProperty("resourceVersion")
- public void setResourceVersion(String resourceVersion) {
- this.resourceVersion = resourceVersion;
- }
-
- @JsonProperty("uid")
- public String getUid() {
- return uid;
- }
-
- @JsonProperty("uid")
- public void setUid(String uid) {
- this.uid = uid;
- }
-
- @JsonIgnore
- public OperatorGroupStatusServiceAccountRefBuilder edit() {
- return new OperatorGroupStatusServiceAccountRefBuilder(this);
- }
-
- @JsonIgnore
- public OperatorGroupStatusServiceAccountRefBuilder toBuilder() {
- return edit();
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- public void setAdditionalProperties(Map additionalProperties) {
- this.additionalProperties = additionalProperties;
- }
-
-}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/PackageManifestSpec.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorSpec.java
similarity index 89%
rename from kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/PackageManifestSpec.java
rename to kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorSpec.java
index f99f65d5fb9..e7fa1ab97a5 100644
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/PackageManifestSpec.java
+++ b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorSpec.java
@@ -1,5 +1,5 @@
-package io.fabric8.openshift.api.model.operatorhub.lifecyclemanager.v1;
+package io.fabric8.openshift.api.model.operatorhub.v1;
import java.util.LinkedHashMap;
import java.util.Map;
@@ -50,19 +50,19 @@
@BuildableReference(PersistentVolumeClaim.class)
})
@Generated("jsonschema2pojo")
-public class PackageManifestSpec implements Editable , KubernetesResource
+public class OperatorSpec implements Editable , KubernetesResource
{
@JsonIgnore
private Map additionalProperties = new LinkedHashMap();
@JsonIgnore
- public PackageManifestSpecBuilder edit() {
- return new PackageManifestSpecBuilder(this);
+ public OperatorSpecBuilder edit() {
+ return new OperatorSpecBuilder(this);
}
@JsonIgnore
- public PackageManifestSpecBuilder toBuilder() {
+ public OperatorSpecBuilder toBuilder() {
return edit();
}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatus.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatus.java
index 4601495d8da..f716beb8f3b 100644
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatus.java
+++ b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatus.java
@@ -55,7 +55,7 @@ public class OperatorStatus implements Editable , Kuberne
{
@JsonProperty("components")
- private OperatorStatusComponents components;
+ private Components components;
@JsonIgnore
private Map additionalProperties = new LinkedHashMap();
@@ -66,18 +66,18 @@ public class OperatorStatus implements Editable , Kuberne
public OperatorStatus() {
}
- public OperatorStatus(OperatorStatusComponents components) {
+ public OperatorStatus(Components components) {
super();
this.components = components;
}
@JsonProperty("components")
- public OperatorStatusComponents getComponents() {
+ public Components getComponents() {
return components;
}
@JsonProperty("components")
- public void setComponents(OperatorStatusComponents components) {
+ public void setComponents(Components components) {
this.components = components;
}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatusCLSMatchExpressions.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatusCLSMatchExpressions.java
deleted file mode 100644
index 1fdd5f92c73..00000000000
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatusCLSMatchExpressions.java
+++ /dev/null
@@ -1,140 +0,0 @@
-
-package io.fabric8.openshift.api.model.operatorhub.v1;
-
-import java.util.ArrayList;
-import java.util.LinkedHashMap;
-import java.util.List;
-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.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.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({
- "key",
- "operator",
- "values"
-})
-@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)
-})
-@Generated("jsonschema2pojo")
-public class OperatorStatusCLSMatchExpressions implements Editable , KubernetesResource
-{
-
- @JsonProperty("key")
- private String key;
- @JsonProperty("operator")
- private String operator;
- @JsonProperty("values")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List values = new ArrayList<>();
- @JsonIgnore
- private Map additionalProperties = new LinkedHashMap();
-
- /**
- * No args constructor for use in serialization
- *
- */
- public OperatorStatusCLSMatchExpressions() {
- }
-
- public OperatorStatusCLSMatchExpressions(String key, String operator, List values) {
- super();
- this.key = key;
- this.operator = operator;
- this.values = values;
- }
-
- @JsonProperty("key")
- public String getKey() {
- return key;
- }
-
- @JsonProperty("key")
- public void setKey(String key) {
- this.key = key;
- }
-
- @JsonProperty("operator")
- public String getOperator() {
- return operator;
- }
-
- @JsonProperty("operator")
- public void setOperator(String operator) {
- this.operator = operator;
- }
-
- @JsonProperty("values")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getValues() {
- return values;
- }
-
- @JsonProperty("values")
- public void setValues(List values) {
- this.values = values;
- }
-
- @JsonIgnore
- public OperatorStatusCLSMatchExpressionsBuilder edit() {
- return new OperatorStatusCLSMatchExpressionsBuilder(this);
- }
-
- @JsonIgnore
- public OperatorStatusCLSMatchExpressionsBuilder toBuilder() {
- return edit();
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- public void setAdditionalProperties(Map additionalProperties) {
- this.additionalProperties = additionalProperties;
- }
-
-}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatusCLabelSelector.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatusCLabelSelector.java
deleted file mode 100644
index f7cf7ba708b..00000000000
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatusCLabelSelector.java
+++ /dev/null
@@ -1,128 +0,0 @@
-
-package io.fabric8.openshift.api.model.operatorhub.v1;
-
-import java.util.ArrayList;
-import java.util.LinkedHashMap;
-import java.util.List;
-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.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.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({
- "matchExpressions",
- "matchLabels"
-})
-@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)
-})
-@Generated("jsonschema2pojo")
-public class OperatorStatusCLabelSelector implements Editable , KubernetesResource
-{
-
- @JsonProperty("matchExpressions")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List matchExpressions = new ArrayList<>();
- @JsonProperty("matchLabels")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- private Map matchLabels = new LinkedHashMap<>();
- @JsonIgnore
- private Map additionalProperties = new LinkedHashMap();
-
- /**
- * No args constructor for use in serialization
- *
- */
- public OperatorStatusCLabelSelector() {
- }
-
- public OperatorStatusCLabelSelector(List matchExpressions, Map matchLabels) {
- super();
- this.matchExpressions = matchExpressions;
- this.matchLabels = matchLabels;
- }
-
- @JsonProperty("matchExpressions")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getMatchExpressions() {
- return matchExpressions;
- }
-
- @JsonProperty("matchExpressions")
- public void setMatchExpressions(List matchExpressions) {
- this.matchExpressions = matchExpressions;
- }
-
- @JsonProperty("matchLabels")
- @JsonInclude(JsonInclude.Include.NON_EMPTY)
- public Map getMatchLabels() {
- return matchLabels;
- }
-
- @JsonProperty("matchLabels")
- public void setMatchLabels(Map matchLabels) {
- this.matchLabels = matchLabels;
- }
-
- @JsonIgnore
- public OperatorStatusCLabelSelectorBuilder edit() {
- return new OperatorStatusCLabelSelectorBuilder(this);
- }
-
- @JsonIgnore
- public OperatorStatusCLabelSelectorBuilder toBuilder() {
- return edit();
- }
-
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperty(String name, Object value) {
- this.additionalProperties.put(name, value);
- }
-
- public void setAdditionalProperties(Map additionalProperties) {
- this.additionalProperties = additionalProperties;
- }
-
-}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatusCRefs.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/RichReference.java
similarity index 88%
rename from kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatusCRefs.java
rename to kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/RichReference.java
index 84ae6491a04..770c906a41a 100644
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/OperatorStatusCRefs.java
+++ b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1/RichReference.java
@@ -60,14 +60,14 @@
@BuildableReference(PersistentVolumeClaim.class)
})
@Generated("jsonschema2pojo")
-public class OperatorStatusCRefs implements Editable , KubernetesResource
+public class RichReference implements Editable , KubernetesResource
{
@JsonProperty("apiVersion")
private String apiVersion;
@JsonProperty("conditions")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List conditions = new ArrayList<>();
+ private List conditions = new ArrayList<>();
@JsonProperty("fieldPath")
private String fieldPath;
@JsonProperty("kind")
@@ -87,10 +87,10 @@ public class OperatorStatusCRefs implements Editable
* No args constructor for use in serialization
*
*/
- public OperatorStatusCRefs() {
+ public RichReference() {
}
- public OperatorStatusCRefs(String apiVersion, List conditions, String fieldPath, String kind, String name, String namespace, String resourceVersion, String uid) {
+ public RichReference(String apiVersion, List conditions, String fieldPath, String kind, String name, String namespace, String resourceVersion, String uid) {
super();
this.apiVersion = apiVersion;
this.conditions = conditions;
@@ -114,12 +114,12 @@ public void setApiVersion(String apiVersion) {
@JsonProperty("conditions")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
- public List getConditions() {
+ public List getConditions() {
return conditions;
}
@JsonProperty("conditions")
- public void setConditions(List conditions) {
+ public void setConditions(List conditions) {
this.conditions = conditions;
}
@@ -184,12 +184,12 @@ public void setUid(String uid) {
}
@JsonIgnore
- public OperatorStatusCRefsBuilder edit() {
- return new OperatorStatusCRefsBuilder(this);
+ public RichReferenceBuilder edit() {
+ return new RichReferenceBuilder(this);
}
@JsonIgnore
- public OperatorStatusCRefsBuilder toBuilder() {
+ public RichReferenceBuilder toBuilder() {
return edit();
}
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/AppLink.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1alpha1/AppLink.java
similarity index 98%
rename from kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/AppLink.java
rename to kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1alpha1/AppLink.java
index 6d70f291960..a0c9a2c7fc0 100644
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/lifecyclemanager/v1/AppLink.java
+++ b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1alpha1/AppLink.java
@@ -1,5 +1,5 @@
-package io.fabric8.openshift.api.model.operatorhub.lifecyclemanager.v1;
+package io.fabric8.openshift.api.model.operatorhub.v1alpha1;
import java.util.LinkedHashMap;
import java.util.Map;
diff --git a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1alpha1/InstallPlanStatusBundleLookups.java b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1alpha1/BundleLookup.java
similarity index 82%
rename from kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1alpha1/InstallPlanStatusBundleLookups.java
rename to kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1alpha1/BundleLookup.java
index 7eb06478d34..571090c544b 100644
--- a/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1alpha1/InstallPlanStatusBundleLookups.java
+++ b/kubernetes-model-generator/openshift-model-operatorhub/src/generated/java/io/fabric8/openshift/api/model/operatorhub/v1alpha1/BundleLookup.java
@@ -58,14 +58,14 @@
@BuildableReference(PersistentVolumeClaim.class)
})
@Generated("jsonschema2pojo")
-public class InstallPlanStatusBundleLookups implements Editable , KubernetesResource
+public class BundleLookup implements Editable , KubernetesResource
{
@JsonProperty("catalogSourceRef")
- private InstallPlanStatusBLCatalogSourceRef catalogSourceRef;
+ private ObjectReference catalogSourceRef;
@JsonProperty("conditions")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
- private List conditions = new ArrayList<>();
+ private List