Skip to content

Add ROSA support to ocp4_workload_authentication#147

Merged
wkulhanek merged 2 commits into
mainfrom
rosa-auth
Jun 30, 2026
Merged

Add ROSA support to ocp4_workload_authentication#147
wkulhanek merged 2 commits into
mainfrom
rosa-auth

Conversation

@wkulhanek

@wkulhanek wkulhanek commented May 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Auto-detects ROSA clusters via Infrastructure resource tags (red-hat-clustertype: rosa)
  • Uses rosa create idp --type openid instead of OAuth CRD for Keycloak integration on ROSA (OAuth CRD is not supported on managed ROSA clusters)
  • Fails early with clear message if htpasswd provider is selected on ROSA
  • Deletes ROSA HTPasswd admin user when ocp4_workload_authentication_remove_kubeadmin: true
  • rosa create idp / rosa delete idp commands are delegated to bastion (ROSA CLI session not available in EE)
  • No changes to IPI/non-ROSA clusters — existing behavior is unchanged

Auto-detect ROSA clusters via Infrastructure resource tags
(red-hat-clustertype: rosa) and use `rosa create idp --type openid`
instead of patching the OAuth CRD, which is not supported on ROSA.

Changes:
- workload.yml: Auto-detect ROSA, fail on htpasswd+ROSA, delete ROSA
  admin when remove_kubeadmin is true
- setup_keycloak.yml: Conditional OAuth integration — OAuth CRD for
  IPI, rosa create idp for ROSA (delegated to bastion)
- remove_workload.yml: Conditional cleanup — OAuth CRD reset for IPI,
  rosa delete idp for ROSA
- defaults/main.yml: Add rosa_cluster_name variable

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
agonzalezrh
agonzalezrh previously approved these changes May 23, 2026
@wkulhanek wkulhanek merged commit 383300a into main Jun 30, 2026
1 check failed
@wkulhanek wkulhanek deleted the rosa-auth branch June 30, 2026 13:23
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