Commit fb148d8
committed
fix: nil pointer in checkDiffAndPrepareUpdate for MasterAuthorizedNetworksConfig
Initialize DesiredControlPlaneEndpointsConfig and IpEndpointsConfig
before assigning AuthorizedNetworksConfig to prevent nil pointer
dereference during cluster reconciliation.
When reconciling a GKE cluster, checkDiffAndPrepareUpdate compares the
desired MasterAuthorizedNetworksConfig with the existing one. If they
differ, it attempts to set clusterUpdate.DesiredControlPlaneEndpointsConfig
.IpEndpointsConfig.AuthorizedNetworksConfig without first initializing
the parent structs, causing a nil pointer dereference.
This is related to issue #1497 but affects the update/reconciliation
path rather than the creation path addressed in PR #1503.
Signed-off-by: Piotr Kieszczyński <piotr.kieszczynski@gmail.com>1 parent e6e3646 commit fb148d8
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
519 | 525 | | |
520 | 526 | | |
521 | 527 | | |
| |||
0 commit comments