diff --git a/.helmignore b/.helmignore index 3070d81..16fb66e 100644 --- a/.helmignore +++ b/.helmignore @@ -1,2 +1,3 @@ .github .git +tests \ No newline at end of file diff --git a/templates/product-info.yaml b/templates/product-info.yaml index 88f721b..6ba02c5 100644 --- a/templates/product-info.yaml +++ b/templates/product-info.yaml @@ -1,6 +1,6 @@ {{- if .Values.info.enabled }} {{- if eq .Values.info.version "v1" }} -apiVersion: onecx.github.io/v1 +apiVersion: onecx.tkit.org/v1 kind: Product metadata: name: {{ template "product.fullname" $ }} @@ -11,9 +11,18 @@ spec: name: {{ template "product.fullname" $ }} description: {{ .Values.info.data.description }} version: {{ .Values.version }} + {{- if .Values.info.data.imageUrl }} imageUrl: {{ .Values.info.data.imageUrl }} + {{- end }} + {{- if .Values.info.data.iconName }} iconName: {{ .Values.info.data.iconName }} + {{- end }} displayName: {{ .Values.info.data.displayName }} + {{- if .Values.info.data.basePath }} basePath: {{ .Values.info.data.basePath }} + {{- end }} + {{- if .Values.info.data.classifications }} + classifications: {{ .Values.info.data.classifications }} + {{- end }} {{- end }} {{- end }} \ No newline at end of file diff --git a/tests/values.yaml b/tests/values.yaml new file mode 100644 index 0000000..dcbbcc7 --- /dev/null +++ b/tests/values.yaml @@ -0,0 +1,23 @@ +# product version +version: 0.0.0 + +# product info +info: + # disable or enable product info resource + enabled: true + # version of the product info resoruce + version: "v1" + # data for the product info + data: + # product description + description: default product description + # product image URL + imageUrl: default + # product icon name + iconName: a + # product display name + displayName: default display name + # product base path + basePath: path + # product classifications list + classifications: [] diff --git a/values.yaml b/values.yaml index 3a6b761..42979ba 100644 --- a/values.yaml +++ b/values.yaml @@ -12,10 +12,12 @@ info: # product description description: default product description # product image URL - imageUrl: default image URL + imageUrl: # product icon name - iconName: default icon name + iconName: # product display name displayName: default display name # product base path - basePath: default base path \ No newline at end of file + basePath: + # product classifications list + classifications: [] \ No newline at end of file