mirror of
https://github.com/bitnami/charts.git
synced 2026-03-15 06:47:24 +08:00
* [bitnami/supabase] feat: 🎉 Add chart Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * test: ✅ Change app_protocol Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * test: ✅ Update runtime_params Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * feat: ✨ Add support for extra config map in Studio Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * fix: 🐛 Add missing commonLabels in pod template Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * docs: 📝 Improve documentation Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * docs: 📝 Improve NOTES.txt Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * test: ✅ Apply suggested changes Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * docs: 📝 Improve NOTES.txt Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * fix: 🐛 Get the proper secret Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * fix: 🐛 Get the proper secret in jwt Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * fix: 🐛 Add annnotations so configmaps get updated Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * test: ✅ Typo in goss tests Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * test: ✅ Improve format Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> * docs: 📝 Remove README.md section Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> --------- Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
53 lines
2.0 KiB
YAML
53 lines
2.0 KiB
YAML
{{- if and (include "supabase.createInitJob" .) .Values.rbac.create -}}
|
|
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
|
|
kind: Role
|
|
metadata:
|
|
name: {{ printf "%s-jwt-init" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
|
|
namespace: {{ include "common.names.namespace" . | quote }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
app.kubernetes.io/part-of: supabase
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
rules:
|
|
- apiGroups:
|
|
- ''
|
|
resources:
|
|
- secrets
|
|
resourceNames:
|
|
- {{ include "supabase.jwt.secretName" . | quote }}
|
|
verbs:
|
|
- create
|
|
- delete
|
|
- get
|
|
- list
|
|
- patch
|
|
- update
|
|
- watch
|
|
---
|
|
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: {{ printf "%s-jwt-init" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
|
|
namespace: {{ include "common.names.namespace" . | quote }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
app.kubernetes.io/part-of: supabase
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ include "supabase.serviceAccountName" . }}
|
|
namespace: {{ include "common.names.namespace" . }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
name: {{ printf "%s-jwt-init" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
|
|
{{- end }}
|