diff --git a/pom.xml b/pom.xml index f3350a1..b041214 100644 --- a/pom.xml +++ b/pom.xml @@ -121,7 +121,7 @@ - https://raw.githubusercontent.com/onecx/onecx-product-store-svc/feat/remote_components/src/main/openapi/onecx-product-store-operator-mfe-v1.yaml + https://raw.githubusercontent.com/onecx/onecx-product-store-svc/main/src/main/openapi/onecx-product-store-operator-mfe-v1.yaml target/tmp/openapi onecx-product-store-operator-mfe-v1.yaml true diff --git a/src/main/helm/crds/microfrontends.onecx.tkit.org-v1.yml b/src/main/helm/crds/microfrontends.onecx.tkit.org-v1.yml index 33f8f3f..628768e 100644 --- a/src/main/helm/crds/microfrontends.onecx.tkit.org-v1.yml +++ b/src/main/helm/crds/microfrontends.onecx.tkit.org-v1.yml @@ -29,6 +29,8 @@ spec: type: array contact: type: string + deprecated: + type: boolean description: type: string endpoints: @@ -58,6 +60,11 @@ spec: type: string technology: type: string + type: + enum: + - COMPONENT + - MODULE + type: string type: object status: properties: diff --git a/src/main/java/org/tkit/onecx/product/store/mfe/operator/MicrofrontendSpec.java b/src/main/java/org/tkit/onecx/product/store/mfe/operator/MicrofrontendSpec.java index 8485ccb..948d217 100644 --- a/src/main/java/org/tkit/onecx/product/store/mfe/operator/MicrofrontendSpec.java +++ b/src/main/java/org/tkit/onecx/product/store/mfe/operator/MicrofrontendSpec.java @@ -57,9 +57,20 @@ public class MicrofrontendSpec { @JsonProperty("type") private Microfrontend type; + @JsonProperty(value = "deprecated", defaultValue = "false") + private boolean deprecated = false; + @JsonProperty("endpoints") private List endpoints; + public void setDeprecated(boolean deprecated) { + this.deprecated = deprecated; + } + + public boolean isDeprecated() { + return deprecated; + } + public Microfrontend getType() { return type; }