Skip to content

Commit

Permalink
Merge pull request #5 from vngcloud/dev
Browse files Browse the repository at this point in the history
🚀 [release] version 0.2.4
  • Loading branch information
anngdinh authored Jun 25, 2024
2 parents a2ccb01 + a906259 commit 4539e2d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: ["dev"]

env:
VERSION: v0.2.3
VERSION: v0.2.4
REPO: vcr.vngcloud.vn/60108-annd2-ingress

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: ["main"]

env:
VERSION: v0.2.3
VERSION: v0.2.4
REPO: vcr.vngcloud.vn/81-vks-public

jobs:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ TAR_FILE ?= rootfs.tar

GOOS ?= $(shell go env GOOS)
GOPROXY ?= $(shell go env GOPROXY)
VERSION ?= v0.2.3
VERSION ?= v0.2.4
GOARCH :=
GOFLAGS :=
TAGS :=
Expand Down
4 changes: 2 additions & 2 deletions pkg/utils/vngcloud/loadbalancer_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ func CompareListenerOptions(ilis *lObjects.Listener, lisOptions *listener.Create
CertificateAuthorities: lisOptions.CertificateAuthorities,

// not support update these fields
Headers: ilis.Headers, // L7: if this field is nil, it will update empty ? => set it nil in L4
ClientCertificate: nil,
Headers: ilis.Headers, // L7: if this field is nil, it will update empty ? => set it nil in L4
ClientCertificate: ilis.ClientCertificateAuthentication, // L7: if this field is nil, it will update empty ? => set it nil in L4
}
if ilis.AllowedCidrs != lisOptions.AllowedCidrs ||
ilis.TimeoutClient != lisOptions.TimeoutClient ||
Expand Down
5 changes: 5 additions & 0 deletions pkg/vngcloud/vlb.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func (c *vLB) Init() {
return
}

time.Sleep(60 * time.Second)
go wait.Until(c.nodeSyncLoop, 60*time.Second, c.stopCh)
<-c.stopCh
}
Expand Down Expand Up @@ -876,6 +877,10 @@ func (c *vLB) ensureListenerV2(lbID, lisName string, listenerOpts listener.Creat
updateOpts := vngcloudutil.CompareListenerOptions(lis, &listenerOpts)
if updateOpts != nil {
updateOpts.Headers = nil
updateOpts.ClientCertificate = nil
updateOpts.DefaultCertificateAuthority = nil
updateOpts.CertificateAuthorities = nil

err := vngcloudutil.UpdateListener(c.vLBSC, c.getProjectID(), lbID, lis.UUID, updateOpts)
if err != nil {
klog.Error("error when update listener: ", err)
Expand Down

0 comments on commit 4539e2d

Please sign in to comment.