mirror of
https://github.com/fluxcd/flux2-hub-spoke-example.git
synced 2025-07-28 00:03:19 +00:00
Add validation script
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
5dcfc42aaf
commit
537fdc4926
2 changed files with 79 additions and 0 deletions
24
Makefile
Normal file
24
Makefile
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Copyright 2024 The Flux authors. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Flux hub-and-spoke
|
||||
# Requirements: docker, kind, kubectl
|
||||
|
||||
.ONESHELL:
|
||||
.SHELLFLAGS += -e
|
||||
|
||||
.PHONY: validate
|
||||
validate: # Validate the Flux manifests
|
||||
scripts/validate.sh
|
||||
|
||||
.PHONY: fleet-up
|
||||
fleet-up: # Start local Kind clusters (flux-hub, flux-staging and flux-production)
|
||||
scripts/fleet-up.sh
|
||||
|
||||
.PHONY: fleet-down
|
||||
fleet-down: # Teardown the Kind clusters
|
||||
scripts/fleet-down.sh
|
||||
|
||||
.PHONY: help
|
||||
help: ## Display this help menu
|
||||
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-20s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
|
Loading…
Add table
Add a link
Reference in a new issue