surface self-check errors in challenge resource

Signed-off-by: Daniel Morsing <dmo@jetstack.io>
This commit is contained in:
Daniel Morsing 2019-01-21 11:49:46 +00:00
parent 88d811b34c
commit b0a9b8276c

View File

@ -149,7 +149,7 @@ func (c *Controller) Sync(ctx context.Context, ch *cmapi.Challenge) (err error)
err = solver.Check(ctx, genericIssuer, ch) err = solver.Check(ctx, genericIssuer, ch)
if err != nil { if err != nil {
glog.Infof("propagation check failed: %v", err) glog.Infof("propagation check failed: %v", err)
ch.Status.Reason = fmt.Sprintf("Waiting for %s challenge propagation", ch.Spec.Type) ch.Status.Reason = fmt.Sprintf("Waiting for %s challenge propagation: %s", ch.Spec.Type, err)
key, err := controllerpkg.KeyFunc(ch) key, err := controllerpkg.KeyFunc(ch)
// This is an unexpected edge case and should never occur // This is an unexpected edge case and should never occur