Add replacements/ for the flux composite

The flux composite bundles together the two individual flux operator
functions, but it fails to provide a `replacements/` to bundle together
their replacements.  This results in sites in airshipctl and
treasuremap needing to pull in the function replacementes individually
at the site level, negating the benefit of the composite abstraction.

This adds the replacements kustomization and adjusts test-site to use it.

Change-Id: Ib08e24bdd6ec8222363137bd09ad79dbcd804490
This commit is contained in:
Matt McEuen 2021-05-11 11:11:20 -05:00
parent bfe8cd3b00
commit ce5ca13b61
2 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../function/flux/source-controller/replacements
- ../../../function/flux/helm-controller/replacements

View File

@ -10,5 +10,4 @@ commonLabels:
transformers: transformers:
- ../../../../function/baremetal-operator/replacements - ../../../../function/baremetal-operator/replacements
- ../../../../function/flux/source-controller/replacements - ../../../../composite/flux-helm/replacements
- ../../../../function/flux/helm-controller/replacements