Skip to content

Commit

Permalink
Add ck8scontrolplane extraSANs to the /capi/etc/config.yaml:extra-sans
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-vladu-canonical committed Jan 21, 2025
1 parent 9690f71 commit 14669e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/ck8s/config_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ func GenerateInitControlPlaneConfig(cfg InitControlPlaneConfig) (apiv1.Bootstrap
}
}

// extra SANs
// extra SANs to concatened to the ControlPlaneEndpoint IP
out.ExtraSANs = cfg.ControlPlaneConfig.ExtraSANs
out.ExtraSANs = append(out.ExtraSANs, cfg.ControlPlaneEndpoint)

if v := cfg.ControlPlaneConfig.NodeTaints; len(v) > 0 {
Expand Down

0 comments on commit 14669e6

Please sign in to comment.