Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
truenas-rk3588
kube-router
Commits
d1218d15
Commit
d1218d15
authored
3 years ago
by
Aaron U'Ren
Browse files
Options
Download
Email Patches
Plain Diff
feat(.golangci.yml): enable unconvert linter and remediate
parent
1d90e215
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.golangci.yml
+1
-0
.golangci.yml
pkg/controllers/netpol/network_policy_controller_test.go
+2
-2
pkg/controllers/netpol/network_policy_controller_test.go
with
3 additions
and
2 deletions
+3
-2
.golangci.yml
View file @
d1218d15
...
...
@@ -22,6 +22,7 @@ linters:
-
noctx
-
nolintlint
-
stylecheck
-
unconvert
issues
:
exclude-rules
:
# Excluding single digits from magic number detector because it produces too many obvious results (like klog)
...
...
This diff is collapsed.
Click to expand it.
pkg/controllers/netpol/network_policy_controller_test.go
View file @
d1218d15
...
...
@@ -178,8 +178,8 @@ func newFakeNode(name string, addr string) *v1.Node {
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
name
},
Status
:
v1
.
NodeStatus
{
Capacity
:
v1
.
ResourceList
{
v1
.
ResourceName
(
v1
.
ResourceCPU
)
:
resource
.
MustParse
(
"1"
),
v1
.
ResourceName
(
v1
.
ResourceMemory
)
:
resource
.
MustParse
(
"1G"
),
v1
.
ResourceCPU
:
resource
.
MustParse
(
"1"
),
v1
.
ResourceMemory
:
resource
.
MustParse
(
"1G"
),
},
Addresses
:
[]
v1
.
NodeAddress
{{
Type
:
v1
.
NodeExternalIP
,
Address
:
addr
}},
},
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment