-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: define sync target in distro folder
- Loading branch information
1 parent
43e529b
commit 9db58af
Showing
3 changed files
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
THIS_MAKEFILE_DIR := $(realpath $(dir $(realpath $(lastword $(MAKEFILE_LIST))))) | ||
|
||
.PHONY: sync-configs | ||
sync-configs: | ||
@${THIS_MAKEFILE_DIR}/sync-configs.sh | ||
|
||
.PHONY: check-k8s-configs | ||
check-k8s-configs: sync-configs | ||
@git diff --name-only | grep -E 'distributions\/nrdot-collector-k8s\/config-\w*.yaml' \ | ||
&& { \ | ||
echo "Collector configs in helm chart have changed. Adjust sync script to take changes into account.";\ | ||
echo "Diff of $(NOTICE_OUTPUT):";\ | ||
git --no-pager diff HEAD -- 'distributions/nrdot-collector-k8s/config-*.yaml';\ | ||
exit 1;\ | ||
} \ | ||
|| exit 0 |