sl1pm4t/terraform-provider-kubernetes

Support k8s role and rolebinding

Closed this issue ยท 6 comments

Any plans to work on this? If not, I would be more than willing to submit a pull request.

Hi @gkumar7
I would like to add this, but haven't had the time yet.
If you want to work on it, please go ahead.

I have an implementation of cluster_role_binding on https://github.com/immuta/terraform-provider-kubernetes which you're welcome to use as a starting point. I wanted to write some tests before contributing it back.

@jeffmhastings I just gave your fork a try and keep getting an EOF is there special setup required?:

018-06-02T16:57:31.690-0700 [DEBUG] plugin.terraform-provider-kubernetes_v1.1.0-immuta_x4: goroutine 299 [running]:
2018-06-02T16:57:31.690-0700 [DEBUG] plugin.terraform-provider-kubernetes_v1.1.0-immuta_x4: github.com/terraform-providers/terraform-provider-kubernetes/kubernetes.resourceKubernetesClusterRoleBindingCreate(0xc4205de380, 0x212daa0, 0xc4205878c0, 0xc4205de380, 0x0)
2018-06-02T16:57:31.690-0700 [DEBUG] plugin.terraform-provider-kubernetes_v1.1.0-immuta_x4: 	/Users/jeff/Development/go/src/github.com/terraform-providers/terraform-provider-kubernetes/kubernetes/resource_kubernetes_cluster_role_binding.go:88 +0x78a

Oh, there was actually a bug caused in a rebase that affected clusterrole and clusterrolebinding. It has been fixed on the "custom" branch so should work if you pull and build that with 'make build' or just 'go build'

can we merge it then? role/rolebinding would be pretty cool with terraform

gaui commented

The only thing we are lacking is ClusterRoleBinding ๐Ÿ™