current: unknownUse this procedure to diagnose and resolve a Kubernetes encryption status mismatch where current remains unknown.
One or more of the following symptoms are possible:
/usr/share/doc/csm/scripts/operations/kubernetes/encryption.sh --status reports:current: unknown
goal: identity
etcd: identity
interim state detected, ensure all control plane nodes are in sync
cray-k8s-encryption logs show RBAC failure when rewriting secrets:failed to list CRDs: customresourcedefinitions.apiextensions.k8s.io is forbidden
User "system:serviceaccount:kube-system:cray-k8s-encryption" cannot list resource "customresourcedefinitions"
In the following procedure, run commands on any management NCN with a working kubectl context.
Use this workaround only if all control-plane nodes, goal, and etcd are already identity.
(ncn-mw#) Set the current annotation manually.
kubectl annotate secret --overwrite -n kube-system cray-k8s-encryption current=identity
(ncn-mw#) Re-run status.
/usr/share/doc/csm/scripts/operations/kubernetes/encryption.sh --status
(ncn-mw#) Confirm final status convergence.
current: identity
goal: identity
etcd: identity