forked from opencloud-eu/helm
-
Notifications
You must be signed in to change notification settings - Fork 5
Feature/add init secretes #85
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
13734f0
feat: skip opencloud init, use runtime ENV vars for all secrets
bernardgut 7785200
Merge branch 'main' into pr-58
Tim-herbie 619caa4
remove duplicate env variables
Tim-herbie f928c38
add wopi and jwt secrets to collaboration deployment
Tim-herbie 7a28bca
remove config pvc
Tim-herbie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,51 @@ | ||
| {{- if and .Values.opencloud.enabled (not .Values.opencloud.initSecrets.existingSecret) }} | ||
| {{- /* Stable init secrets — persisted across helm upgrades via lookup */ -}} | ||
| {{- $secretName := printf "%s-init" (include "opencloud.opencloud.fullname" .) -}} | ||
| {{- $existingSecret := lookup "v1" "Secret" .Release.Namespace $secretName }} | ||
|
Tim-herbie marked this conversation as resolved.
|
||
| apiVersion: v1 | ||
| kind: Secret | ||
| metadata: | ||
| name: {{ $secretName }} | ||
| annotations: | ||
| "helm.sh/resource-policy": "keep" | ||
|
Tim-herbie marked this conversation as resolved.
|
||
| labels: | ||
| {{- include "opencloud.labels" . | nindent 4 }} | ||
| app.kubernetes.io/component: opencloud | ||
| type: Opaque | ||
| data: | ||
| {{- if $existingSecret }} | ||
| jwtSecret: {{ index $existingSecret.data "jwtSecret" | default (randAlphaNum 32 | b64enc) }} | ||
| machineAuthApiKey: {{ index $existingSecret.data "machineAuthApiKey" | default (randAlphaNum 32 | b64enc) }} | ||
| transferSecret: {{ index $existingSecret.data "transferSecret" | default (randAlphaNum 32 | b64enc) }} | ||
| serviceAccountSecret: {{ index $existingSecret.data "serviceAccountSecret" | default (randAlphaNum 32 | b64enc) }} | ||
| idmServicePassword: {{ index $existingSecret.data "idmServicePassword" | default (randAlphaNum 32 | b64enc) }} | ||
| idmRevaServicePassword: {{ index $existingSecret.data "idmRevaServicePassword" | default (randAlphaNum 32 | b64enc) }} | ||
| idmIdpServicePassword: {{ index $existingSecret.data "idmIdpServicePassword" | default (randAlphaNum 32 | b64enc) }} | ||
| collaborationWopiSecret: {{ index $existingSecret.data "collaborationWopiSecret" | default (randAlphaNum 32 | b64enc) }} | ||
| systemUserApiKey: {{ index $existingSecret.data "systemUserApiKey" | default (randAlphaNum 32 | b64enc) }} | ||
| urlSigningSecret: {{ index $existingSecret.data "urlSigningSecret" | default (randAlphaNum 32 | b64enc) }} | ||
| thumbnailsTransferSecret: {{ index $existingSecret.data "thumbnailsTransferSecret" | default (randAlphaNum 32 | b64enc) }} | ||
| systemUserID: {{ index $existingSecret.data "systemUserID" | default (uuidv4 | b64enc) }} | ||
| adminUserID: {{ index $existingSecret.data "adminUserID" | default (uuidv4 | b64enc) }} | ||
| serviceAccountID: {{ index $existingSecret.data "serviceAccountID" | default (uuidv4 | b64enc) }} | ||
| graphApplicationID: {{ index $existingSecret.data "graphApplicationID" | default (uuidv4 | b64enc) }} | ||
| storageUsersMountID: {{ index $existingSecret.data "storageUsersMountID" | default (uuidv4 | b64enc) }} | ||
| {{- else }} | ||
| jwtSecret: {{ randAlphaNum 32 | b64enc | quote }} | ||
| machineAuthApiKey: {{ randAlphaNum 32 | b64enc | quote }} | ||
| transferSecret: {{ randAlphaNum 32 | b64enc | quote }} | ||
| serviceAccountSecret: {{ randAlphaNum 32 | b64enc | quote }} | ||
| idmServicePassword: {{ randAlphaNum 32 | b64enc | quote }} | ||
| idmRevaServicePassword: {{ randAlphaNum 32 | b64enc | quote }} | ||
| idmIdpServicePassword: {{ randAlphaNum 32 | b64enc | quote }} | ||
| collaborationWopiSecret: {{ randAlphaNum 32 | b64enc | quote }} | ||
| systemUserApiKey: {{ randAlphaNum 32 | b64enc | quote }} | ||
| urlSigningSecret: {{ randAlphaNum 32 | b64enc | quote }} | ||
| thumbnailsTransferSecret: {{ randAlphaNum 32 | b64enc | quote }} | ||
| systemUserID: {{ uuidv4 | b64enc | quote }} | ||
| adminUserID: {{ uuidv4 | b64enc | quote }} | ||
| serviceAccountID: {{ uuidv4 | b64enc | quote }} | ||
| graphApplicationID: {{ uuidv4 | b64enc | quote }} | ||
| storageUsersMountID: {{ uuidv4 | b64enc | quote }} | ||
| {{- end }} | ||
| {{- end }} | ||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.