We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 921706d commit f4f1becCopy full SHA for f4f1bec
1 file changed
charts/anvilops/templates/buildkitd/buildkitd-deployment.yaml
@@ -15,8 +15,10 @@ spec:
15
metadata:
16
labels:
17
{{- include "anvilops.buildkitd.labels" . | nindent 8 }}
18
+ {{ if semverCompare "<1.30" .Capabilities.KubeVersion.Version }}
19
annotations:
20
container.apparmor.security.beta.kubernetes.io/buildkitd: unconfined
21
+ {{ end }}
22
spec:
23
{{ if .Values.buildkitd.enableUserNamespaces -}}
24
hostUsers: false
@@ -67,6 +69,10 @@ spec:
67
69
type: Unconfined
68
70
runAsUser: 1000
71
runAsGroup: 1000
72
+ {{ if semverCompare ">=1.30" .Capabilities.KubeVersion.Version }}
73
+ appArmorProfile:
74
+ type: Unconfined
75
76
ports:
77
- containerPort: 1234
78
volumeMounts:
0 commit comments