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

Error creating Cluster_Role & Cluster_Role_Binding when metadata name has colon. #91

Open
kaukiran opened this issue Dec 2, 2018 · 0 comments

Comments

@kaukiran
Copy link

kaukiran commented Dec 2, 2018

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]')

References

https://github.com/kubernetes-incubator/metrics-server/blob/master/deploy/1.8%2B/resource-reader.yaml

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