Skip to content

Commit fdc0c50

Browse files
committed
feat: add new variables for offset control in url regeneration
1 parent c9e000f commit fdc0c50

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

templates/diffgram_settings.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
DIFFGRAM_STATIC_STORAGE_PROVIDER: {{ .Values.diffgramSettings.DIFFGRAM_STATIC_STORAGE_PROVIDER }}
55
DIFFGRAM_S3_BUCKET_NAME: {{ .Values.diffgramSettings.DIFFGRAM_S3_BUCKET_NAME }}
66
IS_DIFFGRAM_S3_V4_SIGNATURE: {{ .Values.diffgramSettings.IS_DIFFGRAM_S3_V4_SIGNATURE }}
7+
SIGNED_URL_CACHE_MINIMUM_DAYS_VALID: {{ .Values.diffgramSettings.SIGNED_URL_CACHE_MINIMUM_DAYS_VALID }}
8+
SIGNED_URL_CACHE_NEW_OFFSET_DAYS_VALID: {{ .Values.diffgramSettings.SIGNED_URL_CACHE_NEW_OFFSET_DAYS_VALID }}
9+
DIFFGRAM_S3_BUCKET_REGION: {{ .Values.diffgramSettings.DIFFGRAM_S3_BUCKET_REGION }}
710
ML__DIFFGRAM_S3_BUCKET_NAME: {{ .Values.diffgramSettings.ML__DIFFGRAM_S3_BUCKET_NAME }}
811
GOOGLE_APPLICATION_CREDENTIALS: /etc/gcp/sa_credentials.json # Check the volume in deployment.yaml and service_account_secret.yaml
912
CLOUD_STORAGE_BUCKET: {{ .Values.diffgramSettings.CLOUD_STORAGE_BUCKET }}

values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Declare variables to be passed into your templates.
44

55
# The Diffgram Version. Whenever a new update arrives, this will be changed.
6-
diffgramVersion: 1.0.0
6+
diffgramVersion: 1.1.1
77

88
# Either 'opencore' or 'enterprise'. Please note that selecting 'enterprise'
99
# requires that you also set imagePullCredentials.gcrCredentials.
@@ -63,6 +63,7 @@ diffgramSettings:
6363
DIFFGRAM_SYSTEM_MODE: production
6464
DIFFGRAM_STATIC_STORAGE_PROVIDER: aws
6565
DIFFGRAM_S3_BUCKET_NAME: diffgram-testing
66+
DIFFGRAM_S3_BUCKET_REGION: us-west-1
6667
DIFFGRAM_AZURE_CONTAINER_NAME: diffgram-testing
6768
ML__DIFFGRAM_AZURE_CONTAINER_NAME: diffgram-testing
6869
ML__DIFFGRAM_S3_BUCKET_NAME: diffgram-testing
@@ -96,6 +97,8 @@ diffgramSettings:
9697
DIFFGRAM_MINIO_DISABLED_SSL_VERIFY: '"False"'
9798
RABBITMQ_PORT: "'5672'"
9899
RABBITMQ_HOST: "diffgram-rabbitmq"
100+
SIGNED_URL_CACHE_MINIMUM_DAYS_VALID: "'5'"
101+
SIGNED_URL_CACHE_NEW_OFFSET_DAYS_VALID: "'6'"
99102

100103
imagePullCredentials:
101104
# The service account with permissions to pull from the GCR Repository. [Should be Provided by Diffgram Team.]

0 commit comments

Comments
 (0)