Skip to content

Commit

Permalink
Update comments in makefile to reflect new labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin-qpoint committed Feb 13, 2024
1 parent bfd5175 commit 2801a53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,23 @@ upload-images: kind ## Upload app images into the cluster
fi; \
done

label-namespaces-egress-service: kind ## Label the namespace for each app in apps directory with qpoint-egress=service
label-namespaces-egress-service: kind ## Label the namespace for each app in apps directory with qpoint.io/egress=service
@for dir in apps/*/; do \
ns=$$(basename "$$dir"); \
if ! $(KUBECTL) get namespace "$$ns" -o=jsonpath='{.metadata.labels.qpoint-egress}' | grep -q 'service'; then \
$(KUBECTL) label namespace "$$ns" qpoint.io/egress=service --overwrite; \
fi; \
done

label-namespaces-egress-inject: kind ## Label the namespace for each app in apps directory with qpoint-egress=inject
label-namespaces-egress-inject: kind ## Label the namespace for each app in apps directory with qpoint.io/egress=inject
@for dir in apps/*/; do \
ns=$$(basename "$$dir"); \
if ! $(KUBECTL) get namespace "$$ns" -o=jsonpath='{.metadata.labels.qpoint-egress}' | grep -q 'inject'; then \
$(KUBECTL) label namespace "$$ns" qpoint.io/egress=inject --overwrite; \
fi; \
done

label-namespaces-egress-disable: kind ## Label the namespace for each app in apps directory with qpoint-egress=disable
label-namespaces-egress-disable: kind ## Label the namespace for each app in apps directory with qpoint.io/egress=disable
@for dir in apps/*/; do \
ns=$$(basename "$$dir"); \
if ! $(KUBECTL) get namespace "$$ns" -o=jsonpath='{.metadata.labels.qpoint-egress}' | grep -q 'disable'; then \
Expand Down

0 comments on commit 2801a53

Please sign in to comment.