Skip to content

Commit

Permalink
Mark important values as required
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsauter committed Nov 2, 2023
1 parent f7b51c3 commit fa6270c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions deploy/chart/templates/configmap-bitbucket.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ metadata:
labels:
{{- include "chart.labels" . | nindent 4}}
data:
url: '{{.Values.bitbucketUrl | trimSuffix "/"}}'
repoBase: '{{.Values.bitbucketUrl | trimSuffix "/"}}/scm'
url: '{{required "bitbucketUrl is required" .Values.bitbucketUrl | trimSuffix "/"}}'
repoBase: '{{required "bitbucketUrl is required" .Values.bitbucketUrl | trimSuffix "/"}}/scm'
2 changes: 1 addition & 1 deletion deploy/chart/templates/configmap-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ metadata:
labels:
{{- include "chart.labels" . | nindent 4}}
data:
consoleUrl: '{{.Values.consoleUrl | trimSuffix "/"}}'
consoleUrl: '{{required "consoleUrl is required" .Values.consoleUrl | trimSuffix "/"}}'
2 changes: 1 addition & 1 deletion deploy/chart/templates/configmap-nexus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ metadata:
labels:
{{- include "chart.labels" . | nindent 4}}
data:
url: '{{.Values.nexusUrl | trimSuffix "/"}}'
url: '{{required "nexusUrl is required" .Values.nexusUrl | trimSuffix "/"}}'
6 changes: 3 additions & 3 deletions deploy/chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ spec:
key: debug
name: ods-pipeline
- name: ODS_STORAGE_PROVISIONER
value: '{{.Values.pipelineManager.storageProvisioner}}'
value: '{{required "pipelineManager.storageProvisioner is required" .Values.pipelineManager.storageProvisioner}}'
- name: ODS_STORAGE_CLASS_NAME
value: '{{.Values.pipelineManager.storageClassName}}'
value: '{{required "pipelineManager.storageClassName is required" .Values.pipelineManager.storageClassName}}'
- name: ODS_STORAGE_SIZE
value: '{{.Values.pipelineManager.storageSize}}'
value: '{{required "pipelineManager.storageSize is required" .Values.pipelineManager.storageSize}}'
- name: ODS_PRUNE_MIN_KEEP_HOURS
value: '{{int .Values.pipelineRunMinKeepHours}}'
- name: ODS_PRUNE_MAX_KEEP_RUNS
Expand Down
10 changes: 5 additions & 5 deletions deploy/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ nexusUsername: ''

# Cluster
# URL (including scheme, without trailing slash) of the OpenShift Web Console.
consoleUrl: 'http://example.com'
consoleUrl: ''

# Notification Webhook
notification:
Expand Down Expand Up @@ -92,10 +92,10 @@ pipelineRunMaxKeepRuns: '20'
# Pipeline Manager
pipelineManager:
# PVC (used for the pipeline workspace)
# Storage provisioner. On AWS backed clusters, use 'kubernetes.io/aws-ebs'.
storageProvisioner: 'kubernetes.io/aws-ebs'
# Storage class. On AWS backed clusters, use 'gp2'.
storageClassName: 'gp2'
# Storage provisioner.
storageProvisioner: ''
# Storage class.
storageClassName: ''
# Storage size. Defaults to 2Gi unless set explicitly here.
storageSize: '5Gi'
# Number of replicas to run for the pipeline manager.
Expand Down
8 changes: 4 additions & 4 deletions deploy/values.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ consoleUrl: ''
# Pipeline Manager
pipelineManager:
# PVC (used for the pipeline workspace)
# Storage provisioner. On AWS backed clusters, use 'kubernetes.io/aws-ebs'.
storageProvisioner: 'kubernetes.io/aws-ebs'
# Storage class. On AWS backed clusters, use 'gp2'.
storageClassName: 'gp2'
# Storage provisioner. On AWS backed clusters, use e.g. 'ebs.csi.aws.com'.
storageProvisioner: ''
# Storage class. On AWS backed clusters, use e.g. 'gp3-csi'.
storageClassName: ''

0 comments on commit fa6270c

Please sign in to comment.