rancher / rancherd

Bootstrap Rancher and k3s/rke2
Apache License 2.0
43 stars 23 forks source link

rancherd is creating the `local-rke-state` secret as type `Opaque` instead of the correct type `rke.cattle.io/cluster-state` #29

Open Oats87 opened 1 year ago

Oats87 commented 1 year ago

I am adding enforcement to Rancher's planner to ensure that the *-rke-state secret we store the tokens for a cluster is of type rke.cattle.io/cluster-state. Right now, rancherd creates the secret as type Opaque.

See: https://github.com/rancher/rancherd/blob/daf3859ae11e8a9803e7234c358e9a5a70f2a8b9/pkg/resources/resources.go#L109

Oats87 commented 1 year ago

The PR that adds this enforcement is here: https://github.com/rancher/rancher/pull/41088