Skip to content

Commit ae4937b

Browse files
authored
Release 1.3.1 (#64)
Bug Fixes: - Calico CNI detector after losing connection with the KubeApi - Ignoring '/' in the controller URL string
1 parent 6d7899f commit ae4937b

File tree

6 files changed

+85
-35
lines changed

6 files changed

+85
-35
lines changed

api/v1alpha1/zz_generated.deepcopy.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

calicowatcher/calico/bgpconfigurations.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ type ServiceClusterIPBlock struct {
7171
CIDR string `json:"cidr,omitempty" validate:"omitempty,net"`
7272
}
7373

74-
// IsCalicoNotDetected error message parser for missing calico case.
75-
func IsCalicoNotDetected(err error) bool {
76-
return err.Error() == "Calico CNI not detected"
74+
// IsMissingResource error message parser for missing calico case.
75+
func IsMissingResource(err error) bool {
76+
return err.Error() == "the server could not find the requested resource"
7777
}
7878

7979
// GetBGPConfiguration .
@@ -93,7 +93,7 @@ func (c *Calico) GetBGPConfiguration(config *rest.Config) ([]*BGPConfiguration,
9393

9494
list, err := dynClient.Resource(bgpConfigurationResource).List(ctx, metav1.ListOptions{})
9595
if err != nil {
96-
return nil, fmt.Errorf("Calico CNI not detected")
96+
return nil, err
9797
}
9898

9999
var bgpConfigurations []*BGPConfiguration

calicowatcher/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,9 @@ func (w *Watcher) deleteProcess() error {
384384
func (w *Watcher) mainProcessing() error {
385385
var err error
386386
if w.data.bgpConfs, err = w.Calico.GetBGPConfiguration(w.restClient); err != nil {
387-
if calico.IsCalicoNotDetected(err) {
387+
if calico.IsMissingResource(err) {
388388
logger.Info(err.Error())
389+
logger.Info("Calico CNI not detected")
389390
logger.Info("Calico Watcher Stopped")
390391
w.stop <- struct{}{}
391392
return nil

deploy/charts/netris-operator/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.7.0
18+
version: 0.7.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
23-
appVersion: v1.3.0
23+
appVersion: v1.3.1
2424
home: https://github.com/netrisai/netris-operator
2525
icon: https://www.netris.ai/wp-content/uploads/2021/01/logo-300.png # [todo] Change url to permalink
2626
keywords:

go.mod

+13-14
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ go 1.17
55
require (
66
github.com/go-logr/logr v0.1.0
77
github.com/kelseyhightower/envconfig v1.4.0
8-
github.com/netrisai/netriswebapi v0.0.0-20220207194714-42a1095aa823
9-
github.com/onsi/ginkgo v1.12.1
10-
github.com/onsi/gomega v1.10.1
8+
github.com/netrisai/netriswebapi v0.0.0-20220323225010-5c3a27388618
9+
github.com/onsi/ginkgo v1.16.4
10+
github.com/onsi/gomega v1.19.0
1111
github.com/r3labs/diff/v2 v2.9.1
1212
github.com/sirupsen/logrus v1.8.1
1313
go.uber.org/zap v1.10.0
14-
gopkg.in/yaml.v2 v2.3.0
14+
gopkg.in/yaml.v2 v2.4.0
1515
k8s.io/api v0.18.6
1616
k8s.io/apimachinery v0.18.6
1717
k8s.io/client-go v0.18.6
@@ -25,10 +25,10 @@ require (
2525
github.com/evanphx/json-patch v4.9.0+incompatible // indirect
2626
github.com/fsnotify/fsnotify v1.4.9 // indirect
2727
github.com/go-logr/zapr v0.1.0 // indirect
28-
github.com/gogo/protobuf v1.3.1 // indirect
28+
github.com/gogo/protobuf v1.3.2 // indirect
2929
github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef // indirect
30-
github.com/golang/protobuf v1.4.2 // indirect
31-
github.com/google/go-cmp v0.4.0 // indirect
30+
github.com/golang/protobuf v1.5.2 // indirect
31+
github.com/google/go-cmp v0.5.5 // indirect
3232
github.com/google/gofuzz v1.1.0 // indirect
3333
github.com/google/uuid v1.1.1 // indirect
3434
github.com/googleapis/gnostic v0.3.1 // indirect
@@ -40,7 +40,7 @@ require (
4040
github.com/mitchellh/mapstructure v1.4.1 // indirect
4141
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4242
github.com/modern-go/reflect2 v1.0.1 // indirect
43-
github.com/nxadm/tail v1.4.4 // indirect
43+
github.com/nxadm/tail v1.4.8 // indirect
4444
github.com/pkg/errors v0.8.1 // indirect
4545
github.com/prometheus/client_golang v1.0.0 // indirect
4646
github.com/prometheus/client_model v0.2.0 // indirect
@@ -50,16 +50,15 @@ require (
5050
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
5151
go.uber.org/atomic v1.4.0 // indirect
5252
go.uber.org/multierr v1.1.0 // indirect
53-
golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975 // indirect
54-
golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7 // indirect
53+
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 // indirect
54+
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect
5555
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 // indirect
56-
golang.org/x/sys v0.0.0-20210331175145-43e1dd70ce54 // indirect
57-
golang.org/x/text v0.3.3 // indirect
56+
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
57+
golang.org/x/text v0.3.7 // indirect
5858
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect
59-
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 // indirect
6059
gomodules.xyz/jsonpatch/v2 v2.0.1 // indirect
6160
google.golang.org/appengine v1.6.6 // indirect
62-
google.golang.org/protobuf v1.23.0 // indirect
61+
google.golang.org/protobuf v1.26.0 // indirect
6362
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
6463
gopkg.in/inf.v0 v0.9.1 // indirect
6564
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect

0 commit comments

Comments
 (0)