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

35 lines
754 B
YAML

apiVersion: airshipit.org/v1alpha1
kind: Templater
metadata:
name: host-endpoint-worker-template
annotations:
config.kubernetes.io/function: |
container:
image: localhost/templater
values:
hep:
interfaces:
- name: vib
link: vm-infra-bridge
- name: oam
link: bond0.61
- name: ksn
link: bond0.64
template: |
{{ range $host:= .hep }}
{{- $hostname := $host.name }}
{{ range $interface := $.interfaces }}
---
apiVersion: projectcalico.org/v3
kind: HostEndpoint
metadata:
name: {{ $hostname }}-{{ $interface.name }}
labels:
host: {{ $host.type }}
intf-alias: {{ $interface.name }}
spec:
interfaceName: {{ $interface.link }}
node: {{ $hostname }}
{{ end }}
{{ end }}