-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Minor] Support generated StorageClasses (#210)
- Loading branch information
1 parent
548d816
commit c185579
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
instance-applications/120-ibm-db2u-database/templates/00-StorageClasses.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
20 changes: 20 additions & 0 deletions
20
instance-applications/500-540-ibm-mas-suite-app-install/templates/00-StorageClasses.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters