Skip to content

Commit 3f15469

Browse files
committed
Fix validation message for CSR condition status values
1 parent ea8f4cb commit 3f15469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/apis/certificates/validation/validation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func validateConditions(fldPath *field.Path, csr *certificates.CertificateSignin
239239
case c.Status == "":
240240
allErrs = append(allErrs, field.Required(fldPath.Index(i).Child("status"), ""))
241241
case !allowedStatusValues.Has(string(c.Status)):
242-
allErrs = append(allErrs, field.NotSupported(fldPath.Index(i).Child("status"), c.Status, trueConditionTypes.List()))
242+
allErrs = append(allErrs, field.NotSupported(fldPath.Index(i).Child("status"), c.Status, allowedStatusValues.List()))
243243
}
244244

245245
if !opts.allowBothApprovedAndDenied {

0 commit comments

Comments
 (0)