Skip to content

Commit

Permalink
feat: update domain model
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejpetras committed Dec 8, 2023
1 parent fdc427f commit d4e2401
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ on:
jobs:
build:
uses: onecx/ci-quarkus/.github/workflows/build.yml@v1
secrets: inherit
secrets: inherit
with:
helmEventTargetRepository: onecx/onecx-product-store
2 changes: 1 addition & 1 deletion src/main/helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
apiVersion: v2
name: onecx-product-store-operator
version: 0.0.0
appVersion: 0.0.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,37 @@
package io.github.onecx.product.store.operator;

import java.util.Set;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class ProductSpec {

@JsonProperty("name")
@JsonProperty(value = "name", required = true)
private String name;

@JsonProperty("base-path")
@JsonProperty(value = "basePath", required = true)
private String basePath;

@JsonProperty("description")
private String description;

@JsonProperty("image-url")
@JsonProperty("imageUrl")
private String imageUrl;

@JsonProperty(value = "version", required = true)
private String version;

@JsonProperty("displayName")
private String displayName;

@JsonProperty("iconName")
private String iconName;

@JsonProperty("classifications")
private Set<String> classifications;

public String getName() {
return name;
}
Expand Down Expand Up @@ -49,4 +63,36 @@ public String getImageUrl() {
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}

public Set<String> getClassifications() {
return classifications;
}

public void setClassifications(Set<String> classifications) {
this.classifications = classifications;
}

public String getDisplayName() {
return displayName;
}

public void setDisplayName(String displayName) {
this.displayName = displayName;
}

public String getIconName() {
return iconName;
}

public void setIconName(String iconName) {
this.iconName = iconName;
}

public String getVersion() {
return version;
}

public void setVersion(String version) {
this.version = version;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ private static ProductSpec createSpec(String name, String basePath) {
ProductSpec spec = new ProductSpec();
spec.setName(name);
spec.setBasePath(basePath);
spec.setVersion("0.0.0");
spec.setDescription("description");
spec.setImageUrl("imageUrl");
return spec;
Expand Down

0 comments on commit d4e2401

Please sign in to comment.