Skip to content

Commit fb7466d

Browse files
authored
Merge pull request #200 from sunya-ch/v1.2.4-rebase
chore: increase version to 1.2.4
2 parents 1dd8ae3 + e4b4fa7 commit fb7466d

15 files changed

+43
-42
lines changed

.github/workflows/build_push_concheck.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name: Build and push connection check image
33
on:
44
push:
55
branches:
6-
- v1.2.3
6+
- v1.2.4
77
paths:
88
- connection-check/**
99

1010
env:
11-
IMAGE_VERSION: '1.2.3'
11+
IMAGE_VERSION: '1.2.4'
1212
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
1313

1414
jobs:

.github/workflows/build_push_controller.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and push controller and its bundle image
33
on:
44
push:
55
branches:
6-
- v1.2.3
6+
- v1.2.4
77
paths:
88
- controllers/**
99
- compute/**
@@ -16,7 +16,7 @@ on:
1616
- ./Makefile
1717

1818
env:
19-
VERSION: '1.2.3'
19+
VERSION: '1.2.4'
2020
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
2121
DAEMON_REGISTRY: ghcr.io/${{ github.repository_owner }}
2222

.github/workflows/build_push_daemon.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Build and push daemon image
33
on:
44
push:
55
branches:
6-
- v1.2.3
6+
- v1.2.4
77
paths:
88
- daemon/**
99
- cni/**
1010
- Makefile
1111

1212
env:
13-
IMAGE_VERSION: '1.2.3'
13+
IMAGE_VERSION: '1.2.4'
1414
DAEMON_REGISTRY: ghcr.io/${{ github.repository_owner }}
1515

1616
jobs:

.github/workflows/daemon_unittest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Perform unittest for daemon
33
on:
44
pull_request:
55
branches:
6-
- v1.2.3
6+
- v1.2.4
77
push:
88
paths:
99
- daemon/**

.github/workflows/golangci-lint.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
pull_request:
44
push:
55

6+
env:
7+
GOLANGCI_LINT_VERSION: v1.54.2
8+
69
jobs:
710
golangci:
811
name: lint
@@ -18,4 +21,5 @@ jobs:
1821
- name: golangci-lint
1922
uses: golangci/golangci-lint-action@v3
2023
with:
21-
args: --timeout=10m
24+
args: --timeout=10m
25+
version: ${{ env.GOLANGCI_LINT_VERSION }}

.github/workflows/integration_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: e2e test
33
on:
44
pull_request:
55
branches:
6-
- v1.2.3
6+
- v1.2.4
77
push:
88
paths:
99
- controllers/**

.github/workflows/unittest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Perform unittest for controller
33
on:
44
pull_request:
55
branches:
6-
- v1.2.3
6+
- v1.2.4
77
push:
88
paths:
99
- controllers/**

Makefile

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,18 @@
44
#
55
include daemon/Makefile
66

7+
DOCKER ?= $(shell command -v podman 2> /dev/null || echo docker)
8+
79
export IMAGE_REGISTRY ?= ghcr.io/foundation-model-stack
8-
ifneq ($(shell kubectl get po -A --selector app=multus --ignore-not-found),)
9-
export CNI_BIN_HOSTPATH = $(shell kubectl get po -A --selector app=multus -o jsonpath='{.items[0].spec.volumes[?(@.name=="cnibin")].hostPath.path}')
10-
else
11-
export CNI_BIN_HOSTPATH = /var/lib/cni/bin
12-
endif
10+
1311

1412
# VERSION defines the project version for the bundle.
1513
# Update this value when you upgrade the version of your project.
1614
# To re-generate a bundle for another specific version without changing the standard setup, you can:
1715
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
1816
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
1917
# VERSION ?= 0.0.1
20-
VERSION ?= 1.2.3
18+
VERSION ?= 1.2.4
2119
export CHANNELS = "beta"
2220

2321
# CHANNELS define the bundle channels used in the bundle.
@@ -114,18 +112,18 @@ run: manifests generate fmt vet ## Run a controller from your host.
114112
go run ./main.go
115113

116114
golint:
117-
docker pull golangci/golangci-lint:latest
118-
docker run --tty --rm \
115+
$(DOCKER) pull golangci/golangci-lint:v1.54.2
116+
$(DOCKER) run --tty --rm \
119117
--volume '$(BASE_DIR):/app' \
120118
--workdir /app \
121-
golangci/golangci-lint \
119+
golangci/golangci-lint:v1.54.2 \
122120
golangci-lint run --verbose
123121

124122
docker-build: test ## Build docker image with the manager.
125-
docker build -t ${IMG} .
123+
$(DOCKER) build -t ${IMG} .
126124

127125
docker-push: ## Push docker image with the manager.
128-
docker push ${IMG}
126+
$(DOCKER) push ${IMG}
129127

130128
##@ Deployment
131129

@@ -163,8 +161,8 @@ daemon-secret: ## Modify kustomization files for image pull secret of daemon
163161
envsubst < config/samples/patches/image_pull_secret.template > config/samples/patches/image_pull_secret.yaml
164162
cd config/samples;$(KUSTOMIZE) edit add patch --path patches/image_pull_secret.yaml
165163

166-
concheck:
167-
@kubectl create -f connection-check/concheck.yaml
164+
concheck:
165+
@kubectl create -f connection-check/concheck.yaml
168166
@echo "Wait for job/multi-nic-concheck to complete"
169167
@kubectl wait --for=condition=complete job/multi-nic-concheck --timeout=3000s
170168
@kubectl logs job/multi-nic-concheck
@@ -174,11 +172,10 @@ clean-concheck:
174172
@kubectl delete pod -n default --selector multi-nic-concheck
175173
@kubectl delete job -n default --selector multi-nic-concheck
176174

177-
178-
export SERVER_HOST_NAME ?= $(shell kubectl get nodes|tail -n 2|head -n 1|awk '{ print $1 }')
179-
export CLIENT_HOST_NAME ?= $(shell kubectl get nodes|tail -n 1|awk '{ print $1 }')
180175
sample-concheck:
181-
@echo "Test connection from ${CLIENT_HOST_NAME} to ${SERVER_HOST_NAME}"
176+
@export SERVER_HOST_NAME ?= $(shell kubectl get nodes|tail -n 2|head -n 1|awk '{ print $1 }')
177+
@export CLIENT_HOST_NAME ?= $(shell kubectl get nodes|tail -n 1|awk '{ print $1 }')
178+
@echo "Test connection from ${CLIENT_HOST_NAME} to ${SERVER_HOST_NAME}"ƒ
182179
@cd ./live-migration && chmod +x live_migrate.sh && ./live_migrate.sh live_iperf3 ${SERVER_HOST_NAME} ${CLIENT_HOST_NAME} 5
183180

184181
CONTROLLER_GEN = $(shell pwd)/bin/controller-gen
@@ -264,16 +261,16 @@ catalog-push: ## Push a catalog image.
264261
$(MAKE) docker-push IMG=$(CATALOG_IMG)
265262

266263
test-daemon:
267-
docker build -t daemon-test:latest -f ./daemon/dockerfiles/Dockerfile.multi-nicd-test .
268-
docker run -i --privileged daemon-test /bin/bash -c "cd /usr/local/build/cni&&make test"
269-
docker run -i --privileged daemon-test /bin/bash -c "cd /usr/local/build/daemon/src&&make test-verbose"
264+
$(DOCKER) build -t daemon-test:latest -f ./daemon/dockerfiles/Dockerfile.multi-nicd-test .
265+
$(DOCKER) run -i --privileged daemon-test /bin/bash -c "cd /usr/local/build/cni&&make test"
266+
$(DOCKER) run -i --privileged daemon-test /bin/bash -c "cd /usr/local/build/daemon/src&&make test-verbose"
270267

271268
build-push-kbuilder-base:
272-
docker build -t $(IMAGE_TAG_BASE)-kbuilder -f ./daemon/dockerfiles/Dockerfile.kbuilder .
273-
docker push $(IMAGE_TAG_BASE)-kbuilder
269+
$(DOCKER) build -t $(IMAGE_TAG_BASE)-kbuilder -f ./daemon/dockerfiles/Dockerfile.kbuilder .
270+
$(DOCKER) push $(IMAGE_TAG_BASE)-kbuilder
274271

275272
daemon-build: test-daemon ## Build docker image with the manager.
276-
docker tag daemon-test:latest $(IMAGE_TAG_BASE)-daemon:v$(VERSION)
273+
$(DOCKER) tag daemon-test:latest $(IMAGE_TAG_BASE)-daemon:v$(VERSION)
277274

278275
daemon-push:
279-
docker push $(IMAGE_TAG_BASE)-daemon:v$(VERSION)
276+
$(DOCKER) push $(IMAGE_TAG_BASE)-daemon:v$(VERSION)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Recommended to deploy in the same default namespace for [health check service](.
112112
```
113113
##### by bundle with operator-sdk
114114
```bash
115-
operator-sdk run bundle ghcr.io/foundation-model-stack/multi-nic-cni-bundle:v1.2.3 -n multi-nic-cni-operator
115+
operator-sdk run bundle ghcr.io/foundation-model-stack/multi-nic-cni-bundle:v1.2.4 -n multi-nic-cni-operator
116116
```
117117
#### Deploy MultiNicNetwork resource
118118
1. Prepare `network.yaml` as shown in the [example](#multinicnetwork)

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ kind: Kustomization
1313
images:
1414
- name: controller
1515
newName: ghcr.io/foundation-model-stack/multi-nic-cni-controller
16-
newTag: v1.2.3
16+
newTag: v1.2.4

config/samples/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
value: "11000"
1212
- name: RT_TABLE_PATH
1313
value: /opt/rt_tables
14-
image: ghcr.io/foundation-model-stack/multi-nic-cni-daemon:v1.2.3
14+
image: ghcr.io/foundation-model-stack/multi-nic-cni-daemon:v1.2.4
1515
imagePullPolicy: Always
1616
mounts:
1717
- hostpath: /var/lib/cni/bin

config/samples/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ kind: Kustomization
1515
images:
1616
- name: multi-nic-cni-daemon
1717
newName: ghcr.io/foundation-model-stack/multi-nic-cni-daemon
18-
newTag: v1.2.3
18+
newTag: v1.2.4

connection-check/concheck.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ spec:
7171
serviceAccountName: multi-nic-concheck-account
7272
containers:
7373
- name: concheck
74-
image: ghcr.io/foundation-model-stack/multi-nic-cni-concheck:v1.2.3
74+
image: ghcr.io/foundation-model-stack/multi-nic-cni-concheck:v1.2.4
7575
imagePullPolicy: Always
7676
securityContext:
7777
privileged: true

daemon/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export DAEMON_REGISTRY ?= ghcr.io/foundation-model-stack
66

77
# DAEMON_IMG defines the image:tag used for daemon
88
IMAGE_TAG_BASE = $(DAEMON_REGISTRY)/multi-nic-cni
9-
IMAGE_VERSION ?= 1.2.3
9+
IMAGE_VERSION ?= 1.2.4
1010
DAEMON_IMG ?= $(IMAGE_TAG_BASE)-daemon:v$(IMAGE_VERSION)
1111

1212

daemon/dockerfiles/Dockerfile.kbuilder

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ RUN curl -sSLo kubebuilder_2.0.0-alpha.1_linux_amd64.tar.gz https://github.com/k
1818
RUN curl -sSLo setup-envtest.sh https://raw.githubusercontent.com/kubernetes-sigs/controller-runtime/v0.7.2/hack/setup-envtest.sh
1919

2020
RUN cd /tmp && \
21-
git clone -b v1.2.3 https://github.com/containernetworking/plugins.git && \
21+
git clone -b v1.2.4 https://github.com/containernetworking/plugins.git && \
2222
cd plugins && \
2323
./build_linux.sh && \
2424
ls /tmp/plugins/bin && \
2525
cp /tmp/plugins/bin/ipvlan /usr/local/build/cni/test-bin/ipvlan && \
2626
cp /tmp/plugins/bin/static /usr/local/build/cni/test-bin/static && \
27-
rm -r /tmp/plugins
27+
rm -r /tmp/plugins

0 commit comments

Comments
 (0)