"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cmd/kubeadm/app/cmd/alpha/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 286 skipping to change at line 286
internalcfg, err := configutil.FetchInitConfigurationFrom Cluster(client, out, logPrefix, false) internalcfg, err := configutil.FetchInitConfigurationFrom Cluster(client, out, logPrefix, false)
if err == nil { if err == nil {
fmt.Println() // add empty line to separate the F etchInitConfigurationFromCluster output from the command output fmt.Println() // add empty line to separate the F etchInitConfigurationFromCluster output from the command output
return internalcfg, nil return internalcfg, nil
} }
fmt.Printf("[%s] Error reading configuration from the Clu ster. Falling back to default configuration\n\n", logPrefix) fmt.Printf("[%s] Error reading configuration from the Clu ster. Falling back to default configuration\n\n", logPrefix)
} }
} }
// Otherwise read config from --config if provided, otherwise use default configuration // Otherwise read config from --config if provided, otherwise use default configuration
return configutil.LoadOrDefaultInitConfiguration(cfgPath, &kubeadmapiv1be ta2.InitConfiguration{}, &cfg) return configutil.LoadOrDefaultInitConfiguration(cfgPath, cmdutil.Default InitConfiguration(), &cfg)
} }
// newCmdCertsExpiration creates a new `cert check-expiration` command. // newCmdCertsExpiration creates a new `cert check-expiration` command.
func newCmdCertsExpiration(out io.Writer, kdir string) *cobra.Command { func newCmdCertsExpiration(out io.Writer, kdir string) *cobra.Command {
flags := &expirationFlags{ flags := &expirationFlags{
cfg: kubeadmapiv1beta2.ClusterConfiguration{ cfg: kubeadmapiv1beta2.ClusterConfiguration{
// Setting kubernetes version to a default value in order to allow a not necessary internet lookup // Setting kubernetes version to a default value in order to allow a not necessary internet lookup
KubernetesVersion: constants.CurrentKubernetesVersion.Str ing(), KubernetesVersion: constants.CurrentKubernetesVersion.Str ing(),
}, },
kubeconfigPath: kubeadmconstants.GetAdminKubeConfigPath(), kubeconfigPath: kubeadmconstants.GetAdminKubeConfigPath(),
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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