FFFF 🐛 fix deploy by abahmed · Pull Request #497 · abahmed/kwatch · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions deploy/chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
restartPolicy: Always
serviceAccountName: {{ .Release.Name }}
automountServiceAccountToken: true
{{- with .Values.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down
3 changes: 3 additions & 0 deletions deploy/chart/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ rules:
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["create"]
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "update", "patch"]
- apiGroups: [""]
resources: ["configmaps"]
resourceNames: ["kwatch-state", "kwatch-baseline", "kwatch-incidents", "kwatch-pvc", "kwatch-changes", "kwatch-rca"]
Expand Down
16 changes: 16 additions & 0 deletions deploy/chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,22 @@
}
}
},
"podSecurityContext": {
"type": "object",
"required": [],
"properties": {
"fsGroup": {
"type": [
"string",
"boolean",
"number",
"object",
"array"
],
"default": "1000"
}
}
},
"resources": {
"type": "object",
"required": [],
Expand Down
3 changes: 3 additions & 0 deletions deploy/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ securityContext:
seccompProfile:
type: RuntimeDefault< 8000 /td>

podSecurityContext:
fsGroup: 1000

service:
port: 8060

Expand Down
5 changes: 5 additions & 0 deletions deploy/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ rules:
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["create"]
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "update", "patch"]
- apiGroups: [""]
resources: ["configmaps"]
resourceNames: ["kwatch-state", "kwatch-baseline", "kwatch-incidents", "kwatch-pvc", "kwatch-changes", "kwatch-rca"]
Expand Down Expand Up @@ -176,6 +179,8 @@ spec:
restartPolicy: Always
serviceAccountName: kwatch
automountServiceAccountToken: true
securityContext:
fsGroup: 1000
containers:
- name: kwatch
image: ghcr.io/abahmed/kwatch:v0.10.5
Expand Down
0