Commit f41f1887 authored by stewart-yu's avatar stewart-yu

Fix minor err in kubeadm

parent 2c9ffc0e
...@@ -168,16 +168,16 @@ func TestResolveFeatureGateDependencies(t *testing.T) { ...@@ -168,16 +168,16 @@ func TestResolveFeatureGateDependencies(t *testing.T) {
expectedFeatures: map[string]bool{}, expectedFeatures: map[string]bool{},
}, },
{ // others flags { // others flags
inputFeatures: map[string]bool{"SupportIPVSProxyMode": true}, inputFeatures: map[string]bool{CoreDNS: true},
expectedFeatures: map[string]bool{"SupportIPVSProxyMode": true}, expectedFeatures: map[string]bool{CoreDNS: true},
}, },
{ // just StoreCertsInSecrets flags { // just StoreCertsInSecrets flags
inputFeatures: map[string]bool{"StoreCertsInSecrets": true}, inputFeatures: map[string]bool{StoreCertsInSecrets: true},
expectedFeatures: map[string]bool{"StoreCertsInSecrets": true, "SelfHosting": true}, expectedFeatures: map[string]bool{StoreCertsInSecrets: true, SelfHosting: true},
}, },
{ // just HighAvailability flags { // just HighAvailability flags
inputFeatures: map[string]bool{"HighAvailability": true}, inputFeatures: map[string]bool{HighAvailability: true},
expectedFeatures: map[string]bool{"HighAvailability": true, "StoreCertsInSecrets": true, "SelfHosting": true}, expectedFeatures: map[string]bool{HighAvailability: true, StoreCertsInSecrets: true, SelfHosting: true},
}, },
} }
......
...@@ -200,7 +200,7 @@ func createCoreDNSAddon(deploymentBytes, serviceBytes, configBytes []byte, clien ...@@ -200,7 +200,7 @@ func createCoreDNSAddon(deploymentBytes, serviceBytes, configBytes []byte, clien
coreDNSServiceAccount := &v1.ServiceAccount{} coreDNSServiceAccount := &v1.ServiceAccount{}
if err := kuberuntime.DecodeInto(legacyscheme.Codecs.UniversalDecoder(), []byte(CoreDNSServiceAccount), coreDNSServiceAccount); err != nil { if err := kuberuntime.DecodeInto(legacyscheme.Codecs.UniversalDecoder(), []byte(CoreDNSServiceAccount), coreDNSServiceAccount); err != nil {
return fmt.Errorf("unable to decode CoreDNS configmap %v", err) return fmt.Errorf("unable to decode CoreDNS serviceaccount %v", err)
} }
// Create the ConfigMap for CoreDNS or update it in case it already exists // Create the ConfigMap for CoreDNS or update it in case it already exists
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment