wire ignition bp customization to simplified-installer and raw image
Signed-off-by: Antonio Murdaca <antoniomurdaca@gmail.com>
This commit is contained in:
parent
5c7d43c9a0
commit
1672fb1cf6
7 changed files with 323 additions and 82 deletions
|
|
@ -33,7 +33,7 @@ type IgnitionCustomization struct {
|
|||
|
||||
type EmbeddedIgnitionCustomization struct {
|
||||
ProvisioningURL string `json:"url,omitempty" toml:"url,omitempty"`
|
||||
Data64 string `json:"data,omitempty" toml:"data,omitempty"`
|
||||
Config string `json:"config,omitempty" toml:"config,omitempty"`
|
||||
}
|
||||
|
||||
type FirstBootIgnitionCustomization struct {
|
||||
|
|
@ -421,7 +421,7 @@ func (c *EmbeddedIgnitionCustomization) CheckEmbeddedIgnition() error {
|
|||
if c == nil {
|
||||
return nil
|
||||
}
|
||||
if c.Data64 != "" && c.ProvisioningURL != "" {
|
||||
if c.Config != "" && c.ProvisioningURL != "" {
|
||||
t := reflect.TypeOf(*c)
|
||||
return &CustomizationError{fmt.Sprintf("'%s' and '%s' are not allowed at the same time", t.Field(0).Name, t.Field(1).Name)}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue