"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cmd/kubeadm/app/cmd/phases/init/certs.go" between
kubernetes-1.18.14.tar.gz and kubernetes-1.18.15.tar.gz

About: Kubernetes is a platform for automating deployment, scaling, and operations of application containers across clusters of hosts (written in "Go"). 1.18.x series.

certs.go  (kubernetes-1.18.14):certs.go  (kubernetes-1.18.15)
skipping to change at line 154 skipping to change at line 154
options.APIServerCertSANs, options.APIServerCertSANs,
options.NetworkingDNSDomain, options.NetworkingDNSDomain,
options.NetworkingServiceSubnet, options.NetworkingServiceSubnet,
) )
} }
return flags return flags
} }
func getSANDescription(certSpec *certsphase.KubeadmCert) string { func getSANDescription(certSpec *certsphase.KubeadmCert) string {
//Defaulted config we will use to get SAN certs //Defaulted config we will use to get SAN certs
defaultConfig := &kubeadmapiv1beta2.InitConfiguration{ defaultConfig := cmdutil.DefaultInitConfiguration()
LocalAPIEndpoint: kubeadmapiv1beta2.APIEndpoint{ // GetAPIServerAltNames errors without an AdvertiseAddress; this is as go
// GetAPIServerAltNames errors without an AdvertiseAddres od as any.
s; this is as good as any. defaultConfig.LocalAPIEndpoint = kubeadmapiv1beta2.APIEndpoint{
AdvertiseAddress: "127.0.0.1", AdvertiseAddress: "127.0.0.1",
},
} }
defaultInternalConfig := &kubeadmapi.InitConfiguration{} defaultInternalConfig := &kubeadmapi.InitConfiguration{}
kubeadmscheme.Scheme.Default(defaultConfig) kubeadmscheme.Scheme.Default(defaultConfig)
if err := kubeadmscheme.Scheme.Convert(defaultConfig, defaultInternalConf ig, nil); err != nil { if err := kubeadmscheme.Scheme.Convert(defaultConfig, defaultInternalConf ig, nil); err != nil {
return "" return ""
} }
certConfig, err := certSpec.GetConfig(defaultInternalConfig) certConfig, err := certSpec.GetConfig(defaultInternalConfig)
if err != nil { if err != nil {
return "" return ""
 End of changes. 2 change blocks. 
6 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)