Open Oats87 opened 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.
*-rke-state
rke.cattle.io/cluster-state
rancherd
Opaque
See: https://github.com/rancher/rancherd/blob/daf3859ae11e8a9803e7234c358e9a5a70f2a8b9/pkg/resources/resources.go#L109
The PR that adds this enforcement is here: https://github.com/rancher/rancher/pull/41088
I am adding enforcement to Rancher's planner to ensure that the
*-rke-state
secret we store the tokens for a cluster is of typerke.cattle.io/cluster-state
. Right now,rancherd
creates the secret as typeOpaque
.See: https://github.com/rancher/rancherd/blob/daf3859ae11e8a9803e7234c358e9a5a70f2a8b9/pkg/resources/resources.go#L109