Skip to content

Commit 95d5c52

Browse files
authored
support running krr on openshift, using prometheus auth provided by the user (#1782)
1 parent 053350a commit 95d5c52

File tree

1 file changed

+2
-1
lines changed
  • playbooks/robusta_playbooks

1 file changed

+2
-1
lines changed

playbooks/robusta_playbooks/krr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ def krr_scan(event: ExecutionBaseEvent, params: KRRParams):
295295
env_var: List[EnvVar] = []
296296
secret: Optional[JobSecret] = None
297297

298-
if IS_OPENSHIFT:
298+
if IS_OPENSHIFT and params.prometheus_auth is None:
299+
# if openshift, and the user didn't define auth header, use openshift token
299300
python_command += " --openshift"
300301
else:
301302
# adding env var of auth token from Secret

0 commit comments

Comments
 (0)