Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Fix makefile deploy, missing customized image name in yaml #7

Merged
merged 1 commit into from
Oct 12, 2021
Merged
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
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ push:
$(OCI_BIN) push $(IMAGE):$(VERSION)

ovnk-deploy:
sed -e 's/goflow2-kube:dev/goflow2-kube:$(VERSION)/' ./examples/goflow-kube.yaml | kubectl apply -f - && \
sed -e 's~quay\.io/netobserv/goflow2-kube:dev~$(IMAGE):$(VERSION)~' ./examples/goflow-kube.yaml | kubectl apply -f - && \
GF_IP=`kubectl get svc goflow -ojsonpath='{.spec.clusterIP}'` && echo "Goflow IP: $$GF_IP" && \
kubectl set env daemonset/ovnkube-node -c ovnkube-node -n ovn-kubernetes OVN_IPFIX_TARGETS="$$GF_IP:2055"

cno-deploy:
sed -e 's/goflow2-kube:dev/goflow2-kube:$(VERSION)/' ./examples/goflow-kube.yaml | kubectl apply -f - && \
sed -e 's~quay\.io/netobserv/goflow2-kube:dev~$(IMAGE):$(VERSION)~' ./examples/goflow-kube.yaml | oc apply -f - && \
GF_IP=`oc get svc goflow -ojsonpath='{.spec.clusterIP}'` && "Goflow IP: $$GF_IP" && \
oc patch networks.operator.openshift.io cluster --type='json' -p "$(sed -e "s/GF_IP/$$GF_IP/" examples/net-cluster-patch.json)"

Expand Down