Skip to content

[ocp4_workload_ols] Restore auth workload variable references in defaults#20

Merged
wkulhanek merged 1 commit intomainfrom
ols-defaults-27-feb
Feb 27, 2026
Merged

[ocp4_workload_ols] Restore auth workload variable references in defaults#20
wkulhanek merged 1 commit intomainfrom
ols-defaults-27-feb

Conversation

@stencell
Copy link
Contributor

Summary

  • Restore ocp4_workload_authentication_* variable references in the OLS role defaults
  • Each variable falls back to a sensible literal if the auth workload is not in play
  • Prevents misconfiguration when OLS is deployed without a matching auth workload

Changes

roles/ocp4_workload_ols/defaults/main.yaml

The user access variables now auto-derive from ocp4_workload_authentication when present:

Variable Source Fallback
ocp4_workload_ols_auth_provider ocp4_workload_authentication_provider htpasswd
ocp4_workload_ols_admin_username ocp4_workload_authentication_admin_username admin
ocp4_workload_ols_htpasswd_secret_name ocp4_workload_authentication_htpasswd_secret_name htpasswd
ocp4_workload_ols_keycloak_namespace ocp4_workload_authentication_keycloak_namespace keycloak
ocp4_workload_ols_keycloak_realm ocp4_workload_authentication_keycloak_default_realm sso

Use ocp4_workload_authentication_* variables as defaults so the role
automatically picks up the correct values when the auth workload is
present, while still falling back to sensible literals if it is not.
@wkulhanek wkulhanek merged commit 780146e into main Feb 27, 2026
1 check passed
@wkulhanek wkulhanek deleted the ols-defaults-27-feb branch February 27, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants