Skip to content

ClusterRoleBinding name causes errors on Windows #2750

Description

@kafumanto

Running kubectl diff -k under Windows fails with the following error:

error: open C:\Users\xxx\AppData\Local\Temp\LIVE-2610380734\rbac.authorization.k8s.io.v1.ClusterRoleBinding..resource-metrics:system:auth-delegator: The filename, directory name, or volume label syntax is incorrect.

caused by the usage of the colon : character in the resource name of a ClusterRoleBinding, that is not a valid character for filenames under Windows.

Enforcing the Kubernetes specifications about names (i.e. "contain at most 63 characters, contain only lowercase alphanumeric characters or '-', start with an alphanumeric character, end with an alphanumeric character") renaming the ClusterRoleBinding resource with name: resource-metrics:system:auth-delegator to name: resource-metrics_system_auth-delegator solves the compatibility issue under Windows.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions