Merge pull request #637 from a-bouts/fix-gzip-cloud-init
Allow using Gzip and GzipBase64 encoding in case of cloud-init format
This commit is contained in:
commit
0594e60a01
|
|
@ -186,7 +186,6 @@ func (s *RKE2ConfigSpec) validateIgnition(pathPrefix *field.Path) field.ErrorLis
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
for i, file := range s.Files {
|
for i, file := range s.Files {
|
||||||
if file.Encoding == Gzip || file.Encoding == GzipBase64 {
|
if file.Encoding == Gzip || file.Encoding == GzipBase64 {
|
||||||
|
|
@ -199,6 +198,7 @@ func (s *RKE2ConfigSpec) validateIgnition(pathPrefix *field.Path) field.ErrorLis
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return allErrs
|
return allErrs
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue