update helpers.go to use ignition MaxVersion
also update to use generic igntypes alias
package common
import (
- ignv2_2types "github.com/coreos/ignition/config/v2_2/types"
+ igntypes "github.com/coreos/ignition/config/v2_2/types"
)
-// NewIgnConfig returns an empty ignition config with version set as 2.2.0
-func NewIgnConfig() ignv2_2types.Config {
- return ignv2_2types.Config{
- Ignition: ignv2_2types.Ignition{
- Version: "2.2.0",
+// NewIgnConfig returns an empty ignition config with version set as latest version
+func NewIgnConfig() igntypes.Config {
+ return igntypes.Config{
+ Ignition: igntypes.Ignition{
+ Version: igntypes.MaxVersion.String(),
},
}
}
