Skip to content

Commit

Permalink
update for s3
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricebrito committed Oct 17, 2023
1 parent 488c46c commit 595f2f4
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/calrissian-session/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.10
version: 0.1.11

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
24 changes: 24 additions & 0 deletions charts/calrissian-session/templates/cm_user_settings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{- if .Values.s3.enabled -}}
kind: ConfigMap
apiVersion: v1
metadata:
name: user-settings
namespace: {{ .Release.Namespace }}
data:
user-settings: |
{
"S3": {
"Services": {
"iride": {
"UrlPattern": {{ .Values.s3.bucket_pattern }},
"Region": {{ .Values.s3.region }},
"AuthenticationRegion": {{ .Values.s3.region }},
"AccessKey": {{ .Values.s3.access_key_id }},
"SecretKey": {{ .Values.s3.secret_access_key }},
"ServiceURL": {{ .Values.s3.endpoint_url }},
"ForcePathStyle": true
}
}
}
}
{{- end}}
6 changes: 6 additions & 0 deletions charts/calrissian-session/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ spec:
- name: aws-credentials
mountPath: /home/.aws/credentials
subPath: aws-credentials
- name: user-settings
mountPath: /etc/Stars/appsettings.json
subPath: user-settings
{{- end }}
{{- if .Values.containerRegistry.enabled }}
- name: container-registry
Expand Down Expand Up @@ -96,6 +99,9 @@ spec:
- name: aws-credentials
configMap:
name: aws-credentials
- name: user-settings
configMap:
name: user-settings
{{- end }}
{{- if .Values.containerRegistry.enabled }}
- name: container-registry
Expand Down

0 comments on commit 595f2f4

Please sign in to comment.