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.
Running
kubectl diff -kunder Windows fails with the following error: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-delegatortoname: resource-metrics_system_auth-delegatorsolves the compatibility issue under Windows.