Skip to content

Commit

Permalink
Drop all capabilities for the webhook server container (#1073)
Browse files Browse the repository at this point in the history
  • Loading branch information
qbarrand authored Apr 5, 2024
1 parent 73fe579 commit 2ae391e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ metadata:
}
]
capabilities: Basic Install
createdAt: "2024-04-02T12:56:20Z"
createdAt: "2024-04-04T09:19:49Z"
operatorframework.io/suggested-namespace: openshift-kmm-hub
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
Expand Down Expand Up @@ -355,6 +355,9 @@ spec:
memory: 64Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumeMounts:
- mountPath: /controller_config.yaml
name: manager-config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ metadata:
}
]
capabilities: Basic Install
createdAt: "2024-04-02T12:56:20Z"
createdAt: "2024-04-04T09:19:49Z"
operatorframework.io/suggested-namespace: openshift-kmm
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
Expand Down Expand Up @@ -502,6 +502,9 @@ spec:
memory: 64Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumeMounts:
- mountPath: /controller_config.yaml
name: manager-config
Expand Down
2 changes: 2 additions & 0 deletions config/webhook-server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ spec:
args: [--config=controller_config.yaml]
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: [ALL]
livenessProbe:
httpGet:
path: /healthz
Expand Down

0 comments on commit 2ae391e

Please sign in to comment.