Skip to content

Commit ee6471c

Browse files
committed
support running krr on openshift, using prometheus auth provided by the user
1 parent 053350a commit ee6471c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • playbooks/robusta_playbooks

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)