diff --git a/images/virtualization-artifact/pkg/controller/vm/internal/provisioning.go b/images/virtualization-artifact/pkg/controller/vm/internal/provisioning.go index daebaca22..71e74684d 100644 --- a/images/virtualization-artifact/pkg/controller/vm/internal/provisioning.go +++ b/images/virtualization-artifact/pkg/controller/vm/internal/provisioning.go @@ -130,10 +130,7 @@ func (h *ProvisioningHandler) genConditionFromSecret(ctx context.Context, builde Message(fmt.Sprintf("Secret %q not found.", secretKey.String())) return nil } - validate := false - if len(checkKeys) == 0 { - validate = true - } + validate := true for _, key := range checkKeys { if _, ok := secret.Data[key]; !ok { validate = false