mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 05:25:14 +09:00
Same class of upgrade regression: a customer who wired their own structured AuthenticationConfiguration by hand via `controlPlane.apiServer.extraArgs: [--authentication-config=...]` would hit a duplicate-flag scenario the moment they toggle `spec.oidc.mode` — kube-apiserver would receive two conflicting --authentication-config= arguments and the last-wins behaviour is undefined between apiserver versions. Add a second render-time guard that fails when a legacy --authentication-config= is present in the user-supplied extraArgs AND spec.oidc.mode is not None, pointing at the CustomConfig migration path (customConfig.config or customConfig.secretRef.name). Signed-off-by: Ivan Okhotnikov <ivan.okhotnikov@aenix.io>