treasuremap/manifests/function/logging-operator/replacements/versions.yaml
Steven Fitzpatrick fdcac8d9fb Add elasticsearch-exporter to our elastic-stack
This change introduces a function for deploying the community
prometheus-easticsearch-exporter chart, and adds it to our
elastic-stack composite.

Upon review it was found that the chart version was being
replaced at the incorrect yaml path accross all LMA components,
so these replacements are corrected in this PS as well.

Change-Id: Iad973f4a16d9985a639c3c6927d9f74cd57f4910
2021-05-26 19:48:18 +00:00

119 lines
3.2 KiB
YAML

apiVersion: airshipit.org/v1alpha1
kind: ReplacementTransformer
metadata:
name: logging-operator-versions-replacements
annotations:
config.kubernetes.io/function: |-
container:
image: quay.io/airshipit/replacement-transformer:v2
replacements:
# Helm Repo (logging-operator and logging-operator-logging charts)
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.helm_repositories.banzai_cloud.url}"
target:
objref:
kind: HelmRepository
name: banzaicloud
fieldrefs: ["{.spec.url}"]
# Logging-operator Chart
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.charts.logging_operator.chart}"
target:
objref:
kind: HelmRelease
name: logging-operator
fieldrefs: ["{.spec.chart.spec.chart}"]
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.charts.logging_operator.version}"
target:
objref:
kind: HelmRelease
name: logging-operator
fieldrefs: ["{.spec.chart.spec.version}"]
# Logging-operator-logging Chart
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.charts.logging_operator_logging.chart}"
target:
objref:
kind: HelmRelease
name: logging-operator-logging
fieldrefs: ["{.spec.chart.spec.chart}"]
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.charts.logging_operator_logging.version}"
target:
objref:
kind: HelmRelease
name: logging-operator-logging
fieldrefs: ["{.spec.chart.spec.version}"]
# Logging-operator Chart Image
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.image_components.logging_operator.logging_operator}"
target:
objref:
kind: HelmRelease
name: logging-operator
fieldrefs: ["{.spec.values.image}"]
# Logging-operator-logging Chart Images
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.image_components.logging_operator_logging.config_reloader}"
target:
objref:
kind: HelmRelease
name: logging-operator-logging
fieldrefs: ["{.spec.values.fluentd.configReloaderImage}"]
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.image_components.logging_operator_logging.fluentbit}"
target:
objref:
kind: HelmRelease
name: logging-operator-logging
fieldrefs: ["{.spec.values.fluentbit.image}"]
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.image_components.logging_operator_logging.fluentd}"
target:
objref:
kind: HelmRelease
name: logging-operator-logging
fieldrefs: ["{.spec.values.fluentd.image}"]
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.image_components.logging_operator_logging.volume_mod}"
target:
objref:
kind: HelmRelease
name: logging-operator-logging
fieldrefs: ["{.spec.values.fluentd.volumeModImage}"]