Skip to content

Commit

Permalink
Fix issue in generate-manifest.sh when enabling ipsec and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
antoninbas committed Dec 10, 2020
1 parent 86d659a commit 9a002c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 0 additions & 3 deletions build/yamls/patches/coverage/startAgentCov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion build/yamls/patches/coverage/startControllerCov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion hack/generate-manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a002c1

Please sign in to comment.