Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Kao committed Jul 28, 2023
1 parent 608c7ad commit c3f4f67
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions cluster/base/manifests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: manifests
namespace: flux-system
spec:
interval: 5m
dependsOn:
- name: infrastructure
- name: crds
sourceRef:
kind: GitRepository
name: flux-system
path: ./cluster/manifests
prune: true
wait: true
timeout: 5m0s
decryption:
provider: sops
secretRef:
name: sops-age
postBuild:
substitute: {}
substituteFrom:
- kind: ConfigMap
name: cluster-settings
- kind: Secret
name: cluster-secrets
patches:
# Used to keep kustomizations DRY that require decryption and substitution variables
# TODO: Consider if there are use cases where decryption is used but not substitution and vice versa, if so split this into two separate optional patches
- patch: |-
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: not-used
spec:
decryption:
provider: sops
secretRef:
name: sops-age
postBuild:
substituteFrom:
- kind: Secret
name: cluster-secrets
- kind: ConfigMap
name: cluster-settings
target:
labelSelector: substitution.flux.home.arpa/enabled=true

0 comments on commit c3f4f67

Please sign in to comment.