a65a7e155b
Relates-To: #524 Signed-off-by: Sean Eagan <seaneagan1@gmail.com> Change-Id: I7e811835ae1e5ab2cab65c398c53126f3a632405
29 lines
668 B
YAML
29 lines
668 B
YAML
apiVersion: airshipit.org/v1alpha1
|
|
kind: Templater
|
|
metadata:
|
|
name: iso-patch-template
|
|
annotations:
|
|
config.kubernetes.io/function: |
|
|
container:
|
|
image: localhost/templater
|
|
envs:
|
|
- AIRSHIPCTL_EPHEMERAL_ISO_URL
|
|
template: |
|
|
{{- $isoURL := env "AIRSHIPCTL_EPHEMERAL_ISO_URL" }}
|
|
{{- if not (empty $isoURL) }}
|
|
apiVersion: builtin
|
|
kind: PatchStrategicMergeTransformer
|
|
metadata:
|
|
name: smp
|
|
patches: |-
|
|
---
|
|
apiVersion: airshipit.org/v1alpha1
|
|
kind: BaremetalManager
|
|
metadata:
|
|
name: RemoteDirectEphemeral
|
|
spec:
|
|
operationOptions:
|
|
remoteDirect:
|
|
isoURL: {{ $isoURL }}
|
|
{{- end }}
|