treasuremap/manifests/function/local-storage/replacements/versions.yaml
Sirisha Gopigiri 84446371f7 Local Persistence Volume Static Provisioner
This patchset provides the local volume provisioner manifests function
for deploying it in a Target cluster, based on Helm charts.

Closes: #27
Change-Id: I4d02727fb71c838c6791cc217d7a652a0011ff40
2021-06-18 08:54:31 +05:30

40 lines
1.0 KiB
YAML

apiVersion: airshipit.org/v1alpha1
kind: ReplacementTransformer
metadata:
name: localvolume-provisioner-replacements
annotations:
config.kubernetes.io/function: |-
container:
image: quay.io/airshipit/replacement-transformer:latest
replacements:
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.images.localstorage.provisioner.provisioner.image}"
target:
objref:
kind: HelmRelease
name: provisioner
fieldrefs: ["{.spec.values.daemonset.image}"]
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.charts.provisioner.chart}"
target:
objref:
kind: HelmRelease
name: provisioner
fieldrefs: ["{.spec.chart.spec.chart}"]
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.charts.provisioner.version}"
target:
objref:
kind: HelmRelease
name: provisioner
fieldrefs: ["{.spec.chart.spec.version}"]