-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Leverage Helm values in templates (#251)
* Leverage Helm values in templates - A number of variables exist in values.yaml that are not leveraged at all in the deployment templates, such as: - Resources - Service Account - Affinity - Tolerations - Security Context - Updated the templates to leverage values that were already possible, as well as adding support for image.version * Leverage the svc name pattern for client lookup as well * Use a Secret to store S3 keys in K8S deployment - Passing the access and secret keys directly as environment variables can inadvertently leak them in a multitenant system, as anyone with the `view` ClusterRole or higher on the namespace will have the ability to read the spec of the `Job`. - Instead, create a secret with the keys and mount them as environment variables from there. --------- Co-authored-by: Harshavardhana <harsha@minio.io>
- Loading branch information
1 parent
4855f46
commit 9449191
Showing
5 changed files
with
79 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "warp.fullname" . }}-credentials | ||
labels: | ||
{{- include "warp.labels" . | nindent 4 }} | ||
data: | ||
access_key: {{ .Values.warpConfiguration.s3AccessKey | b64enc }} | ||
secret_key: {{ .Values.warpConfiguration.s3SecretKey | b64enc }} |
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