Skip to content

Commit

Permalink
makefile: add kubectl wait to deploy-examples-update and deploy targets
Browse files Browse the repository at this point in the history
  • Loading branch information
kasia-kujawa committed Apr 2, 2021
1 parent df550bb commit 67de448
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ deploy: manifests kustomize
sed -i.backup "s#sumologic/tailing-sidecar:latest#${TAILING_SIDECAR_IMG}#g" config/default/manager_patch.yaml
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/default | kubectl apply -f -
kubectl wait --for=condition=available --timeout 60s deployment tailing-sidecar-operator -n tailing-sidecar-system
kubectl wait --for=condition=ready --timeout 60s pod -l control-plane=tailing-sidecar-operator -n tailing-sidecar-system

# Remove resources created with make deploy
Expand All @@ -87,6 +88,8 @@ deploy-examples:
deploy-examples-update:
kubectl apply -f examples/pod_with_annotations_update.yaml --force
kubectl apply -f examples/deployment_with_annotations_update.yaml --force
kubectl wait --for=condition=ready --timeout 300s pod -l app=pod-with-annotations -n tailing-sidecar-system
kubectl wait --for=condition=ready --timeout 300s pod -l app=deployment-with-annotations -n tailing-sidecar-system

deploy-example-with-crd:
kubectl apply -f config/samples/tailing-sidecar_v1_tailingsidecar.yaml -n tailing-sidecar-system
Expand Down

0 comments on commit 67de448

Please sign in to comment.