Skip to content

Add ROSA support to ocp4_workload_authentication#147

Open
wkulhanek wants to merge 1 commit into
mainfrom
rosa-auth
Open

Add ROSA support to ocp4_workload_authentication#147
wkulhanek wants to merge 1 commit into
mainfrom
rosa-auth

Conversation

@wkulhanek
Copy link
Copy Markdown
Contributor

@wkulhanek wkulhanek commented May 23, 2026

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>
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