You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: nil pointer dereferences in private cluster reconciliation
Fixes two nil pointer dereference issues when creating/reconciling
private GKE clusters:
1. Creation path: Initialize NetworkConfig before accessing
DefaultEnablePrivateNodes. Also set EnablePrivateNodes on
PrivateClusterConfig to match (GCP SDK requires both to be equal).
2. Reconciliation path: Initialize DesiredControlPlaneEndpointsConfig
and IpEndpointsConfig before assigning AuthorizedNetworksConfig
in checkDiffAndPrepareUpdate.
Both issues occur when using private clusters with PSC (Private Service
Connect) mode, i.e., enablePrivateEndpoint: true without specifying
controlPlaneCidrBlock.
Related issues:
- kubernetes-sigs#1497
- kubernetes-sigs#1503
Signed-off-by: Piotr Kieszczyński <piotr.kieszczynski@gmail.com>
0 commit comments