Open
Description
Terraform Version and Provider Version
Terraform v0.12.13
- provider.kubernetes v1.11.3
Affected Resource(s)
- kubernetes_role_binding
- maybe kubernetes_cluster_role_binding (not tested)
Terraform Configuration Files
resource "kubernetes_role_binding" "foo" {
metadata {
name = "terraform-example"
namespace = var.namespace
}
role_ref {
api_group = "roles.authorization.openshift.io"
kind = "Role"
name = "admin"
}
subject {
kind = "User"
name = var.ldap
api_group = "users.user.openshift.io"
}
}
Debug Output
https://gist.github.com/billietlsfeir/740105b4f05ecae4121cc0f0a66ab772
Panic Output
No panic
Expected Behavior
Terraform should have created a RoleBinding object in kubernetes tying the specified User with the OpenShift Role.
Actual Behavior
APIGroups for rolerefs are restricted to Kubernetes', and we can't plan apply the provided snippet.
Steps to Reproduce
- Configure your kubectl client to connect to an existing kubernetes cluster.
Important Factoids
I attempted to manage RoleBindings in OpenShift, which use specific apigroups for roles and users. Since the apigroup is the same for RoleBinding, I don't understand why this requirement.
References
None.
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment