Skip to content

Commit

Permalink
Use "namespaced" RBAC mode by default
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyTetrahedron committed Sep 20, 2024
1 parent 486d82a commit 2342110
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 42 deletions.
7 changes: 5 additions & 2 deletions class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ parameters:

deploymentMode: SimpleScalable

rbac:
namespaced: true

backend:
nodeSelector: ${loki:globalNodeSelector}
replicas: 3
Expand Down Expand Up @@ -184,8 +187,8 @@ parameters:
dnsNamespace: openshift-dns

image:
# -- Overrides the Docker registry globally for all images
registry: ${loki:images:global:registry}
# -- Overrides the Docker registry globally for all images
registry: ${loki:images:global:registry}

sidecar:
nodeSelector: ${loki:globalNodeSelector}
Expand Down
2 changes: 1 addition & 1 deletion component/main.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ local secrets = com.generateResources(

{
[if params.namespace.create then '00_namespace']: kube.Namespace(params.namespace.name) {
metadata+: com.makeMergeable(params.namespace.metadata),
metadata+: com.makeMergeable(params.namespace.metadata),
},
'01_secrets': secrets,
// Empty file to make sure the directory is created. Later used in patching alerts.
Expand Down
2 changes: 1 addition & 1 deletion tests/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ parameters:
output_path: vendor/lib/alert-patching.libsonnet
- type: https
source: https://raw.githubusercontent.com/appuio/component-openshift4-monitoring/v5.5.1/lib/openshift4-monitoring-prom.libsonnet
output_path: vendor/lib/prom.libsonnet
output_path: vendor/lib/prom.libsonnet

This file was deleted.

This file was deleted.

0 comments on commit 2342110

Please sign in to comment.