kubelet: promote OS & arch labels to GA

kubelet now applies both the beta and the GA labels to ensure backward
compatibility.
This commit is contained in:
Yu-Ju Hong
2019-02-11 11:24:58 -08:00
parent f7c4389b79
commit 04575f01b0
4 changed files with 16 additions and 16 deletions

View File

@@ -1046,10 +1046,10 @@ func TestRegisterWithApiServer(t *testing.T) {
Name: testKubeletHostname,
Labels: map[string]string{
v1.LabelHostname: testKubeletHostname,
v1.LabelOSStable: goruntime.GOOS,
v1.LabelArchStable: goruntime.GOARCH,
v1.LabelOS: goruntime.GOOS,
v1.LabelArch: goruntime.GOARCH,
v1.LegacyLabelOS: goruntime.GOOS,
v1.LegacyLabelArch: goruntime.GOARCH,
},
},
}, nil
@@ -1093,10 +1093,10 @@ func TestTryRegisterWithApiServer(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{
Labels: map[string]string{
v1.LabelHostname: testKubeletHostname,
v1.LabelOSStable: goruntime.GOOS,
v1.LabelArchStable: goruntime.GOARCH,
v1.LabelOS: goruntime.GOOS,
v1.LabelArch: goruntime.GOARCH,
v1.LegacyLabelOS: goruntime.GOOS,
v1.LegacyLabelArch: goruntime.GOARCH,
},
},
}