mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-08-20 04:36:41 +00:00
Merge pull request #1162 from SergeyKanzhelev/fixLint
CodeQL / Analyze (go) (push) Failing after 22s
Scorecard supply-chain security / Scorecard analysis (push) Failing after 36s
CodeQL / Analyze (go) (push) Failing after 22s
Scorecard supply-chain security / Scorecard analysis (push) Failing after 36s
fix linter issues
This commit is contained in:
@@ -158,9 +158,9 @@ func getNodeRef(namespace, nodeName string) *v1.ObjectReference {
|
||||
// TODO(random-liu): Get node to initialize the node reference
|
||||
return &v1.ObjectReference{
|
||||
APIVersion: "v1",
|
||||
Kind: "Node",
|
||||
Name: nodeName,
|
||||
UID: types.UID(nodeName),
|
||||
Namespace: namespace,
|
||||
Kind: "Node",
|
||||
Name: nodeName,
|
||||
UID: types.UID(nodeName),
|
||||
Namespace: namespace,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,9 +87,9 @@ func TestEvent(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestNodeRefHasAPIVersionV1(t *testing.T) {
|
||||
client := newFakeProblemClient()
|
||||
client := newFakeProblemClient()
|
||||
|
||||
if client.nodeRef.APIVersion != "v1" {
|
||||
t.Errorf("expected nodeRef.APIVersion to be 'v1', got %q", client.nodeRef.APIVersion)
|
||||
}
|
||||
if client.nodeRef.APIVersion != "v1" {
|
||||
t.Errorf("expected nodeRef.APIVersion to be 'v1', got %q", client.nodeRef.APIVersion)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user