1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

Merge pull request #1765 from marquiz/devel/typo

nfd-master: fix typos
This commit is contained in:
Kubernetes Prow Robot 2024-07-08 23:57:56 -07:00 committed by GitHub
commit fdddae2846
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1059,7 +1059,7 @@ func (m *nfdMaster) refreshNodeFeatures(cli k8sclient.Interface, node *corev1.No
// nodeFeatureRule custom resorce. If empty list of taints is passed, currently // nodeFeatureRule custom resorce. If empty list of taints is passed, currently
// NFD owned taints and annotations are removed from the node. // NFD owned taints and annotations are removed from the node.
func setTaints(cli k8sclient.Interface, taints []corev1.Taint, node *corev1.Node) error { func setTaints(cli k8sclient.Interface, taints []corev1.Taint, node *corev1.Node) error {
// De-serialize the taints annotation into corev1.Taint type for comparision below. // De-serialize the taints annotation into corev1.Taint type for comparison below.
var err error var err error
oldTaints := []corev1.Taint{} oldTaints := []corev1.Taint{}
if val, ok := node.Annotations[nfdv1alpha1.NodeTaintsAnnotation]; ok { if val, ok := node.Annotations[nfdv1alpha1.NodeTaintsAnnotation]; ok {
@ -1482,7 +1482,7 @@ func stringToNsNames(cslist, ns string) []string {
return names return names
} }
// Seperate denied namespaces into two lists: // Separate denied namespaces into two lists:
// one contains wildcard namespaces the other contains normal namespaces // one contains wildcard namespaces the other contains normal namespaces
func preProcessDeniedNamespaces(deniedNs map[string]struct{}) (normalDeniedNs map[string]struct{}, wildcardDeniedNs map[string]struct{}) { func preProcessDeniedNamespaces(deniedNs map[string]struct{}) (normalDeniedNs map[string]struct{}, wildcardDeniedNs map[string]struct{}) {
normalDeniedNs = map[string]struct{}{} normalDeniedNs = map[string]struct{}{}