Sean Eagan 3ae0bf6c54 Pin airship images for release
This pins to static tags for all airship owned images:

airship/images:
  all: 053c992218601cc49fd4a595ee4873380b132408
airship/airshipctl:
  aiap-*: 892bb6a16d53a0f43571284db83901bef53ed440
  released krm functions: v2.0.2 (030bb123d8fedd39125dd6eae92f48e0d32a7469)
  toolbox krm function (unreleased): 346196e6c1d0dda202464133377aa3ec586719e4

Change-Id: I79eedaf0f61c1bcda58640aed0540e1102b23dc8
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-04-07 09:21:47 -05:00

34 lines
991 B
YAML

# These rules inject versioned artifacts into the k8scontrol function.
apiVersion: airshipit.org/v1alpha1
kind: ReplacementTransformer
metadata:
name: k8scontrol-versions-replacements
annotations:
config.kubernetes.io/function: |-
container:
image: quay.io/airshipit/replacement-transformer:v2.0.2
replacements:
# Replace the Kubernetes version in the KubeadmControlPlane
- source:
objref:
kind: VersionsCatalogue
name: versions-airshipctl
fieldref: "{.spec.kubernetes}"
target:
objref:
kind: KubeadmControlPlane
name: cluster-controlplane
fieldrefs: ["{.spec.version}"]
# Replace the controlplane disk image in the Metal3MachineTemplate
- source:
objref:
kind: VersionsCatalogue
name: versions-airshipctl
fieldref: "{.spec.files.k8scontrol.cluster_controlplane_image}"
target:
objref:
kind: Metal3MachineTemplate
name: cluster-controlplane
fieldrefs: ["{.spec.template.spec.image}"]