Skip to content

Commit 1fa458e

Browse files
authored
Gzip is not supported only for ignition format
1 parent cc09c2b commit 1fa458e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

bootstrap/api/v1beta1/rke2config_webhook.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -186,17 +186,17 @@ func (s *RKE2ConfigSpec) validateIgnition(pathPrefix *field.Path) field.ErrorLis
186186
),
187187
)
188188
}
189-
}
190189

191-
for i, file := range s.Files {
192-
if file.Encoding == Gzip || file.Encoding == GzipBase64 {
193-
allErrs = append(
194-
allErrs,
195-
field.Forbidden(
196-
pathPrefix.Child("files").Index(i).Child("encoding"),
197-
cannotUseWithIgnition,
198-
),
199-
)
190+
for i, file := range s.Files {
191+
if file.Encoding == Gzip || file.Encoding == GzipBase64 {
192+
allErrs = append(
193+
allErrs,
194+
field.Forbidden(
195+
pathPrefix.Child("files").Index(i).Child("encoding"),
196+
cannotUseWithIgnition,
197+
),
198+
)
199+
}
200200
}
201201
}
202202

0 commit comments

Comments
 (0)