Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ kind-cluster-name:

.PHONY: kind-rm-cluster
kind-rm-cluster:
make -C test/kind rm-cluster
$(MAKE) -C test/kind rm-cluster

.PHONY: kind-new-cluster
kind-new-cluster:
make -C test/kind new-cluster
$(MAKE) -C test/kind new-cluster

.PHONY: kind-install-cni
kind-install-cni:
make -C test/kind install-cni
$(MAKE) -C test/kind install-cni

.PHONY: kind
kind: kind-new-cluster image-kind kind-install-cni
Expand Down Expand Up @@ -75,19 +75,19 @@ dev.k3s: dev

.PHONY: dev-kind
dev-kind: dev
make -C test/kind dev
$(MAKE) -C test/kind dev

.PHONY: load-kind
load-kind:
make -C test/kind load
$(MAKE) -C test/kind load

.PHONY: run-prometheus
run-prometheus:
make -C test/prometheus run
$(MAKE) -C test/prometheus run

.PHONY: stop-prometheus
stop-prometheus:
make -C test/prometheus stop
$(MAKE) -C test/prometheus stop

.PHONY: install-test-deps
install-test-deps:
Expand Down Expand Up @@ -232,7 +232,7 @@ cherry-vpp:
echo "Are you sure? [y/N] " && read ans && [ $${ans:-N} = y ]; \
fi
@BASE=$(BASE) bash ./vpplink/generated/vpp_clone_current.sh ${VPP_DIR}
@make goapi
@$(MAKE) goapi

.PHONY: cherry-wipe
cherry-wipe:
Expand Down
24 changes: 23 additions & 1 deletion calico-vpp-agent/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,34 @@ push: ${PUSH_DEP}
docker tag calicovpp/agent:$(TAG) $${registry}calicovpp/agent:latest; \
docker tag calicovpp/agent:$(TAG) $${registry}calicovpp/agent:prerelease; \
fi; \
docker push --all-tags $${registry}calicovpp/agent; \
docker push $${registry}calicovpp/agent:$(TAG); \
if [ "${ALSO_LATEST}" = "y" ]; then \
docker push $${registry}calicovpp/agent:latest; \
docker push $${registry}calicovpp/agent:prerelease; \
fi; \
done

.PHONY: dev
dev: image

.PHONY: clean
clean:
rm -rf bin/
rm -f $(VERSION_FILE)

.PHONY: clean-image
# TAG must be specified explicitly, e.g.: make clean-image TAG=<tag>
clean-image:
docker rmi calicovpp/agent:$(TAG) || true
@if [ "${ALSO_LATEST}" = "y" ]; then \
docker rmi calicovpp/agent:latest || true; \
docker rmi calicovpp/agent:prerelease || true; \
fi

.PHONY: clean-all
# TAG must be specified explicitly, e.g.: make clean-all TAG=<tag>
clean-all: clean clean-image

.PHONY: proto
proto:
$(MAKE) -C proto $@
2 changes: 1 addition & 1 deletion cmd/calicovppctl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ push: ${PUSH_DEP}
--platform linux/arm64,linux/amd64 \
--push \
$(foreach registry,$(REGISTRIES),-t $(registry)calicovpp/ctl:$(TAG)) \
$(if $(ALSO_LATEST),$(foreach registry,$(REGISTRIES),-t $(registry)calicovpp/ctl:latest)) \
$(if $(filter y,$(ALSO_LATEST)),$(foreach registry,$(REGISTRIES),-t $(registry)calicovpp/ctl:latest)) \
.
docker buildx rm vppctlbuilder
11 changes: 8 additions & 3 deletions multinet-monitor/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,17 @@ image: build
.PHONY: dev
dev: image

