Describe the bug
Terraform runs into an error, if a Kubernetes resource name contains a colon (like metrics-server:system:auth-delegator).
Error: /usr/local/bin/kubectl kubectl --kubeconfig /Users/someuser/.kube/kube-config-accepted-manatee get --ignore-not-found clusterrolebindings/metrics-server%3Asystem%3Aauth-delegator exit status 1: error: invalid resource name "metrics-server%3Asystem%3Aauth-delegator": [may not contain '%']
Steps to reproduce the issue:
I wanted to deploy the Kubernetes metrics server via Terraform, which contained the ClusterRoleBinding below:
Describe the bug Terraform runs into an error, if a Kubernetes resource name contains a colon (like
metrics-server:system:auth-delegator
).Steps to reproduce the issue: I wanted to deploy the Kubernetes metrics server via Terraform, which contained the
ClusterRoleBinding
below:Expected behavior Resources should be created regardless of colons in their names.