treasuremap/manifests/composite/storage-cluster/replacements/versions.yaml
Sean Eagan 8a8b3e3d72 Externalize KRM function versions
This integrates the airshipctl change to externalize KRM
function versions [0].

The KRM function versions used in the manifests are updated to those
which the airshipctl deployment scripts now resolve to the "in tree"
locally built images, as both sourced via AIRSHIPCTL_REF.

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

Depends-On: https://review.opendev.org/c/airship/airshipctl/+/790507
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
Change-Id: I61b29fda93b9d70c47612ebd1bfdcd348cc63a0f
2021-06-03 14:07:21 -05:00

31 lines
828 B
YAML

apiVersion: airshipit.org/v1alpha1
kind: ReplacementTransformer
metadata:
name: rook-ceph-cluster-replacements
annotations:
config.kubernetes.io/function: |-
container:
image: localhost/replacement-transformer
replacements:
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.images.storage-rook.ceph.rook-ceph-tools.image}"
target:
objref:
kind: Deployment
name: rook-ceph-tools
fieldrefs: ["{.spec.template.spec.containers[?(.name == 'rook-ceph-tools')].image}"]
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.images.storage-rook.ceph.ceph-version.image}"
target:
objref:
kind: CephCluster
name: ceph
fieldrefs: ["{.spec.cephVersion.image}"]