mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-30 21:30:16 +00:00 
			
		
		
		
	fix golint failures of pkg/kubelet/apis
This commit is contained in:
		| @@ -163,7 +163,6 @@ pkg/kubectl/generate/versioned | ||||
| pkg/kubectl/metricsutil | ||||
| pkg/kubectl/util/templates | ||||
| pkg/kubelet | ||||
| pkg/kubelet/apis | ||||
| pkg/kubelet/apis/config | ||||
| pkg/kubelet/apis/config/v1beta1 | ||||
| pkg/kubelet/apis/deviceplugin/v1beta1 | ||||
|   | ||||
| @@ -17,6 +17,7 @@ limitations under the License. | ||||
| package apis | ||||
|  | ||||
| const ( | ||||
| 	// AnnotationProvidedIPAddr is a node IP annotation set by the "external" cloud provider. | ||||
| 	// 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 | ||||
| 	// cmd line flag (--node-ip). This ip is verified with the cloudprovider as valid by | ||||
|   | ||||
| @@ -24,9 +24,11 @@ import ( | ||||
| ) | ||||
|  | ||||
| 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. | ||||
| 	HypervIsolationAnnotationKey = "experimental.windows.kubernetes.io/isolation-type" | ||||
| 	// HypervIsolationValue is used to run windows containers with hyperv isolation. | ||||
| 	// Refer https://aka.ms/hyperv-container. | ||||
| 	HypervIsolationValue = "hyperv" | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -24,10 +24,15 @@ import ( | ||||
| ) | ||||
|  | ||||
| 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. | ||||
| 	// 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" | ||||
| 	// 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" | ||||
|  | ||||
| 	// GA versions of the legacy beta labels. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user