mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
Refactor StorageClass template to support old Helm versions
Signed-off-by: miguelaeh <macabrera@bitnami.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: cassandra
|
name: cassandra
|
||||||
version: 3.3.0
|
version: 3.3.1
|
||||||
appVersion: 3.11.4
|
appVersion: 3.11.4
|
||||||
description: Apache Cassandra is a free and open-source distributed database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure. Cassandra offers robust support for clusters spanning multiple datacenters, with asynchronous masterless replication allowing low latency operations for all clients.
|
description: Apache Cassandra is a free and open-source distributed database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure. Cassandra offers robust support for clusters spanning multiple datacenters, with asynchronous masterless replication allowing low latency operations for all clients.
|
||||||
icon: https://bitnami.com/assets/stacks/cassandra/img/cassandra-stack-220x234.png
|
icon: https://bitnami.com/assets/stacks/cassandra/img/cassandra-stack-220x234.png
|
||||||
|
|||||||
@@ -178,18 +178,33 @@ Also, we can't use a single if because lazy evaluation is not an option
|
|||||||
Return the proper Storage Class
|
Return the proper Storage Class
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "cassandra.storageClass" -}}
|
{{- define "cassandra.storageClass" -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if .Values.persistence.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = .Values.persistence.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: consul
|
name: consul
|
||||||
version: 5.3.0
|
version: 5.3.1
|
||||||
appVersion: 1.5.3
|
appVersion: 1.5.3
|
||||||
description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and configuration easy.
|
description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and configuration easy.
|
||||||
home: https://www.consul.io/
|
home: https://www.consul.io/
|
||||||
|
|||||||
@@ -144,18 +144,33 @@ Also, we can't use a single if because lazy evaluation is not an option
|
|||||||
Return the proper Storage Class
|
Return the proper Storage Class
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "consul.storageClass" -}}
|
{{- define "consul.storageClass" -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if .Values.persistence.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = .Values.persistence.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: elasticsearch
|
name: elasticsearch
|
||||||
version: 6.2.0
|
version: 6.2.1
|
||||||
appVersion: 7.3.0
|
appVersion: 7.3.0
|
||||||
description: A highly scalable open-source full-text search and analytics engine
|
description: A highly scalable open-source full-text search and analytics engine
|
||||||
keywords:
|
keywords:
|
||||||
|
|||||||
@@ -227,18 +227,33 @@ Also, we can't use a single if because lazy evaluation is not an option
|
|||||||
Return the proper Storage Class
|
Return the proper Storage Class
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "elasticsearch.data.storageClass" -}}
|
{{- define "elasticsearch.data.storageClass" -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if .Values.data.persistence.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = .Values.data.persistence.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.data.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.data.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.data.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.data.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.data.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.data.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: etcd
|
name: etcd
|
||||||
version: 4.3.0
|
version: 4.3.1
|
||||||
appVersion: 3.3.13
|
appVersion: 3.3.13
|
||||||
description: etcd is a distributed key value store that provides a reliable way to store data across a cluster of machines
|
description: etcd is a distributed key value store that provides a reliable way to store data across a cluster of machines
|
||||||
keywords:
|
keywords:
|
||||||
|
|||||||
@@ -246,18 +246,33 @@ Also, we can't use a single if because lazy evaluation is not an option
|
|||||||
Return the proper Storage Class
|
Return the proper Storage Class
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "etcd.storageClass" -}}
|
{{- define "etcd.storageClass" -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if .Values.persistence.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = .Values.persistence.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: harbor
|
name: harbor
|
||||||
version: 2.5.0
|
version: 2.5.1
|
||||||
appVersion: 1.8.1
|
appVersion: 1.8.1
|
||||||
description: Harbor is an an open source trusted cloud native registry project that stores, signs, and scans content
|
description: Harbor is an an open source trusted cloud native registry project that stores, signs, and scans content
|
||||||
keywords:
|
keywords:
|
||||||
|
|||||||
@@ -702,19 +702,34 @@ Return the proper Storage Class for chartmuseum
|
|||||||
*/}}
|
*/}}
|
||||||
{{- define "harbor.chartmuseum.storageClass" -}}
|
{{- define "harbor.chartmuseum.storageClass" -}}
|
||||||
{{- $chartmuseum := .Values.persistence.persistentVolumeClaim.chartmuseum -}}
|
{{- $chartmuseum := .Values.persistence.persistentVolumeClaim.chartmuseum -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if $chartmuseum.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = $chartmuseum.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if $chartmuseum.storageClass -}}
|
||||||
|
{{- if (eq "-" $chartmuseum.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" $chartmuseum.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if $chartmuseum.storageClass -}}
|
||||||
|
{{- if (eq "-" $chartmuseum.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" $chartmuseum.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
@@ -723,19 +738,34 @@ Return the proper Storage Class for jobservice
|
|||||||
*/}}
|
*/}}
|
||||||
{{- define "harbor.jobservice.storageClass" -}}
|
{{- define "harbor.jobservice.storageClass" -}}
|
||||||
{{- $jobservice := .Values.persistence.persistentVolumeClaim.jobservice -}}
|
{{- $jobservice := .Values.persistence.persistentVolumeClaim.jobservice -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if $jobservice.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = $jobservice.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if $jobservice.storageClass -}}
|
||||||
|
{{- if (eq "-" $jobservice.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" $jobservice.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if $jobservice.storageClass -}}
|
||||||
|
{{- if (eq "-" $jobservice.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" $jobservice.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
@@ -744,18 +774,33 @@ Return the proper Storage Class for registry
|
|||||||
*/}}
|
*/}}
|
||||||
{{- define "harbor.registry.storageClass" -}}
|
{{- define "harbor.registry.storageClass" -}}
|
||||||
{{- $registry := .Values.persistence.persistentVolumeClaim.registry -}}
|
{{- $registry := .Values.persistence.persistentVolumeClaim.registry -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if $registry.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = $registry.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if $registry.storageClass -}}
|
||||||
|
{{- if (eq "-" $registry.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" $registry.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if $registry.storageClass -}}
|
||||||
|
{{- if (eq "-" $registry.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" $registry.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: jenkins
|
name: jenkins
|
||||||
version: 3.3.0
|
version: 3.3.1
|
||||||
appVersion: 2.176.2
|
appVersion: 2.176.2
|
||||||
description: The leading open source automation server
|
description: The leading open source automation server
|
||||||
keywords:
|
keywords:
|
||||||
|
|||||||
@@ -115,18 +115,33 @@ imagePullSecrets:
|
|||||||
Return the proper Storage Class
|
Return the proper Storage Class
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "jenkins.storageClass" -}}
|
{{- define "jenkins.storageClass" -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if .Values.persistence.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = .Values.persistence.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: kafka
|
name: kafka
|
||||||
version: 5.2.0
|
version: 5.2.1
|
||||||
appVersion: 2.3.0
|
appVersion: 2.3.0
|
||||||
description: Apache Kafka is a distributed streaming platform.
|
description: Apache Kafka is a distributed streaming platform.
|
||||||
keywords:
|
keywords:
|
||||||
|
|||||||
@@ -187,18 +187,33 @@ Also, we can't use a single if because lazy evaluation is not an option
|
|||||||
Return the proper Storage Class
|
Return the proper Storage Class
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "kafka.storageClass" -}}
|
{{- define "kafka.storageClass" -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if .Values.persistence.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = .Values.persistence.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: magento
|
name: magento
|
||||||
version: 8.1.0
|
version: 8.1.1
|
||||||
appVersion: 2.3.2
|
appVersion: 2.3.2
|
||||||
description: A feature-rich flexible e-commerce solution. It includes transaction options, multi-store functionality, loyalty programs, product categorization and shopper filtering, promotion rules, and more.
|
description: A feature-rich flexible e-commerce solution. It includes transaction options, multi-store functionality, loyalty programs, product categorization and shopper filtering, promotion rules, and more.
|
||||||
keywords:
|
keywords:
|
||||||
|
|||||||
@@ -168,18 +168,33 @@ imagePullSecrets:
|
|||||||
Return the proper Storage Class for the master
|
Return the proper Storage Class for the master
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "magento.storageClass" -}}
|
{{- define "magento.storageClass" -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if .Values.persistence.magento.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = .Values.persistence.magento.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.magento.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.magento.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.magento.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.magento.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.magento.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.magento.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: mariadb-galera
|
name: mariadb-galera
|
||||||
version: 0.2.0
|
version: 0.2.1
|
||||||
appVersion: 10.3.17
|
appVersion: 10.3.17
|
||||||
description: MariaDB Galera is a multi-master database cluster solution for synchronous replication and high availability.
|
description: MariaDB Galera is a multi-master database cluster solution for synchronous replication and high availability.
|
||||||
keywords:
|
keywords:
|
||||||
|
|||||||
@@ -214,18 +214,33 @@ mariadb-galera: LDAP
|
|||||||
Return the proper Storage Class
|
Return the proper Storage Class
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "mariadb-galera.storageClass" -}}
|
{{- define "mariadb-galera.storageClass" -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if .Values.persistence.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = .Values.persistence.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
version: 1.2.0
|
version: 1.2.1
|
||||||
appVersion: 2019.8.7
|
appVersion: 2019.8.7
|
||||||
description: MinIO is an object storage server, compatible with Amazon S3 cloud storage service, mainly used for storing unstructured data (such as photos, videos, log files, etc.)
|
description: MinIO is an object storage server, compatible with Amazon S3 cloud storage service, mainly used for storing unstructured data (such as photos, videos, log files, etc.)
|
||||||
keywords:
|
keywords:
|
||||||
|
|||||||
@@ -189,18 +189,33 @@ Also, we can't use a single if because lazy evaluation is not an option
|
|||||||
Return the proper Storage Class
|
Return the proper Storage Class
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "minio.storageClass" -}}
|
{{- define "minio.storageClass" -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if .Values.persistence.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = .Values.persistence.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: mxnet
|
name: mxnet
|
||||||
version: 1.3.0
|
version: 1.3.1
|
||||||
appVersion: 1.5.0
|
appVersion: 1.5.0
|
||||||
description: A flexible and efficient library for deep learning
|
description: A flexible and efficient library for deep learning
|
||||||
keywords:
|
keywords:
|
||||||
|
|||||||
@@ -219,18 +219,33 @@ Also, we can't use a single if because lazy evaluation is not an option
|
|||||||
Return the proper Storage Class
|
Return the proper Storage Class
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "mxnet.storageClass" -}}
|
{{- define "mxnet.storageClass" -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if .Values.persistence.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = .Values.persistence.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: mysql
|
name: mysql
|
||||||
version: 6.3.0
|
version: 6.3.1
|
||||||
appVersion: 8.0.17
|
appVersion: 8.0.17
|
||||||
description: Chart to create a Highly available MySQL cluster
|
description: Chart to create a Highly available MySQL cluster
|
||||||
keywords:
|
keywords:
|
||||||
|
|||||||
@@ -167,19 +167,34 @@ Also, we can't use a single if because lazy evaluation is not an option
|
|||||||
Return the proper Storage Class for the master
|
Return the proper Storage Class for the master
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "mysql.master.storageClass" -}}
|
{{- define "mysql.master.storageClass" -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if .Values.master.persistence.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = .Values.master.persistence.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.master.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.master.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.master.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.master.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.master.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.master.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
@@ -187,18 +202,33 @@ Return the proper Storage Class for the master
|
|||||||
Return the proper Storage Class for the slave
|
Return the proper Storage Class for the slave
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "mysql.slave.storageClass" -}}
|
{{- define "mysql.slave.storageClass" -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if .Values.slave.persistence.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = .Values.slave.persistence.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.slave.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.slave.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.slave.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.slave.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.slave.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.slave.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: node
|
name: node
|
||||||
version: 11.1.0
|
version: 11.1.1
|
||||||
appVersion: 10.16.3
|
appVersion: 10.16.3
|
||||||
description: Event-driven I/O server-side JavaScript environment based on V8
|
description: Event-driven I/O server-side JavaScript environment based on V8
|
||||||
keywords:
|
keywords:
|
||||||
|
|||||||
@@ -175,18 +175,33 @@ Also, we can't use a single if because lazy evaluation is not an option
|
|||||||
Return the proper Storage Class
|
Return the proper Storage Class
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "node.storageClass" -}}
|
{{- define "node.storageClass" -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if .Values.persistence.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = .Values.persistence.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: pytorch
|
name: pytorch
|
||||||
version: 1.2.0
|
version: 1.2.1
|
||||||
appVersion: 1.2.0
|
appVersion: 1.2.0
|
||||||
description: Deep learning platform that accelerates the transition from research prototyping to production deployment
|
description: Deep learning platform that accelerates the transition from research prototyping to production deployment
|
||||||
keywords:
|
keywords:
|
||||||
|
|||||||
@@ -191,18 +191,33 @@ Also, we can't use a single if because lazy evaluation is not an option
|
|||||||
Return the proper Storage Class
|
Return the proper Storage Class
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "pytorch.storageClass" -}}
|
{{- define "pytorch.storageClass" -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if .Values.persistence.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = .Values.persistence.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: tomcat
|
name: tomcat
|
||||||
version: 4.3.0
|
version: 4.3.1
|
||||||
appVersion: 9.0.24
|
appVersion: 9.0.24
|
||||||
description: Chart for Apache Tomcat
|
description: Chart for Apache Tomcat
|
||||||
keywords:
|
keywords:
|
||||||
|
|||||||
@@ -115,18 +115,33 @@ Also, we can't use a single if because lazy evaluation is not an option
|
|||||||
Return the proper Storage Class
|
Return the proper Storage Class
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "tomcat.storageClass" -}}
|
{{- define "tomcat.storageClass" -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if .Values.persistence.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = .Values.persistence.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: wildfly
|
name: wildfly
|
||||||
version: 3.2.0
|
version: 3.2.1
|
||||||
appVersion: 17.0.1
|
appVersion: 17.0.1
|
||||||
description: Chart for Wildfly
|
description: Chart for Wildfly
|
||||||
keywords:
|
keywords:
|
||||||
|
|||||||
@@ -108,18 +108,33 @@ Also, we can't use a single if because lazy evaluation is not an option
|
|||||||
Return the proper Storage Class
|
Return the proper Storage Class
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "wildfly.storageClass" -}}
|
{{- define "wildfly.storageClass" -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if .Values.persistence.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = .Values.persistence.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: zookeeper
|
name: zookeeper
|
||||||
version: 4.3.0
|
version: 4.3.1
|
||||||
appVersion: 3.5.5
|
appVersion: 3.5.5
|
||||||
description: A centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services for distributed applications.
|
description: A centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services for distributed applications.
|
||||||
keywords:
|
keywords:
|
||||||
|
|||||||
@@ -167,18 +167,33 @@ Also, we can't use a single if because lazy evaluation is not an option
|
|||||||
Return the proper Storage Class
|
Return the proper Storage Class
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "zookeeper.storageClass" -}}
|
{{- define "zookeeper.storageClass" -}}
|
||||||
{{- $storageClass := "" }}
|
{{/*
|
||||||
{{- if .Values.persistence.storageClass -}}
|
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
|
||||||
{{- $storageClass = .Values.persistence.storageClass -}}
|
but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic.
|
||||||
{{- end -}}
|
*/}}
|
||||||
{{- if .Values.global -}}
|
{{- if .Values.global -}}
|
||||||
{{- if .Values.global.storageClass -}}
|
{{- if .Values.global.storageClass -}}
|
||||||
{{- $storageClass = .Values.global.storageClass -}}
|
{{- if (eq "-" .Values.global.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.global.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.persistence.storageClass -}}
|
||||||
|
{{- if (eq "-" .Values.persistence.storageClass) -}}
|
||||||
|
{{- printf "\"\"" -}}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s" .Values.persistence.storageClass -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if (eq "-" $storageClass) -}}
|
|
||||||
{{- printf "\"\"" -}}
|
|
||||||
{{- else }}
|
|
||||||
{{- printf "%s" $storageClass -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user