Skip to content

Commit 7f58332

Browse files
authored
Merge pull request #5 from pfl/release-1.1.1
Release 1.1.1
2 parents 2b73aeb + 3dcf748 commit 7f58332

File tree

12 files changed

+50
-22
lines changed

12 files changed

+50
-22
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ endif
5050
# This is useful for CI or a project to utilize a specific version of the operator-sdk toolkit.
5151
OPERATOR_SDK_VERSION ?= v1.37.0
5252
# Image URL to use all building/pushing image targets
53-
TAG ?= latest
53+
TAG ?= 1.1.1
5454
IMG ?= ${IMAGE_TAG_BASE}:${TAG}
5555
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
5656
ENVTEST_K8S_VERSION = 1.31.0
@@ -231,7 +231,7 @@ GOLANGCI_LINT = $(LOCALBIN)/golangci-lint-$(GOLANGCI_LINT_VERSION)
231231
KUSTOMIZE_VERSION ?= v5.3.0
232232
CONTROLLER_TOOLS_VERSION ?= v0.14.0
233233
ENVTEST_VERSION ?= release-0.17
234-
GOLANGCI_LINT_VERSION ?= v1.64.7
234+
GOLANGCI_LINT_VERSION ?= v1.64.8
235235

236236
.PHONY: kustomize
237237
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.

charts/network-operator/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: intel-network-operator
33
description: A Helm chart for Intel Network Operator for Kubernetes
44
type: application
5-
version: 1.1.0
6-
appVersion: "1.1.0"
5+
version: 1.1.1
6+
appVersion: "1.1.1"
77

88
dependencies:
99
- name: node-feature-discovery
@@ -15,6 +15,6 @@ dependencies:
1515
annotations:
1616
org.opencontainers.image.url: "https://github.com/intel/network-operator"
1717
org.opencontainers.image.source: "https://github.com/intel/network-operator"
18-
org.opencontainers.image.version: "1.1.0"
18+
org.opencontainers.image.version: "1.1.1"
1919
org.opencontainers.image.title: "Intel Network Operator"
2020
org.opencontainers.image.description: "This chart installs the Intel Network Operator for Kubernetes."

charts/network-operator/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ logLevel: 2
33
operator:
44
image:
55
repository: intel/intel-network-operator
6-
tag: 1.1.0
6+
tag: 1.1.1
77
imagePullPolicy: IfNotPresent
88
resources:
99
limits:
@@ -30,7 +30,7 @@ config:
3030
networkMetrics: false
3131
image:
3232
repository: intel/intel-network-linkdiscovery
33-
tag: 1.1.0
33+
tag: 1.1.1
3434
imagePullPolicy: IfNotPresent
3535
nodeSelector:
3636
intel.feature.node.kubernetes.io/gaudi-ready: "true"

cmd/discover/main.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ func detectLLDP(config *cmdConfig, networkConfigs map[string]*networkConfigurati
9595
lldpResultChan := make(chan lldp.DiscoveryResult, len(networkConfigs))
9696
timeoutctx, cancelctx := context.WithTimeout(config.ctx, config.timeout)
9797

98+
filterFunc := func(portDescription string) bool {
99+
// Check if the port description field has the correct data in it
100+
_, _, err := parseIPFromString(portDescription)
101+
102+
return err == nil
103+
}
104+
98105
defer cancelctx()
99106

100107
for _, networkconfig := range networkConfigs {
@@ -107,7 +114,7 @@ func detectLLDP(config *cmdConfig, networkConfigs map[string]*networkConfigurati
107114
wg.Add(1)
108115
go func() {
109116
lldpClient := lldp.NewClient(timeoutctx, networkconfig.link.Attrs().Name, *networkconfig.localHwAddr)
110-
if err := lldpClient.Start(lldpResultChan); err != nil {
117+
if err := lldpClient.Start(lldpResultChan, filterFunc); err != nil {
111118
klog.Infof("Cannot start LLDP client: %v\n", err)
112119
}
113120
wg.Done()

cmd/discover/network.go

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,15 @@ func getNetworkConfigs(interfaces []string) ([]string, map[string]*networkConfig
213213
return allinterfaces, links, nil
214214
}
215215

216+
func parseIPFromString(portDescription string) (net.IP, *net.IPNet, error) {
217+
substrings := strings.Split(portDescription, " ")
218+
if len(substrings) < 2 {
219+
return nil, nil, fmt.Errorf("port description field doesn't follow expected format (no-alert CIDR)")
220+
}
221+
222+
return net.ParseCIDR(substrings[1])
223+
}
224+
216225
func selectMask30L3Address(nwconfig *networkConfiguration) (*net.IP, *net.IP, error) {
217226
var (
218227
peerNetwork *net.IPNet
@@ -221,15 +230,9 @@ func selectMask30L3Address(nwconfig *networkConfiguration) (*net.IP, *net.IP, er
221230
err error
222231
)
223232

224-
substrings := strings.Split(nwconfig.portDescription, " ")
225-
if len(substrings) < 2 {
226-
return nil, nil, fmt.Errorf("interface '%s' could not split string '%s'",
227-
nwconfig.link.Attrs().Name, nwconfig.portDescription)
228-
}
229-
230-
peeraddr, peerNetwork, err = net.ParseCIDR(substrings[1])
233+
peeraddr, peerNetwork, err = parseIPFromString(nwconfig.portDescription)
231234
if err != nil {
232-
return nil, nil, fmt.Errorf("interface '%s' could not parse '%s': %v",
235+
return nil, nil, fmt.Errorf("interface '%s' could not parse CIDR from port description '%s': %v",
233236
nwconfig.link.Attrs().Name, nwconfig.portDescription, err)
234237
}
235238

config/operator/manager/manager.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ spec:
6464
args:
6565
- --leader-elect
6666
- --health-probe-bind-address=:8081
67-
image: intel/intel-network-operator:1.1.0
67+
image: intel/intel-network-operator:1.1.1
6868
name: manager
6969
env:
7070
- name: OPERATOR_NAMESPACE

config/operator/samples/gaudi-l2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ spec:
66
configurationType: gaudi-so
77
gaudiScaleOut:
88
layer: L2
9-
image: intel/intel-network-linkdiscovery:1.1.0
9+
image: intel/intel-network-linkdiscovery:1.1.1
1010
pullPolicy: IfNotPresent
1111
logLevel: 1
1212
nodeSelector:

config/operator/samples/gaudi-l3-metrics.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ spec:
77
gaudiScaleOut:
88
layer: L3
99
networkMetrics: true
10-
image: intel/intel-network-linkdiscovery:1.1.0
10+
image: intel/intel-network-linkdiscovery:1.1.1
1111
pullPolicy: IfNotPresent
1212
logLevel: 1
1313
nodeSelector:

config/operator/samples/gaudi-l3-pfc-lldpad-enabled.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spec:
88
layer: L3
99
pfcPriorities: "11110000"
1010
enableLLDPAD: true
11-
image: intel/intel-network-linkdiscovery:1.1.0
11+
image: intel/intel-network-linkdiscovery:1.1.1
1212
pullPolicy: IfNotPresent
1313
logLevel: 1
1414
nodeSelector:

config/operator/samples/gaudi-l3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ spec:
66
configurationType: gaudi-so
77
gaudiScaleOut:
88
layer: L3
9-
image: intel/intel-network-linkdiscovery:1.1.0
9+
image: intel/intel-network-linkdiscovery:1.1.1
1010
pullPolicy: IfNotPresent
1111
logLevel: 1
1212
nodeSelector:

0 commit comments

Comments
 (0)