28db50e6d6
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
66 lines
1.3 KiB
YAML
66 lines
1.3 KiB
YAML
# in this document set, we have an ephemeral node with
|
|
# the right label, resolvable/valid network data and
|
|
# a user-data secret with the right label
|
|
#
|
|
# we also introduce a second baremetal host that is not
|
|
# labeled as the ephemeral node to facilitate testing
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
labels:
|
|
test: validdocset
|
|
name: master-1-bmc
|
|
type: Opaque
|
|
stringData:
|
|
username: foobar
|
|
password: goober
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
labels:
|
|
airshipit.org/ephemeral-user-data: 'true'
|
|
test: validdocset
|
|
name: airship-isogen-userdata
|
|
type: Opaque
|
|
stringData:
|
|
userData: cloud-init
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
namespace: metal3
|
|
metadata:
|
|
labels:
|
|
test: validdocset
|
|
name: master-1-networkdata
|
|
type: Opaque
|
|
stringData:
|
|
networkData: net-config
|
|
---
|
|
apiVersion: metal3.io/v1alpha1
|
|
kind: BareMetalHost
|
|
metadata:
|
|
labels:
|
|
test: validdocset
|
|
name: master-2
|
|
bmc:
|
|
address: ipmi://127.0.0.1
|
|
credentialsName: master-2-bmc
|
|
networkData:
|
|
name: master-2-networkdata
|
|
namespace: metal3
|
|
---
|
|
apiVersion: metal3.io/v1alpha1
|
|
kind: BareMetalHost
|
|
metadata:
|
|
labels:
|
|
airshipit.org/ephemeral-node: 'true'
|
|
test: validdocset
|
|
name: master-1
|
|
spec:
|
|
bmc:
|
|
address: ipmi://127.0.0.1
|
|
credentialsName: master-1-bmc
|
|
networkData:
|
|
name: master-1-networkdata
|
|
namespace: metal3 |