Skip to content

Commit 61a6cc4

Browse files
Always use GOOGLE_APPLICATION_CREDENTIALS env in acaas (#1275)
Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
1 parent e1d4a70 commit 61a6cc4

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

charts/accounts-ui/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ spec:
7474
resources:
7575
{{- toYaml .Values.resources | nindent 12 }}
7676
env:
77-
{{- if and (include "settings.objstoreSecretName" .) (eq $infra.objstore.provider "gcs") }}
77+
{{- if (include "settings.objstoreSecretName" .) }}
7878
- name: GOOGLE_APPLICATION_CREDENTIALS
7979
value: {{ $infra.objstore.mountPath }}/sa.json
8080
{{- end }}

charts/billing/templates/aggregator/cronjob.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spec:
4444
resources:
4545
{{- toYaml .Values.resources | nindent 16 }}
4646
env:
47-
{{- if and (include "settings.objstoreSecretName" .) (eq $infra.objstore.provider "gcs") }}
47+
{{- if (include "settings.objstoreSecretName" .) }}
4848
- name: GOOGLE_APPLICATION_CREDENTIALS
4949
value: {{ $infra.objstore.mountPath }}/sa.json
5050
{{- end }}

charts/billing/templates/aggregator/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ spec:
6565
fieldRef:
6666
apiVersion: v1
6767
fieldPath: metadata.name
68-
{{- if and (include "settings.objstoreSecretName" .) (eq $infra.objstore.provider "gcs") }}
68+
{{- if (include "settings.objstoreSecretName" .) }}
6969
- name: GOOGLE_APPLICATION_CREDENTIALS
7070
value: {{ $infra.objstore.mountPath }}/sa.json
7171
{{- end }}

charts/billing/templates/processor/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ spec:
6565
fieldRef:
6666
apiVersion: v1
6767
fieldPath: metadata.name
68-
{{- if and (include "settings.objstoreSecretName" .) (eq $infra.objstore.provider "gcs") }}
68+
{{- if (include "settings.objstoreSecretName" .) }}
6969
- name: GOOGLE_APPLICATION_CREDENTIALS
7070
value: {{ $infra.objstore.mountPath }}/sa.json
7171
{{- end }}

charts/marketplace-api/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ spec:
6868
{{- with .Values.env }}
6969
{{- toYaml . | nindent 12 }}
7070
{{- end }}
71-
{{- if and (include "settings.objstoreSecretName" .) (eq $infra.objstore.provider "gcs") }}
71+
{{- if (include "settings.objstoreSecretName" .) }}
7272
- name: GOOGLE_APPLICATION_CREDENTIALS
7373
value: {{ $infra.objstore.mountPath }}/sa.json
7474
{{- end }}

charts/platform-links/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ spec:
8989
valueFrom:
9090
fieldRef:
9191
fieldPath: metadata.namespace
92-
{{- if and (include "settings.objstoreSecretName" .) (eq $infra.objstore.provider "gcs") }}
92+
{{- if (include "settings.objstoreSecretName" .) }}
9393
- name: GOOGLE_APPLICATION_CREDENTIALS
9494
value: {{ $infra.objstore.mountPath }}/sa.json
9595
{{- end }}

0 commit comments

Comments
 (0)