Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add environment variable for supplier contracts bucket (#803) #35

Merged
merged 3 commits into from
Apr 17, 2018

Conversation

flypunk
Copy link
Contributor

@flypunk flypunk commented Apr 17, 2018

I have created the buckets midburn-spark-supplier-files and midburn-spark-supplier-files-prod
The are accessible by the same aws user, spark, that is currently configured on production.

@flypunk flypunk requested a review from a user April 17, 2018 15:59
@@ -59,4 +59,7 @@ data:
{{ if .Values.volunteersBaseUrl }}
VOLUNTEERS_BASE_URL: {{ .Values.volunteersBaseUrl | quote }}
{{ end }}

# SUPPLIER CONTRACT FILES
SPARK_SUPPLIER_CONTRACTS_BUCKET: {{ .Values.suppliers.bucket | quote }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

each chart has access only to values under it's name (and the global property)

so, in your case it should be under
{{ .Values.suppliersBucket | quote }}

also, you should check if value exists before adding it - see the example of volunteersBaseUrl above your code

@@ -121,3 +121,6 @@ dreams:
camps-index:
enabled: true
sparkAppSecretName: sparkdb-app

suppliers:
bucket: midburn-spark-supplier-files
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this value will only be visible to suppliers chart, it won't be accessible for spark chart

flypunk added 2 commits April 17, 2018 19:18
- Check for existing config value before adding it
- Flatten suppliers hierarchy
@OriHoch OriHoch merged commit 8dd77c7 into master Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants