mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-25 05:09:47 +00:00
Allow installing with no users (#574)
This commit is contained in:
@@ -55,6 +55,7 @@ type Install struct {
|
||||
ExtraPartitions sdkTypes.PartitionList `yaml:"extra-partitions,omitempty" mapstructure:"extra-partitions"`
|
||||
ExtraDirsRootfs []string `yaml:"extra-dirs-rootfs,omitempty" mapstructure:"extra-dirs-rootfs"`
|
||||
Force bool `yaml:"force,omitempty" mapstructure:"force"`
|
||||
NoUsers bool `yaml:"nousers,omitempty" mapstructure:"nousers"`
|
||||
}
|
||||
|
||||
func NewConfig(opts ...GenericOptions) *Config {
|
||||
|
@@ -93,7 +93,7 @@ func structFieldsContainedInOtherStruct(left, right interface{}) {
|
||||
leftFieldName := leftTypes.Field(i).Name
|
||||
if leftTypes.Field(i).IsExported() {
|
||||
It(fmt.Sprintf("Checks that the new schema contians the field %s", leftFieldName), func() {
|
||||
if leftFieldName == "Source" {
|
||||
if leftFieldName == "Source" || leftFieldName == "NoUsers" {
|
||||
Skip("Schema not updated yet")
|
||||
}
|
||||
Expect(
|
||||
|
Reference in New Issue
Block a user