Skip to content

Commit

Permalink
[Minor] Support generated StorageClasses (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomklapiscak authored Oct 30, 2024
1 parent 548d816 commit c185579
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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 }}
Original file line number Diff line number Diff line change
@@ -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 }}
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit c185579

Please sign in to comment.