sso-secret pre-upgrade hook lets ECK render node sets without the keystore
Problem
- chart/templates/bigbang/sso-secret.yaml renders sso-secret as a pre-install,pre-upgrade hook with no delete policy. Helm deletes and recreates it on every upgrade.
- ECK watches sso-secret through secureSettings. A reconcile in that gap logs
Secure settings secret not foundand renders the node sets without the keystore init container and the secure settings volume. - During an Elasticsearch version upgrade ECK holds the master StatefulSet until the data nodes finish, so the bad template stays. A master pod recreated from it fails in its keystore init container on the missing OIDC client secret, and the upgrade deadlocks.
Proposed fix
- Render sso-secret as a release resource with the keep resource policy instead of a hook.
- Flux adopts the existing secret in place through take-ownership. The keep policy stops a rollback to a hook-era release from deleting it.
Edited by Carl Lawson