mirror of https://github.com/fluxcd/flux2.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.0 KiB
YAML
64 lines
1.0 KiB
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: {{ .fluxns }}
|
|
---
|
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
kind: Kustomization
|
|
metadata:
|
|
name: test
|
|
namespace: {{ .fluxns }}
|
|
spec:
|
|
sourceRef:
|
|
kind: GitRepository
|
|
name: test
|
|
interval: 1m
|
|
path: "./"
|
|
prune: true
|
|
postBuild:
|
|
substitute:
|
|
TEST_OVERRIDE: "in-line"
|
|
TEST_INLINE: "in-line"
|
|
substituteFrom:
|
|
- kind: ConfigMap
|
|
name: test
|
|
- kind: Secret
|
|
name: test
|
|
---
|
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
kind: Kustomization
|
|
metadata:
|
|
name: test-from
|
|
namespace: {{ .fluxns }}
|
|
spec:
|
|
sourceRef:
|
|
kind: GitRepository
|
|
name: test
|
|
interval: 1m
|
|
path: "./"
|
|
prune: true
|
|
postBuild:
|
|
substituteFrom:
|
|
- kind: ConfigMap
|
|
name: test
|
|
- kind: Secret
|
|
name: test
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: test
|
|
namespace: {{ .fluxns }}
|
|
data:
|
|
TEST_OVERRIDE: "cm"
|
|
TEST_CM: "cm"
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: test
|
|
namespace: {{ .fluxns }}
|
|
stringData:
|
|
TEST_OVERRIDE: "secret"
|
|
TEST_SECRET: "secret"
|