-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature add secrets store resources (#52)
* added resources for mw server, worked through problems correcting the representation of the db secret in the cluster * feature: added secrets provider details to temporal server and mw worker templates * removed list permission from cluster role auth update template * updating chart version
- Loading branch information
1 parent
96b0137
commit 9d72321
Showing
9 changed files
with
180 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{ if .Values.secretsStore.enabled }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: secrets-store-csi-driver-secret-access | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["secrets"] | ||
verbs: ["get", "create", "update", "watch"] | ||
|
||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: secrets-store-csi-driver-secret-binding | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: secrets-store-csi-driver-secret-access | ||
subjects: | ||
- kind: ServiceAccount | ||
name: secrets-store-csi-driver | ||
namespace: kube-system | ||
{{ 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
30 changes: 30 additions & 0 deletions
30
charts/multiwoven/templates/multiwoven-secret-provider-class.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,30 @@ | ||
{{ if .Values.secretsStore.enabled }} | ||
apiVersion: secrets-store.csi.x-k8s.io/v1 | ||
kind: SecretProviderClass | ||
metadata: | ||
name: {{ include "chart.fullname" . }}-secret-provider-class | ||
namespace: {{ .Values.kubernetesNamespace }} | ||
labels: | ||
app: {{ include "chart.fullname" . }}-secret-provider-class | ||
io.kompose.service: {{ include "chart.fullname" . }}-secret-provider-class | ||
{{- include "chart.labels" . | nindent 4 }} | ||
spec: | ||
provider: aws | ||
parameters: | ||
objects: | | ||
- objectName: {{ .Values.secretsStore.aws.dbCredsSecretName }} | ||
objectType: secretsmanager | ||
jmesPath: | ||
- path: u | ||
objectAlias: DB_USERNAME | ||
- path: p | ||
objectAlias: DB_PASSWORD | ||
secretObjects: | ||
- secretName: {{ .Values.secretsStore.aws.dbCredsSecretName }} | ||
type: Opaque | ||
data: | ||
- objectName: DB_PASSWORD | ||
key: DB_PASSWORD # Maps the password field from AWS Secrets Manager | ||
- objectName: DB_USERNAME | ||
key: DB_USERNAME # Maps the username field from AWS Secrets Manager | ||
{{ 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
13 changes: 13 additions & 0 deletions
13
charts/multiwoven/templates/multiwoven-service-account.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,13 @@ | ||
{{- if .Values.serviceAccount.enabled }} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ .Values.serviceAccount.name }} | ||
namespace: {{ .Values.kubernetesNamespace }} | ||
{{- if .Values.serviceAccount.annotations }} | ||
annotations: | ||
{{- range $key, $value := .Values.serviceAccount.annotations }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- 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
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