-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Big Bang example to do GitOps correctly (#185)
Signed-off-by: Jeff McCoy <code@jeffm.us>
- Loading branch information
1 parent
6e48c59
commit e448807
Showing
19 changed files
with
3,946 additions
and
37 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
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,23 @@ | ||
.DEFAULT_GOAL := help | ||
|
||
.PHONY: help | ||
help: ## Show a list of all targets | ||
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) \ | ||
| sed -n 's/^\(.*\): \(.*\)##\(.*\)/\1:\3/p' \ | ||
| column -t -s ":" | ||
|
||
.PHONY: all | ||
all: ## Download the latest version of Zarf, build the deploy package, and start a VM with Vagrant | ||
@cd .. && $(MAKE) clean fetch-release package-example-big-bang vm-init | ||
|
||
.PHONY: all-dev | ||
all-dev: ## Same as 'default', but build Zarf rather than downloading it | ||
@cd .. && $(MAKE) clean build-release package-example-big-bang vm-init | ||
|
||
.PHONY: vm-init | ||
vm-init: ## Bring up the VM | ||
@cd .. && $(MAKE) vm-init | ||
|
||
.PHONY: vm-destroy | ||
vm-destroy: ## Destroy the VM | ||
@cd .. && $(MAKE) vm-destroy |
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,101 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
labels: | ||
owner: bigbang | ||
name: bigbang | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
type: Opaque | ||
metadata: | ||
name: zarf-git-secret | ||
namespace: bigbang | ||
stringData: | ||
username: "zarf-git-user" | ||
password: "###ZARF_SECRET###" | ||
--- | ||
apiVersion: source.toolkit.fluxcd.io/v1beta1 | ||
kind: GitRepository | ||
metadata: | ||
name: zarf | ||
namespace: bigbang | ||
spec: | ||
ignore: | | ||
# exclude file extensions | ||
/**/*.md | ||
/**/*.txt | ||
/**/*.sh | ||
interval: 5m | ||
url: http://stuart-gitea-http.git.svc.cluster.local:3000/zarf-git-user/mirror__github.com__defenseunicorns__zarf.git | ||
secretRef: | ||
name: zarf-git-secret | ||
ref: | ||
branch: master | ||
# tag: 1.21.0 | ||
--- | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1 | ||
kind: Kustomization | ||
metadata: | ||
name: bigbang | ||
namespace: bigbang | ||
spec: | ||
interval: 5m | ||
path: "./examples/big-bang/template/bigbang" | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: zarf | ||
healthChecks: | ||
- apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
namespace: bigbang | ||
name: bigbang | ||
- apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
namespace: bigbang | ||
name: cluster-auditor | ||
- apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
namespace: bigbang | ||
name: eck-operator | ||
- apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
namespace: bigbang | ||
name: ek | ||
- apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
namespace: bigbang | ||
name: fluent-bit | ||
- apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
namespace: bigbang | ||
name: gatekeeper | ||
- apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
namespace: bigbang | ||
name: istio | ||
- apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
namespace: bigbang | ||
name: istio-operator | ||
- apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
namespace: bigbang | ||
name: jaeger | ||
- apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
namespace: bigbang | ||
name: kiali | ||
- apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
namespace: bigbang | ||
name: monitoring | ||
- apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
namespace: bigbang | ||
name: twistlock | ||
timeout: 60m | ||
postBuild: | ||
substitute: | ||
zarf_secret: "###ZARF_SECRET###" |
Empty file.
10 changes: 0 additions & 10 deletions
10
...s/big-bang/manifests/other_manifests.yaml → ...g-bang/manifests/flux/regcred-secret.yaml
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
Oops, something went wrong.