Skip to content

Commit

Permalink
feat(contril/helm): replace --decode by -d to be compatible with more…
Browse files Browse the repository at this point in the history
… distribs / operating systems (#4340)
  • Loading branch information
gregoiremahe authored and yesnault committed Jun 10, 2019
1 parent 338cb21 commit 6b1466a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contrib/helm/cds/templates/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ spec:
name: {{ template "cds.fullname" . }}
key: cds-api_secrets_key
command: ["/bin/sh"]
args: ["-c", "echo $CDS_CONFIG_FILE | base64 --decode > config.toml && /app/cds-engine-linux-amd64 start api --config config.toml"]
args: ["-c", "echo $CDS_CONFIG_FILE | base64 -d > config.toml && /app/cds-engine-linux-amd64 start api --config config.toml"]
ports:
- name: http
containerPort: 8081
Expand Down
2 changes: 1 addition & 1 deletion contrib/helm/cds/templates/elasticsearch-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
- name: CDS_LOG_LEVEL
value: {{ default "" .Values.logLevel | quote }}
command: ["/bin/sh"]
args: ["-c", "echo $CDS_CONFIG_FILE | base64 --decode > config.toml && /app/cds-engine-linux-amd64 start elasticsearch --config config.toml"]
args: ["-c", "echo $CDS_CONFIG_FILE | base64 -d > config.toml && /app/cds-engine-linux-amd64 start elasticsearch --config config.toml"]
ports:
- name: http
containerPort: 8084
2 changes: 1 addition & 1 deletion contrib/helm/cds/templates/hooks-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ spec:
- name: CDS_LOG_LEVEL
value: {{ default "" .Values.logLevel | quote }}
command: ["/bin/sh"]
args: ["-c", "echo $CDS_CONFIG_FILE | base64 --decode > config.toml && /app/cds-engine-linux-amd64 start hooks --config config.toml"]
args: ["-c", "echo $CDS_CONFIG_FILE | base64 -d > config.toml && /app/cds-engine-linux-amd64 start hooks --config config.toml"]
ports:
- name: http
containerPort: 8084
2 changes: 1 addition & 1 deletion contrib/helm/cds/templates/repositories-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spec:
- name: CDS_LOG_LEVEL
value: {{ default "" .Values.logLevel | quote }}
command: ["/bin/sh"]
args: ["-c", "echo $CDS_CONFIG_FILE | base64 --decode > config.toml && /app/cds-engine-linux-amd64 start repositories --config config.toml"]
args: ["-c", "echo $CDS_CONFIG_FILE | base64 -d > config.toml && /app/cds-engine-linux-amd64 start repositories --config config.toml"]
ports:
- name: http
containerPort: 8084
Expand Down
2 changes: 1 addition & 1 deletion contrib/helm/cds/templates/vcs-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ spec:
- name: CDS_LOG_LEVEL
value: {{ default "" .Values.logLevel | quote }}
command: ["/bin/sh"]
args: ["-c", "echo $CDS_CONFIG_FILE | base64 --decode > config.toml && /app/cds-engine-linux-amd64 start vcs --config config.toml"]
args: ["-c", "echo $CDS_CONFIG_FILE | base64 -d > config.toml && /app/cds-engine-linux-amd64 start vcs --config config.toml"]
ports:
- name: http
containerPort: 8084

0 comments on commit 6b1466a

Please sign in to comment.