Skip to content

Commit

Permalink
feat: add mfe type
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejpetras committed Apr 16, 2024
1 parent a48cb80 commit ae652ca
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
</execution>
</executions>
<configuration>
<url>https://raw.githubusercontent.com/onecx/onecx-product-store-svc/feat/remote_components/src/main/openapi/onecx-product-store-operator-mfe-v1.yaml</url>
<url>https://raw.githubusercontent.com/onecx/onecx-product-store-svc/main/src/main/openapi/onecx-product-store-operator-mfe-v1.yaml</url>
<outputDirectory>target/tmp/openapi</outputDirectory>
<outputFileName>onecx-product-store-operator-mfe-v1.yaml</outputFileName>
<skipCache>true</skipCache>
Expand Down
7 changes: 7 additions & 0 deletions src/main/helm/crds/microfrontends.onecx.tkit.org-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ spec:
type: array
contact:
type: string
deprecated:
type: boolean
description:
type: string
endpoints:
Expand Down Expand Up @@ -58,6 +60,11 @@ spec:
type: string
technology:
type: string
type:
enum:
- COMPONENT
- MODULE
type: string
type: object
status:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<MicrofrontendEndpointSpec> endpoints;

public void setDeprecated(boolean deprecated) {
this.deprecated = deprecated;
}

public boolean isDeprecated() {
return deprecated;
}

public Microfrontend getType() {
return type;
}
Expand Down

0 comments on commit ae652ca

Please sign in to comment.