Merge "Add LMA to multi-tenant target cluster"

This commit is contained in:
Zuul 2021-06-30 20:39:11 +00:00 committed by Gerrit Code Review
commit a4efdd69d1
8 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,6 @@
resources:
- ../../../../type/multi-tenant/target/workload-config
- ../catalogues
transformers:
- ../../../../type/multi-tenant/target/workload-config/replacements

View File

@ -1,2 +1,13 @@
resources:
- ../../../../function/workload-config
- ../../../../function/lma-configs
patches:
- path: patches/cluster-flow.yaml
target:
kind: ClusterFlow
name: all-pods
- path: patches/cluster-output.yaml
target:
kind: ClusterOutpt
name: elasticsearch

View File

@ -0,0 +1,6 @@
- op: add
path: /spec/filters/-
value:
record_modifier:
records:
- airship-cluster: target

View File

@ -0,0 +1,3 @@
- op: replace
path: /spec/elasticsearch/host
value: %LOADBALANCER%:%NODEPORT%

View File

@ -0,0 +1,2 @@
resources:
- lma-elasticsearch-output.yaml

View File

@ -0,0 +1,29 @@
apiVersion: airshipit.org/v1alpha1
kind: ReplacementTransformer
metadata:
name: lma-elasticsearch-output-address
annotations:
config.kubernetes.io/function: |-
container:
image: localhost/replacement-transformer
replacements:
- source:
objref:
kind: VariableCatalogue
name: subcluster-networking
fieldref: "{.spec.lma.kubernetes.controlPlaneEndpoint.host}"
target:
objref:
kind: ClusterOutput
name: elasticsearch
fieldrefs: ["{.spec.elasticsearch.host}%LOADBALANCER%"]
- source:
objref:
kind: VariableCatalogue
name: subcluster-networking
fieldref: "{.spec.lma.exposed_services[(@.name == 'elasticsearch-ingest')].nodePort}"
target:
objref:
kind: ClusterOutput
name: elasticsearch
fieldrefs: ["{.spec.elasticsearch.host}%NODEPORT%"]

View File

@ -6,3 +6,4 @@ resources:
- ../../../../function/vino
- ../../../../function/helm-chart-repository/
- ../../../../function/local-storage
- ../../../../composite/lma-infra

View File

@ -6,3 +6,4 @@ resources:
- ../../../../../function/vino/replacements
- ../../../../../function/helm-chart-repository/replacements
- ../../../../../function/local-storage/replacements
- ../../../../../composite/lma-infra/replacements