diff --git a/build/yamls/patches/coverage/startAgentCov.yml b/build/yamls/patches/coverage/startAgentCov.yml index c16fb8c54e3..39812362b57 100644 --- a/build/yamls/patches/coverage/startAgentCov.yml +++ b/build/yamls/patches/coverage/startAgentCov.yml @@ -12,6 +12,3 @@ spec: - name: antrea-agent command: ["/bin/sh"] args: ["-c", "sleep 2; antrea-agent-coverage -test.run=TestBincoverRunMain -test.coverprofile=antrea-agent.cov.out -args-file=/agent-arg-file; while true; do sleep 5 & wait $!; done"] - image: antrea/antrea-ubuntu-coverage:latest - - name: antrea-ovs - image: antrea/antrea-ubuntu-coverage:latest diff --git a/build/yamls/patches/coverage/startControllerCov.yml b/build/yamls/patches/coverage/startControllerCov.yml index 70ea0f3af03..8e1f187d60e 100644 --- a/build/yamls/patches/coverage/startControllerCov.yml +++ b/build/yamls/patches/coverage/startControllerCov.yml @@ -9,4 +9,3 @@ spec: - command: ["/bin/sh"] args: ["-c", "antrea-controller-coverage -test.run=TestBincoverRunMain -test.coverprofile=antrea-controller.cov.out -args-file=/controller-arg-file; while true; do sleep 5 & wait $!; done"] name: antrea-controller - image: antrea/antrea-ubuntu-coverage:latest diff --git a/hack/generate-manifest.sh b/hack/generate-manifest.sh index 07f14831f54..f630ecbbd31 100755 --- a/hack/generate-manifest.sh +++ b/hack/generate-manifest.sh @@ -353,7 +353,11 @@ $KUSTOMIZE edit add base $BASE find ../../patches/$MODE -name \*.yml -exec cp {} . \; if [ "$MODE" == "dev" ]; then - $KUSTOMIZE edit set image antrea=projects.registry.vmware.com/antrea/antrea-ubuntu:latest + if $COVERAGE; then + $KUSTOMIZE edit set image antrea=antrea/antrea-ubuntu-coverage:latest + else + $KUSTOMIZE edit set image antrea=projects.registry.vmware.com/antrea/antrea-ubuntu:latest + fi $KUSTOMIZE edit add patch agentImagePullPolicy.yml $KUSTOMIZE edit add patch controllerImagePullPolicy.yml if $VERBOSE_LOG; then