mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-17 22:58:53 +00:00
* validate manifest work executor permission on hub cluster Signed-off-by: zhujian <jiazhu@redhat.com> * do not validate the executor when it is not changed Signed-off-by: zhujian <jiazhu@redhat.com> Signed-off-by: zhujian <jiazhu@redhat.com>
38 lines
998 B
YAML
38 lines
998 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: work-webhook
|
|
labels:
|
|
app: work-webhook
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: work-webhook
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: work-webhook
|
|
spec:
|
|
serviceAccountName: work-webhook-sa
|
|
containers:
|
|
- name: work-webhook
|
|
image: quay.io/open-cluster-management/work:latest
|
|
imagePullPolicy: IfNotPresent
|
|
args:
|
|
- "/work"
|
|
- "webhook"
|
|
- "--cert-dir=/tmp"
|
|
- "--secure-port=6443"
|
|
# webhook is not hosting any k8s api resource, so it is not subjected to APF feature
|
|
- "--feature-gates=APIPriorityAndFairness=false"
|
|
# enable NilExecutorValidating for e2e
|
|
- "--feature-gates=NilExecutorValidating=true"
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
privileged: false
|
|
runAsNonRoot: true
|