diff --git a/instance-applications/120-ibm-db2u-database/templates/00-StorageClasses.yaml b/instance-applications/120-ibm-db2u-database/templates/00-StorageClasses.yaml new file mode 100644 index 000000000..99fbc0177 --- /dev/null +++ b/instance-applications/120-ibm-db2u-database/templates/00-StorageClasses.yaml @@ -0,0 +1,20 @@ +{{- /* +When inside the range loop below, make sure you prefix any references to chart values NOT under .Values.storage_class_definitions with $. +For example: {{ $.Values.account.id }} (instead of {{ .Values.account.id }} ) +*/}} + +{{- range $key, $value := .Values.storage_class_definitions }} +--- +kind: StorageClass +apiVersion: storage.k8s.io/v1 +metadata: + name: {{ $key }} + annotations: + argocd.argoproj.io/sync-wave: "00" +{{- if $.Values.custom_labels }} + labels: +{{ $.Values.custom_labels | toYaml | indent 4 }} +{{- end }} +provisioner: {{ $value.provisioner }} +parameters: {{ $value.parameters | toYaml | nindent 14 }} +{{- end }} \ No newline at end of file diff --git a/instance-applications/500-540-ibm-mas-suite-app-install/templates/00-StorageClasses.yaml b/instance-applications/500-540-ibm-mas-suite-app-install/templates/00-StorageClasses.yaml new file mode 100644 index 000000000..99fbc0177 --- /dev/null +++ b/instance-applications/500-540-ibm-mas-suite-app-install/templates/00-StorageClasses.yaml @@ -0,0 +1,20 @@ +{{- /* +When inside the range loop below, make sure you prefix any references to chart values NOT under .Values.storage_class_definitions with $. +For example: {{ $.Values.account.id }} (instead of {{ .Values.account.id }} ) +*/}} + +{{- range $key, $value := .Values.storage_class_definitions }} +--- +kind: StorageClass +apiVersion: storage.k8s.io/v1 +metadata: + name: {{ $key }} + annotations: + argocd.argoproj.io/sync-wave: "00" +{{- if $.Values.custom_labels }} + labels: +{{ $.Values.custom_labels | toYaml | indent 4 }} +{{- end }} +provisioner: {{ $value.provisioner }} +parameters: {{ $value.parameters | toYaml | nindent 14 }} +{{- end }} \ No newline at end of file diff --git a/root-applications/ibm-mas-instance-root/templates/510-ibm-mas-masapp-visualinspection-install.yaml b/root-applications/ibm-mas-instance-root/templates/510-ibm-mas-masapp-visualinspection-install.yaml index 2aca617fb..97c372579 100644 --- a/root-applications/ibm-mas-instance-root/templates/510-ibm-mas-masapp-visualinspection-install.yaml +++ b/root-applications/ibm-mas-instance-root/templates/510-ibm-mas-masapp-visualinspection-install.yaml @@ -61,6 +61,9 @@ spec: custom_labels: {{ .Values.custom_labels | toYaml | nindent 14 }} {{- end }} gpu_request_quota: "{{ .Values.ibm_suite_app_visualinspection_install.gpu_request_quota }}" + {{- if .Values.ibm_suite_app_visualinspection_install.storage_class_definitions }} + storage_class_definitions: {{ .Values.ibm_suite_app_visualinspection_install.storage_class_definitions | toYaml | nindent 14 }} + {{- end }} junitreporter: reporter_name: "ibm-mas-suite-app-install-mvi" cluster_id: "{{ .Values.cluster.id }}"