mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #76763 from SataQiu/ifx-golint-kubelet-20190419
Fix golint failures of pkg/kubelet/apis
This commit is contained in:
commit
5a790bce3b
@ -160,7 +160,6 @@ pkg/kubectl/generate/versioned
|
|||||||
pkg/kubectl/metricsutil
|
pkg/kubectl/metricsutil
|
||||||
pkg/kubectl/util/templates
|
pkg/kubectl/util/templates
|
||||||
pkg/kubelet
|
pkg/kubelet
|
||||||
pkg/kubelet/apis
|
|
||||||
pkg/kubelet/apis/config
|
pkg/kubelet/apis/config
|
||||||
pkg/kubelet/apis/config/v1beta1
|
pkg/kubelet/apis/config/v1beta1
|
||||||
pkg/kubelet/apis/deviceplugin/v1beta1
|
pkg/kubelet/apis/deviceplugin/v1beta1
|
||||||
|
@ -17,6 +17,7 @@ limitations under the License.
|
|||||||
package apis
|
package apis
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
// AnnotationProvidedIPAddr is a node IP annotation set by the "external" cloud provider.
|
||||||
// When kubelet is started with the "external" cloud provider, then
|
// When kubelet is started with the "external" cloud provider, then
|
||||||
// it sets this annotation on the node to denote an ip address set from the
|
// it sets this annotation on the node to denote an ip address set from the
|
||||||
// cmd line flag (--node-ip). This ip is verified with the cloudprovider as valid by
|
// cmd line flag (--node-ip). This ip is verified with the cloudprovider as valid by
|
||||||
|
@ -24,10 +24,12 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// HypervIsolationAnnotationKey and HypervIsolationValue are used to run windows containers with hyperv isolation.
|
// HypervIsolationAnnotationKey is used to run windows containers with hyperv isolation.
|
||||||
// Refer https://aka.ms/hyperv-container.
|
// Refer https://aka.ms/hyperv-container.
|
||||||
HypervIsolationAnnotationKey = "experimental.windows.kubernetes.io/isolation-type"
|
HypervIsolationAnnotationKey = "experimental.windows.kubernetes.io/isolation-type"
|
||||||
HypervIsolationValue = "hyperv"
|
// HypervIsolationValue is used to run windows containers with hyperv isolation.
|
||||||
|
// Refer https://aka.ms/hyperv-container.
|
||||||
|
HypervIsolationValue = "hyperv"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ShouldIsolatedByHyperV returns true if a windows container should be run with hyperv isolation.
|
// ShouldIsolatedByHyperV returns true if a windows container should be run with hyperv isolation.
|
||||||
|
@ -24,10 +24,15 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// The OS/Arch labels are promoted to GA in 1.14. kubelet applies both beta
|
// LabelOS is a label to indicate the operating system of the node.
|
||||||
|
// The OS labels are promoted to GA in 1.14. kubelet applies both beta
|
||||||
// and GA labels to ensure backward compatibility.
|
// and GA labels to ensure backward compatibility.
|
||||||
// TODO: stop applying the beta OS/Arch labels in Kubernetes 1.18.
|
// TODO: stop applying the beta OS labels in Kubernetes 1.18.
|
||||||
LabelOS = "beta.kubernetes.io/os"
|
LabelOS = "beta.kubernetes.io/os"
|
||||||
|
// LabelArch is a label to indicate the architecture of the node.
|
||||||
|
// The Arch labels are promoted to GA in 1.14. kubelet applies both beta
|
||||||
|
// and GA labels to ensure backward compatibility.
|
||||||
|
// TODO: stop applying the beta Arch labels in Kubernetes 1.18.
|
||||||
LabelArch = "beta.kubernetes.io/arch"
|
LabelArch = "beta.kubernetes.io/arch"
|
||||||
|
|
||||||
// GA versions of the legacy beta labels.
|
// GA versions of the legacy beta labels.
|
||||||
|
Loading…
Reference in New Issue
Block a user