Skip to content

Commit

Permalink
[svix] ensure all job deps have the same annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jshimko committed Sep 25, 2024
1 parent 527e488 commit ee0a886
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/svix/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: svix
description: A Helm chart for running svix on Kubernetes
type: application
version: 0.3.0
version: 0.3.1

dependencies:
# https://github.com/bitnami/charts/blob/main/bitnami/postgresql/Chart.yaml
Expand Down
12 changes: 12 additions & 0 deletions charts/svix/templates/svix/jwt-secret-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,20 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: svix-jwt-service-account
{{ with .Values.svix.createJwtSecret.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}

---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: svix-jwt-secret-role
{{ with .Values.svix.createJwtSecret.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- apiGroups: [""]
resources: ["secrets"]
Expand All @@ -19,6 +27,10 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: svix-jwt-secret-rolebinding
{{ with .Values.svix.createJwtSecret.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
subjects:
- kind: ServiceAccount
name: svix-jwt-service-account
Expand Down

0 comments on commit ee0a886

Please sign in to comment.