Skip to content

Commit

Permalink
fix pod and rbac templates
Browse files Browse the repository at this point in the history
  • Loading branch information
schneidermr committed Nov 25, 2023
1 parent bef4461 commit bd9de66
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion appwrite/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ containers:
env:
{{ toYaml . | nindent 6 }}
{{- end }}
{{ }}
volumeMounts:
- name: storage
mountPath: /storage
Expand Down
4 changes: 2 additions & 2 deletions appwrite/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ rules:
resources: ["pods"]
verbs: ["*"]
- apiGroups: [""]
resources: ["pods/log"]
verbs: ["get", "list"]
resources: ["pods/exec"]
verbs: ["*"]
4 changes: 2 additions & 2 deletions appwrite/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ printf "%s-%s" (include "appwrite.fullname" .) .component.name | trunc 63 }}
name: {{ (include "appwrite.fullname" .)| trunc 63 }}
namespace: {{ include "appwrite.namespace" . }}
subjects:
- kind: ServiceAccount
name: {{ printf "%s-%s" (include "appwrite.fullname" .) .component.name | trunc 63 }}
name: {{ (include "appwrite.fullname" .) | trunc 63 }}
namespace: {{ include "appwrite.namespace" . }}
roleRef:
kind: Role
Expand Down
2 changes: 1 addition & 1 deletion appwrite/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ kind: ServiceAccount
metadata:
annotations:
kubernetes.io/enforce-mountable-secrets: "true"
name: {{ printf "%s-%s" (include "appwrite.fullname" .) .component.name | trunc 63 }}
name: {{ (include "appwrite.fullname" .) | trunc 63 }}
namespace: {{ include "appwrite.namespace" . }}

0 comments on commit bd9de66

Please sign in to comment.