Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
0d6a2bfb
Unverified
Commit
0d6a2bfb
authored
Jul 01, 2020
by
Erik Wilson
Committed by
GitHub
Jul 01, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1974 from mschneider82/patch-1
fixed panic in network_policy_controller
parents
42f0b95a
56a083c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
network_policy_controller.go
pkg/agent/netpol/network_policy_controller.go
+5
-1
No files found.
pkg/agent/netpol/network_policy_controller.go
View file @
0d6a2bfb
...
@@ -1693,7 +1693,11 @@ func NewNetworkPolicyController(
...
@@ -1693,7 +1693,11 @@ func NewNetworkPolicyController(
npc
.
syncPeriod
=
ipTablesSyncPeriod
npc
.
syncPeriod
=
ipTablesSyncPeriod
npc
.
v1NetworkPolicy
=
true
npc
.
v1NetworkPolicy
=
true
v
,
_
:=
clientset
.
Discovery
()
.
ServerVersion
()
v
,
err
:=
clientset
.
Discovery
()
.
ServerVersion
()
if
err
!=
nil
{
return
nil
,
err
}
valid
:=
regexp
.
MustCompile
(
"[0-9]"
)
valid
:=
regexp
.
MustCompile
(
"[0-9]"
)
v
.
Minor
=
strings
.
Join
(
valid
.
FindAllString
(
v
.
Minor
,
-
1
),
""
)
v
.
Minor
=
strings
.
Join
(
valid
.
FindAllString
(
v
.
Minor
,
-
1
),
""
)
minorVer
,
_
:=
strconv
.
Atoi
(
v
.
Minor
)
minorVer
,
_
:=
strconv
.
Atoi
(
v
.
Minor
)
...
...
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