rancher / dashboard

The Rancher UI
https://rancher.com
Apache License 2.0
450 stars 256 forks source link

Cluster labels are incorrectly converted to camelCase #10772

Open dk-d-n opened 5 months ago

dk-d-n commented 5 months ago

Setup

Describe the bug When creating a cluster using YAML in the UI, labels with "_"/underscores are incorrectly being converted to camelcase

To Reproduce

  1. Navigate to Cluster Management page
  2. Start to create an RKE1 vSphere cluster
  3. Instead of using the UI input form, edit as YAML, and add cluster labels using underscores.
  4. Create cluster

Result View labels on cluster and see labels with underscores being converted to camelcase

Expected Result I expect labels to maintain underscores instead of being converted.

richard-cox commented 5 months ago

Could you provide an example, is the underscore part of the prefix or name (https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set)?