Skip to content

Commit

Permalink
PB-8256: Add helm timeout variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ss-px committed Sep 27, 2024
1 parent 88a5974 commit 007de1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{{- $isOpenshiftCluster := .Capabilities.APIVersions.Has "apps.openshift.io/v1" -}}
{{- $azureProxyEnabled := .Values.proxy.azureProxyEnabled | default false }}
{{- if and .Release.IsUpgrade (empty .Values.helmTimeout) }}
{{ fail "ERROR You must pass the --timeout argument in the Helm upgrade command to explicitly set the value (default 5m)." }}
{{- end }}

apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
Expand Down
2 changes: 2 additions & 0 deletions charts/px-central/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -323,3 +323,5 @@ images:
mongodb5: 5.0.24-debian-11-r20
mongodb6: 6.0.13-debian-11-r21
mongodb7: 7.0.14-debian-12-r0

helmTimeout: ""

0 comments on commit 007de1f

Please sign in to comment.