mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/osclass] Add global StorageClass to osclass (#16412)
Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
cbd7038f7a
commit
18184d6e88
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: osclass
|
||||
version: 6.0.1
|
||||
version: 6.1.0
|
||||
appVersion: 3.7.4
|
||||
description: Osclass is a php script that allows you to quickly create and manage
|
||||
your own free classifieds site.
|
||||
|
||||
@@ -51,6 +51,7 @@ The following table lists the configurable parameters of the Osclass chart and t
|
||||
|------------------------------------|------------------------------------------|-------------------------------------------------------- |
|
||||
| `global.imageRegistry` | Global Docker image registry | `nil` |
|
||||
| `global.imagePullSecrets` | Global Docker registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) |
|
||||
| `global.storageClass` | Global storage class for dynamic provisioning | `nil` |
|
||||
| `image.registry` | Osclass image registry | `docker.io` |
|
||||
| `image.repository` | Osclass Image name | `bitnami/osclass` |
|
||||
| `image.tag` | Osclass Image tag | `{TAG_NAME}` |
|
||||
|
||||
@@ -140,3 +140,23 @@ imagePullSecrets:
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Return the proper Storage Class
|
||||
*/}}
|
||||
{{- define "osclass.storageClass" -}}
|
||||
{{- $storageClass := "" }}
|
||||
{{- if .Values.persistence.osclass.storageClass -}}
|
||||
{{- $storageClass = .Values.persistence.osclass.storageClass -}}
|
||||
{{- end -}}
|
||||
{{- if .Values.global -}}
|
||||
{{- if .Values.global.storageClass -}}
|
||||
{{- $storageClass = .Values.global.storageClass -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- if (eq "-" $storageClass) -}}
|
||||
{{- printf "\"\"" -}}
|
||||
{{- else }}
|
||||
{{- printf "%s" $storageClass -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -14,11 +14,5 @@ spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.persistence.osclass.size | quote }}
|
||||
{{- if .Values.persistence.osclass.storageClass }}
|
||||
{{- if (eq "-" .Values.persistence.osclass.storageClass) }}
|
||||
storageClassName: ""
|
||||
{{- else }}
|
||||
storageClassName: "{{ .Values.persistence.osclass.storageClass }}"
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
storageClassName: {{ include "osclass.storageClass" . }}
|
||||
{{- end -}}
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
# imageRegistry: myRegistryName
|
||||
# imagePullSecrets:
|
||||
# - myRegistryKeySecretName
|
||||
# storageClass: myStorageClass
|
||||
|
||||
## Bitnami Osclass image version
|
||||
## ref: https://hub.docker.com/r/bitnami/osclass/tags/
|
||||
|
||||
Reference in New Issue
Block a user