Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
if Kind and APIVersion is not set in config.yaml. (These are set
as omit if empty upstream)
  • Loading branch information
puneetguptanitj authored Aug 11, 2018
1 parent 035dbe7 commit 76edce5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apis/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ func SetInitDefaults(config *InitConfiguration) {
SetMasterConfigurationNetworkingDefaultsWithNetworking(config)
// Third use the remainder of MasterConfiguration defaults
kubeadmv1alpha1.SetDefaults_MasterConfiguration(&config.MasterConfiguration)
config.MasterConfiguration.Kind = "MasterConfiguration"
config.MasterConfiguration.APIVersion = "kubeadm.k8s.io/v1alpha1"
config.MasterConfiguration.KubernetesVersion = constants.KubernetesVersion
config.MasterConfiguration.NoTaintMaster = true
config.MasterConfiguration.APIServerExtraArgs = map[string]string{
Expand Down

0 comments on commit 76edce5

Please sign in to comment.