-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document Engine 1.4.1 and asset storage fallback fixes (#16)
- Loading branch information
1 parent
20c1cfe
commit 0e6a281
Showing
12 changed files
with
189 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
pspdfkit: | ||
storage: | ||
databaseMigrationJob: | ||
enabled: false | ||
assetStorageBackend: azure | ||
enableAssetStorageFallback: true | ||
enableAssetStorageFallbackPostgres: true | ||
postgres: | ||
enabled: true | ||
host: postgresql | ||
port: 5432 | ||
username: postgres | ||
azure: | ||
# This is "well known" storage account for Azure Storage Emulator | ||
# See https://learn.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string#configure-a-connection-string-for-azurite | ||
accountName: devstoreaccount1 | ||
accountKey: "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==" | ||
container: "document-engine-assets" | ||
apiUrl: "http://127.0.0.1:10000/devstoreaccount1" | ||
|
||
# Azurite as sidecar | ||
sidecars: | ||
- name: azurite | ||
image: mcr.microsoft.com/azure-storage/azurite:latest | ||
imagePullPolicy: Always | ||
ports: | ||
- containerPort: 10000 | ||
name: blob | ||
protocol: TCP | ||
|
||
postgresql: | ||
enabled: true | ||
fullnameOverride: postgresql | ||
nameOverride: postgresql | ||
primary: | ||
persistence: | ||
enabled: true | ||
size: 512Mi | ||
storageClass: standard | ||
accessModes: | ||
- ReadWriteOnce | ||
volumePermissions: | ||
enabled: true | ||
|
||
minio: | ||
enabled: false | ||
|
||
redis: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
charts/document-engine/templates/config.storage-azure.Secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{{- if (eq (include "document-engine.storage.azure.createSecret" .) "true") }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "document-engine.storage.azure.secret.name" . }} | ||
labels: | ||
{{- include "document-engine.labels" . | nindent 4 }} | ||
data: | ||
{{- with .Values.pspdfkit.storage }} | ||
{{- if eq .assetStorageBackend "azure" }} | ||
AZURE_STORAGE_DEFAULT_CONTAINER: {{ .azure.container | b64enc | quote }} | ||
{{- if .azure.connectionString }} | ||
AZURE_STORAGE_ACCOUNT_CONNECTION_STRING: {{ .azure.connectionString | b64enc | quote }} | ||
{{- else if and .azure.accountName .azure.accountKey }} | ||
AZURE_STORAGE_ACCOUNT_NAME: {{ .azure.accountName | b64enc | quote }} | ||
AZURE_STORAGE_ACCOUNT_KEY: {{ .azure.accountKey | b64enc | quote }} | ||
{{- end }} | ||
{{- if .azure.apiUrl }} | ||
AZURE_STORAGE_API_URL: {{ .azure.apiUrl | b64enc | quote }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.