
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
24 lines
542 B
Go
24 lines
542 B
Go
package document
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// ErrDocNotFound returned if desired document not found
|
|
type ErrDocNotFound struct {
|
|
Selector Selector
|
|
}
|
|
|
|
// ErrMultipleDocsFound returned if desired document not found
|
|
type ErrMultipleDocsFound struct {
|
|
Selector Selector
|
|
}
|
|
|
|
func (e ErrDocNotFound) Error() string {
|
|
return fmt.Sprintf("Document filtered by selector %q found no documents", e.Selector)
|
|
}
|
|
|
|
func (e ErrMultipleDocsFound) Error() string {
|
|
return fmt.Sprintf("Document filtered by selector %q found more than one document", e.Selector)
|
|
}
|