Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Create/Delete Cluster administrative users mapping #809

Open
davivcgarcia opened this issue Oct 4, 2024 · 1 comment

Comments

@davivcgarcia
Copy link

davivcgarcia commented Oct 4, 2024

Description

The current set of Terraform modules allows us to create ROSA clusters and configure the IdP, but lacks (or it's undocumented) the feature of allowing us to map IdP Users into Cluster Roles. This creates a chicken-or-the-egg problem for who is trying to have a cluster vending machine (fully automated deployment of ROSA clusters - with operators, extensions, etc).

Context

The feature is available on Red Hat Hybrid Console > OpenShift Cluster Management:

Screenshot 2024-10-04 at 17 48 50

@davivcgarcia
Copy link
Author

Currently, I'm using this workaround:

resource "null_resource" "cluster_permission_workaround" {
  depends_on = [module.htpasswd_idp]
  provisioner "local-exec" {
    command = <<-EOT
    rosa login --token=${var.rhcs_token}
    rosa grant user dedicated-admin --user=${var.openshift_demo_user_login} --cluster=${var.environment_name}
    EOT
  }
}

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

No branches or pull requests

1 participant