Merge pull request #73393 from ingvagabund/kubemark-providerid

Set ProviderID when running kubemark node
This commit is contained in:
Kubernetes Prow Robot 2019-08-21 06:33:19 -07:00 committed by GitHub
commit b8e8130a91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@ limitations under the License.
package kubemark package kubemark
import ( import (
"fmt"
"time" "time"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@ -118,6 +119,7 @@ func GetHollowKubeletConfig(
f.MaxPerPodContainerCount = 2 f.MaxPerPodContainerCount = 2
f.RegisterNode = true f.RegisterNode = true
f.RegisterSchedulable = true f.RegisterSchedulable = true
f.ProviderID = fmt.Sprintf("kubemark://%v", nodeName)
// Config struct // Config struct
c, err := options.NewKubeletConfiguration() c, err := options.NewKubeletConfiguration()