making .ReleaseIsInstall optional for init jobs (#480)
* making .ReleasIsInstall optional for init jobs * initialize simplifying an if condition based on feedback
This commit is contained in:
parent
43ed6f5434
commit
3dee8dfe3b
2
charts/pulsar/templates/bookkeeper-cluster-initialize.yaml
Normal file → Executable file
2
charts/pulsar/templates/bookkeeper-cluster-initialize.yaml
Normal file → Executable file
@ -16,7 +16,7 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
{{- if or .Release.IsInstall .Values.initialize }}
|
||||
{{- if or (and .Values.useReleaseStatus .Release.IsInstall) .Values.initialize }}
|
||||
{{- if .Values.components.bookkeeper }}
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
|
||||
2
charts/pulsar/templates/pulsar-cluster-initialize.yaml
Normal file → Executable file
2
charts/pulsar/templates/pulsar-cluster-initialize.yaml
Normal file → Executable file
@ -17,7 +17,7 @@
|
||||
# under the License.
|
||||
#
|
||||
|
||||
{{- if or .Release.IsInstall .Values.initialize }}
|
||||
{{- if or (and .Values.useReleaseStatus .Release.IsInstall) .Values.initialize }}
|
||||
{{- if .Values.components.broker }}
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
|
||||
4
charts/pulsar/templates/pulsar-manager-cluster-initialize.yaml
Normal file → Executable file
4
charts/pulsar/templates/pulsar-manager-cluster-initialize.yaml
Normal file → Executable file
@ -17,7 +17,7 @@
|
||||
# under the License.
|
||||
#
|
||||
|
||||
{{- if or .Release.IsInstall .Values.initialize }}
|
||||
{{- if or (and .Values.useReleaseStatus .Release.IsInstall) .Values.initialize }}
|
||||
{{- if .Values.components.pulsar_manager }}
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
@ -28,7 +28,7 @@ metadata:
|
||||
{{- include "pulsar.standardLabels" . | nindent 4 }}
|
||||
component: {{ .Values.pulsar_manager.component }}-init
|
||||
spec:
|
||||
{{- if or .Values.job.ttl.enabled (semverCompare ">=1.23-0" .Capabilities.KubeVersion.Version) }}
|
||||
{{- if and .Values.job.ttl.enabled (semverCompare ">=1.23-0" .Capabilities.KubeVersion.Version) }}
|
||||
ttlSecondsAfterFinished: {{ .Values.job.ttl.secondsAfterFinished | default 600 }}
|
||||
{{- end }}
|
||||
template:
|
||||
|
||||
3
charts/pulsar/values.yaml
Normal file → Executable file
3
charts/pulsar/values.yaml
Normal file → Executable file
@ -36,7 +36,8 @@ clusterDomain: cluster.local
|
||||
|
||||
## Set to true on install
|
||||
initialize: false
|
||||
|
||||
## Set useReleaseStatus to false if you're deploying this chart using a system that doesn't track .Release.IsInstall or .Release.IsUpgrade (like argocd)
|
||||
useReleaseStatus: true
|
||||
## Set cluster name
|
||||
# clusterName:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user