Skip to content

Commit

Permalink
feat: migration org.tkit
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejpetras committed Feb 1, 2024
1 parent e66c849 commit 8d610e1
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 4 deletions.
1 change: 1 addition & 0 deletions .helmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.github
.git
tests
11 changes: 10 additions & 1 deletion templates/product-info.yaml
Original file line number Diff line number Diff line change
@@ -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" $ }}
Expand All @@ -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 }}
23 changes: 23 additions & 0 deletions tests/values.yaml
Original file line number Diff line number Diff line change
@@ -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: []
8 changes: 5 additions & 3 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
basePath:
# product classifications list
classifications: []

0 comments on commit 8d610e1

Please sign in to comment.