From ce738222eaf09f1c7740e7625261bc722549be2e Mon Sep 17 00:00:00 2001 From: Justin Slay Date: Tue, 7 Feb 2023 02:06:54 -0700 Subject: [PATCH] Added s3 copyOptions --- charts/static-site/Chart.yaml | 4 ++-- charts/static-site/templates/deployment.yaml | 2 +- charts/static-site/values.yaml | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/charts/static-site/Chart.yaml b/charts/static-site/Chart.yaml index 2190930..e83bbbd 100644 --- a/charts/static-site/Chart.yaml +++ b/charts/static-site/Chart.yaml @@ -20,10 +20,10 @@ 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.0 +version: 0.1.1 # 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 # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "0.1.0" +appVersion: "0.1.1" diff --git a/charts/static-site/templates/deployment.yaml b/charts/static-site/templates/deployment.yaml index 9737066..dcf420e 100644 --- a/charts/static-site/templates/deployment.yaml +++ b/charts/static-site/templates/deployment.yaml @@ -70,7 +70,7 @@ spec: args: - -c - | - aws s3 cp s3://{{ .Values.init.s3.bucket }}/{{.Values.init.s3.object }} /tmp/$TARGET_FILE \ + aws s3 cp {{ .Values.init.s3.copyOptions }} s3://{{ .Values.init.s3.bucket }}/{{.Values.init.s3.object }} /tmp/$TARGET_FILE \ && {{ .Values.init.s3.extractCommand }} {{- end }} volumeMounts: diff --git a/charts/static-site/values.yaml b/charts/static-site/values.yaml index 441bc2a..90bc0b8 100644 --- a/charts/static-site/values.yaml +++ b/charts/static-site/values.yaml @@ -49,6 +49,8 @@ init: pullPolicy: IfNotPresent # Default tag is `latest` tag: "" + # Options/arguments for aws s3 cp command + copyOptions: "" bucket: "" object: "" # Filename to save object as for extraction. Saved under /tmp