Refactor kustomization of env vars

This tweaks the generation of the env-vars catalogue to be done in
the airshipctl-catalogues function itself, resulting in a vanilla
catalogue that can be imported as a resource across the phases that
need it.

Change-Id: I40fe9369ad2d5f4b58123f67ac90511db6a2fd12
This commit is contained in:
Matt McEuen 2020-10-14 17:35:16 -05:00
parent d9206c2121
commit d5ec4ecbd2
6 changed files with 4 additions and 13 deletions

View File

@ -1,5 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- versions-airshipctl.yaml
generators:
- env-vars-template.yaml

View File

@ -6,7 +6,6 @@ resources:
generators:
- hostgenerator
- ../../../../function/airshipctl-catalogues
patchesStrategicMerge:
- baremetalhost.yaml

View File

@ -10,8 +10,5 @@ resources:
patchesStrategicMerge:
- versions-catalogue-patch.yaml
generators:
- ../../../../function/airshipctl-catalogues
transformers:
- ../../../../function/k8scontrol/replacements

View File

@ -10,9 +10,6 @@ patchesStrategicMerge:
commonLabels:
airshipit.org/stage: initinfra
generators:
- ../../../../function/airshipctl-catalogues
transformers:
- ../../../../composite/infra/replacements
- ../../../../function/baremetal-operator/replacements

View File

@ -4,6 +4,7 @@ resources:
# TODO (dukov) It's recocommended to upload BareMetalHost objects separately
# otherwise nodes will hang in 'registering' state for quite a long time
- nodes
- ../../../../function/airshipctl-catalogues
- ../../../../function/k8scontrol
patchesStrategicMerge:
@ -11,6 +12,3 @@ patchesStrategicMerge:
commonLabels:
airshipit.org/stage: initinfra
generators:
- ../../../../function/airshipctl-catalogues

View File

@ -11,9 +11,6 @@ patchesStrategicMerge:
commonLabels:
airshipit.org/stage: initinfra
generators:
- ../../../../function/airshipctl-catalogues
transformers:
- ../../../../composite/infra/replacements
- ../../../../function/baremetal-operator/replacements