Error creating Cluster_Role & Cluster_Role_Binding when metadata name has colon.
kaukiran opened this issue · 0 comments
Hi there,
I'm trying to apply metrics-server manifest files.
https://github.com/kubernetes-incubator/metrics-server/tree/master/deploy/1.8%2B
It appears like colon is not supported in metadata name. However, i see cluster-role, cluster-role-binding can be created with example foo:bar
Affected Resource(s)
- cluster_role
- cluster_role_binding
Debug Output
Error: module.metrics-server.kubernetes_cluster_role_binding.metrics-server-auth-crb: metadata.0.name name part must consist of alphanumeric characters, '-', '' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9.]*)?[A-Za-z0-9]')
Error: module.metrics-server.kubernetes_cluster_role.metrics-server-aggregated-reader: metadata.0.name name part must consist of alphanumeric characters, '-', '' or '.',and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9.]*)?[A-Za-z0-9]')