-
Notifications
You must be signed in to change notification settings - Fork 4.9k
[Feature-17566][Helm] add secrets and initContainers in worker statefulset #17519
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
Open
jmmc-tools
wants to merge
9
commits into
apache:dev
Choose a base branch
from
jmmc-tools:patch-1
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+52
−0
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f4ba4bd
Update statefulset-dolphinscheduler-worker.yaml
jmmc-tools 19674f1
add initContainers statefulset-dolphinscheduler-worker.yaml
jmmc-tools 3a69c4e
Merge branch 'dev' into patch-1
ruanwenjun 00454c3
[Feature-17566] update values.yaml
jmmc-tools 69a9edf
Merge branch 'dev' into patch-1
jmmc-tools 3d0f0f3
Merge branch 'dev' into patch-1
Gallardot dfb5cb2
Actualizar values.yaml
jmmc-tools 07b7c2b
Actualizar values.yaml
jmmc-tools 361bb7c
Merge branch 'dev' into patch-1
jmmc-tools 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -583,6 +583,38 @@ worker: | |
| # -- Update strategy | ||
| # ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies | ||
| # | ||
| # -- Direct Secret Mounting | ||
| # Mount secrets directly as environment variables | ||
| # Single secret | ||
| envFromSecret: "" | ||
|
|
||
| # Multiple secrets (advanced use cases) | ||
| # Use when you have variables distributed across different secrets | ||
| # envFromSecrets: | ||
| # - "git-sync-secret" # Git synchronization credentials | ||
| # - "database-secret" # Database connection details | ||
| # - "external-api-secret" # Third-party API keys | ||
|
|
||
| # -- Init Container for Advanced Processing | ||
| # Use when you need to transform, validate, or prepare configuration files | ||
| initContainers: {} | ||
| - name: config-processor | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a good example, but it should not be set as the default value for initcontainers. Instead, it should be treated as a comment. |
||
| image: busybox:latest | ||
| command: | ||
| - /bin/sh | ||
| - -c | ||
| - | | ||
| echo "⚙️ Init startup settings..." | ||
| # Create specific starup script for an specific environment settings in worker pods. | ||
| # You can use unix variables from secrets | ||
| envFrom: | ||
| # -- Example secret name for initContainer | ||
| - secretRef: | ||
| name: git-sync-secret | ||
| # -- Example volumeMounts for initContiner | ||
| volumeMounts: | ||
| - name: shared-config | ||
| mountPath: /shared-config | ||
| updateStrategy: | ||
| type: RollingUpdate | ||
| # -- Replicas is the desired number of replicas of the given Template. | ||
|
|
||
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.