Deploy helm-chart-collator to sub-clusters

- Deploy the helm-chart-collator service and HelmRepository
  to sub-clusters so that HelmReleases there can use it
- Integrate flux helm composite replacements [0].
- Move lma services to sub-directory of the workload to be
  able to set their namespace independent of the rest of the
  workload, currently helm-chart-collator.

[0]: https://review.opendev.org/c/airship/airshipctl/+/790791

Relates-To: #162
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
Change-Id: Ib9f3add70a84ab75bfb0b1b6b7083048e469a24f
This commit is contained in:
Sean Eagan 2021-06-18 11:21:56 -05:00 committed by Andrii Ostapenko
parent 2be9965660
commit bf745d018c
13 changed files with 40 additions and 28 deletions

View File

@ -1,20 +1,3 @@
resources:
- ../../../../../composite/lma-infra
- ../../../../../composite/elastic-stack
- ../../../../../composite/monitoring-stack
namespace: lma
patches:
- path: patches/elasticsearch-ingest.yaml
target:
kind: HelmRelease
name: elasticsearch-ingest
- path: patches/elasticsearch-data.yaml
target:
kind: HelmRelease
name: elasticsearch-data
- path: patches/kibana.yaml
target:
kind: HelmRelease
name: kibana
- ../../../../sub-cluster/workload
- services

View File

@ -1,5 +1,3 @@
resources:
- ../../../../../../composite/lma-infra/replacements
- ../../../../../../composite/elastic-stack/replacements
- ../../../../../../composite/monitoring-stack/replacements
- lma-service-ports.yaml
- ../../../../../sub-cluster/workload/replacements
- ../services/replacements

View File

@ -0,0 +1,22 @@
resources:
- ../../../../../../composite/lma-infra
- ../../../../../../composite/elastic-stack
- ../../../../../../composite/monitoring-stack
# This kustomization exists be able to set the namespace here without
# affecting the namespaces of anything else in the parent directory
namespace: lma
patches:
- path: patches/elasticsearch-ingest.yaml
target:
kind: HelmRelease
name: elasticsearch-ingest
- path: patches/elasticsearch-data.yaml
target:
kind: HelmRelease
name: elasticsearch-data
- path: patches/kibana.yaml
target:
kind: HelmRelease
name: kibana

View File

@ -0,0 +1,5 @@
resources:
- ../../../../../../../composite/lma-infra/replacements
- ../../../../../../../composite/elastic-stack/replacements
- ../../../../../../../composite/monitoring-stack/replacements
- lma-service-ports.yaml

View File

@ -0,0 +1,2 @@
resources:
- ../../../../../sub-cluster/workload/replacements

View File

@ -1,2 +1,3 @@
resources:
- ../../../../../airshipctl/manifests/composite/flux-helm/
- ../../../function/helm-chart-collator/

View File

@ -1,3 +1,3 @@
resources:
- ../../../../../../airshipctl/manifests/function/flux/source-controller/replacements
- ../../../../../../airshipctl/manifests/function/flux/helm-controller/replacements
- ../../../../../../airshipctl/manifests/composite/flux-helm/replacements
- ../../../../function/helm-chart-collator/replacements

View File

@ -1,3 +1,2 @@
# NOTE: This directory should not be inherited; it should be redefined within the
# type that defines the actual sub-cluster.
resources: []
resources:
- ../../../function/helm-chart-repository

View File

@ -0,0 +1,2 @@
resources:
- ../../../../function/helm-chart-repository/replacements