Skip to content

Commit

Permalink
set readOnlyRootFilesystem: true for controller
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Trent <[email protected]>
  • Loading branch information
trent-s committed Sep 12, 2024
1 parent b5504b6 commit 97a6886
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bundle/manifests/susql-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ metadata:
capabilities: Basic Install
categories: Monitoring
containerImage: quay.io/sustainable_computing_io/susql_operator:0.0.30
createdAt: "2024-09-11T00:19:43Z"
createdAt: "2024-09-12T05:06:08Z"
description: 'Aggregates energy and CO2 emission data for pods tagged with SusQL
labels '
operators.operatorframework.io/builder: operator-sdk-v1.36.1
Expand Down Expand Up @@ -408,4 +408,5 @@ spec:
provider:
name: SusQL Operator Contributors
url: https://github.com/sustainable-computing-io/susql-operator
replaces: susql-operator.v0.0.29
version: 0.0.30
1 change: 1 addition & 0 deletions config/default/manager_config_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spec:
runAsUser: 11001
runAsGroup: 11001
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
capabilities:
drop:
Expand Down
1 change: 1 addition & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ spec:
runAsNonRoot: true
runAsUser: 11001
runAsGroup: 11001
readOnlyRootFilesystem: true
# TODO(user): For common cases that do not require escalating privileges
# it is recommended to ensure that all your Pods/Containers are restrictive.
# More info: https://kubernetes.io/docs/concepts/security/pod-security-standards/#restricted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,5 @@ spec:
provider:
name: SusQL Operator Contributors
url: https://github.com/sustainable-computing-io/susql-operator
replaces: susql-operator.v0.0.29
version: 0.0.0

0 comments on commit 97a6886

Please sign in to comment.