.PHONY: push
push: ${PUSH_DEP}
set -e; for registry in ${REGISTRIES}; do \
docker tag calicovpp/multinet-monitor:$(TAG) $${registry}calicovpp/multinet-monitor:$(TAG); \
if [ "${ALSO_LATEST}" = "y" ]; then \
docker tag calicovpp/multinet-monitor:latest $${registry}calicovpp/multinet-monitor:latest; \
docker tag calicovpp/multinet-monitor:prerelease $${registry}calicovpp/multinet-monitor:prerelease; \
docker tag calicovpp/multinet-monitor:$(TAG) $${registry}calicovpp/multinet-monitor:latest; \
docker tag calicovpp/multinet-monitor:$(TAG) $${registry}calicovpp/multinet-monitor:prerelease; \
fi; \
docker push $${registry}calicovpp/multinet-monitor:$(TAG); \
if [ "${ALSO_LATEST}" = "y" ]; then \
docker push $${registry}calicovpp/multinet-monitor:latest; \
docker push $${registry}calicovpp/multinet-monitor:prerelease; \
fi; \
docker push --all-tags $${registry}calicovpp/multinet-monitor; \
done
7 changes: 4 additions & 3 deletions test/prometheus/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ run:
static_configs:\n\
- targets:" > prometheus.yml
for address in $$(kubectl get node -owide | grep -v NAME | awk '{print $$6}') ; do echo " - $$address:8888" >> prometheus.yml ; done
docker run --network host -p 9090:9090 -v $$PWD/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus &
docker rm -f calicovpp-prometheus || true
docker run --name calicovpp-prometheus --network host -p 9090:9090 -v $$PWD/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus &
.PHONY: stop
stop:
docker stop $$(docker ps | grep prometheus | awk '{print $$1}')
rm prometheus.yml
docker rm -f calicovpp-prometheus || true
rm -f prometheus.yml
1 change: 1 addition & 0 deletions test/yaml/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ iperf3-vcl-image:
rm -f ./iperf3-vcl/*.so.*
openssl genrsa -out ./iperf3-vcl/iperfcert.key
openssl req -new -key ./iperf3-vcl/iperfcert.key \
-subj /CN=iperf3-vcl \
-out ./iperf3-vcl/iperfcert.csr
openssl x509 -req -days 365 \
-in ./iperf3-vcl/iperfcert.csr \
Expand Down
16 changes: 13 additions & 3 deletions vpp-manager/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,19 @@ push: ${PUSH_DEP}
docker tag calicovpp/vclsidecar:$(TAG) $${registry}calicovpp/vclsidecar:latest; \
docker tag calicovpp/vclsidecar:$(TAG) $${registry}calicovpp/vclsidecar:prerelease; \
fi; \
docker push --all-tags $${registry}calicovpp/vpp; \
docker push --all-tags $${registry}calicovpp/init-eks; \
docker push --all-tags $${registry}calicovpp/vclsidecar; \
docker push $${registry}calicovpp/vpp:$(TAG); \
docker push $${registry}calicovpp/vpp:dbg-$(TAG); \
docker push $${registry}calicovpp/init-eks:$(TAG); \
docker push $${registry}calicovpp/vclsidecar:$(TAG); \
docker push $${registry}calicovpp/vclsidecar:dbg-$(TAG); \
if [ "${ALSO_LATEST}" = "y" ]; then \
docker push $${registry}calicovpp/vpp:latest; \
docker push $${registry}calicovpp/vpp:prerelease; \
docker push $${registry}calicovpp/init-eks:latest; \
docker push $${registry}calicovpp/init-eks:prerelease; \
docker push $${registry}calicovpp/vclsidecar:latest; \
docker push $${registry}calicovpp/vclsidecar:prerelease; \
fi; \
done

.PHONY: clean
Expand Down
5 changes: 4 additions & 1 deletion yaml/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ build: clean
kubectl kustomize overlays/test-vagrant-srv6-mounts > /dev/null
kubectl kustomize overlays/test-vagrant-v6 > /dev/null
kubectl kustomize overlays/test-vagrant-v6-mounts > /dev/null
@sed -i "s|:latest|:$(TAG)|g" generated/*.yaml
@for file in generated/*.yaml; do \
sed "s|:latest|:$(TAG)|g" "$$file" > "$$file.tmp"; \
mv "$$file.tmp" "$$file"; \
done

.PHONY: clean
clean:
Expand Down
Loading