Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
k8s-ingress
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
uplex-varnish
k8s-ingress
Commits
d407fe0d
Commit
d407fe0d
authored
May 08, 2020
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tracking the reload version of the dataplane API.
parent
7fe34bfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
haproxy.go
pkg/haproxy/haproxy.go
+6
-3
No files found.
pkg/haproxy/haproxy.go
View file @
d407fe0d
...
...
@@ -260,8 +260,11 @@ func (hc *Controller) updateInstance(inst *haproxyInst, spec *Spec) error {
hc
.
log
.
Infof
(
"Offloader instance %s: PEM file %s exists"
,
inst
.
name
,
spec
.
CertName
())
init
:=
inst
.
status
.
version
==
0
version
:=
inst
.
status
.
version
+
1
version
:=
inst
.
status
.
version
if
version
==
0
{
version
=
1
}
hc
.
log
.
Debugf
(
"Offloader instance %s: %+v"
,
inst
.
name
,
inst
)
hc
.
log
.
Debugf
(
"Offloader instance %s: starting tx for version %d"
,
inst
.
name
,
version
)
tx
,
err
:=
inst
.
dplane
.
StartTx
(
version
)
...
...
@@ -271,7 +274,7 @@ func (hc *Controller) updateInstance(inst *haproxyInst, spec *Spec) error {
hc
.
log
.
Debugf
(
"Offloader instance %s: started transaction: %+v"
,
inst
.
name
,
tx
)
if
init
{
if
tx
.
Version
<=
1
{
hc
.
log
.
Debugf
(
"Offloader instance %s: adding TLS config %s"
,
inst
.
name
,
spec
)
err
=
inst
.
dplane
.
AddTLS
(
tx
,
*
spec
)
...
...
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