Skip to content

Commit

Permalink
Use VMware Harbor registry for flow-aggregator Docker image (antrea-i…
Browse files Browse the repository at this point in the history
…o#1650)

Changes are the same as in
antrea-io#1617 but for the
antrea/flow-aggregator Docker image.

There was also a typo in the flow-aggregator YAML: the image key didn't
match the one used in generate-manifest-flow-aggregator.sh when invoking
kustomize.
  • Loading branch information
antoninbas authored and srikartati committed Dec 21, 2020
1 parent 9cc915d commit 052c02a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ else
docker build --pull -t antrea/flow-aggregator:$(DOCKER_IMG_VERSION) -f build/images/flow-aggregator/Dockerfile .
endif
docker tag antrea/flow-aggregator:$(DOCKER_IMG_VERSION) antrea/flow-aggregator
docker tag antrea/flow-aggregator:$(DOCKER_IMG_VERSION) projects.registry.vmware.com/antrea/flow-aggregator
docker tag antrea/flow-aggregator:$(DOCKER_IMG_VERSION) projects.registry.vmware.com/antrea/flow-aggregator:$(DOCKER_IMG_VERSION)

.PHONY: verify
verify:
Expand Down
2 changes: 1 addition & 1 deletion build/yamls/flow-aggregator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
- --v=0
command:
- flow-aggregator
image: antrea/flow-aggregator
image: projects.registry.vmware.com/antrea/flow-aggregator:latest
imagePullPolicy: IfNotPresent
name: flow-aggregator
ports:
Expand Down
2 changes: 1 addition & 1 deletion build/yamls/flow-aggregator/base/flow-aggregator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
command:
- flow-aggregator
name: flow-aggregator
image: antrea/flow-aggregator
image: flow-aggregator
ports:
- containerPort: 4739
volumeMounts:
Expand Down
2 changes: 1 addition & 1 deletion hack/generate-manifest-flow-aggregator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ $KUSTOMIZE edit add base $BASE
find ../../patches/$MODE -name \*.yml -exec cp {} . \;

if [ "$MODE" == "dev" ]; then
$KUSTOMIZE edit set image flow-aggregator=antrea/flow-aggregator:latest
$KUSTOMIZE edit set image flow-aggregator=projects.registry.vmware.com/antrea/flow-aggregator:latest
$KUSTOMIZE edit add patch imagePullPolicy.yml
fi

Expand Down
2 changes: 1 addition & 1 deletion hack/release/prepare-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export IMG_NAME=projects.registry.vmware.com/antrea/octant-antrea-ubuntu
export IMG_NAME=projects.registry.vmware.com/antrea/antrea-windows
./hack/generate-manifest-windows.sh --mode release > "$OUTPUT_DIR"/antrea-windows.yml

export IMG_NAME=antrea/flow-aggregator
export IMG_NAME=projects.registry.vmware.com/antrea/flow-aggregator
./hack/generate-manifest-flow-aggregator.sh --mode release > "$OUTPUT_DIR"/flow-aggregator.yml

ls "$OUTPUT_DIR" | cat

0 comments on commit 052c02a

Please sign in to comment.