airshipctl/pkg/bootstrap/cloudinit/testdata/ephemeralduplicate.yaml
Alan Meadows 28db50e6d6 [#45] iso generation pulls network data from ephemeral host
This commit updates the iso generation process to pull the
network data from the ephemeral host network data from the
baremetalhost spec of the host with the right label, namely:

airshipit.org/ephemeral-node=true

It will back into the secret name and namespace specified
for the given host and extract the network data from this
secret which should be identical to the network configuration
the host would receive during normal provisioning.

It also pulls the user-data for the iso generation process
which is specific to the iso generation process from a secret
with a similar special label:

airshipit.org/ephemeral-user-data=true

Change-Id: Iae6edeb231d9dbae0b316aa73009f145d57ac316
2020-03-11 19:07:14 +04:00

36 lines
793 B
YAML

# in this document set, we have no ephemerally labeled node
# which should cause an error
apiVersion: v1
kind: Secret
metadata:
labels:
test: ephemeralduplicate
name: ephemeralduplicate
type: Opaque
---
apiVersion: metal3.io/v1alpha1
kind: BareMetalHost
metadata:
labels:
test: ephemeralduplicate
airshipit.org/ephemeral-node: 'true'
name: ephemeralduplicate-master-1
---
apiVersion: metal3.io/v1alpha1
kind: BareMetalHost
metadata:
labels:
test: ephemeralduplicate
airshipit.org/ephemeral-node: 'true'
name: ephemeralduplicate-master-2
---
apiVersion: v1
kind: Secret
metadata:
labels:
airshipit.org/ephemeral-user-data: 'true'
test: ephemeralduplicate
name: ephemeralduplicate-airship-isogen-userdata
type: Opaque
stringData:
userData: cloudinit