Skip to content

Commit 90bfdaf

Browse files
committed
Pass --opa.skip-namespace-inference flag to OPA openshift
In Loki operator, when set up with openshift for network logs, pass the --opa.skip-namespace-inference flag set to true to allow fine-grained RBAC Related: observatorium/opa-openshift#24 Signed-off-by: Joel Takvorian <jtakvori@redhat.com>
1 parent 3195036 commit 90bfdaf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

operator/internal/manifests/openshift/opa_openshift.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ func newOPAOpenShiftContainer(mode lokiv1.ModeType, secretVolumeName, tlsDir, mi
5858
args = append(args, []string{
5959
fmt.Sprintf("--opa.matcher=%s", opaNetworkLabelMatchers),
6060
"--opa.matcher-op=or",
61+
"--opa.skip-namespace-inference=true",
6162
}...)
6263
}
6364

0 commit comments

Comments
 (0)