Skip to content

Commit

Permalink
add log.
Browse files Browse the repository at this point in the history
  • Loading branch information
lingdie committed Oct 11, 2023
1 parent b0cd9d2 commit 88d092d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/admission/api/v1/ingress_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (v *IngressValidator) checkOwner(i *netv1.Ingress, rule *netv1.IngressRule)
}
}
// pass owner check
ilog.Info("ingress host "+rule.Host+" is not owned by other user, pass checkOwner validate", "ingress namespace", i.Namespace, "ingress name", i.Name)
ilog.Info("ingress host "+rule.Host+" pass checkOwner validate", "ingress namespace", i.Namespace, "ingress name", i.Name)
return nil
}

Expand All @@ -240,5 +240,7 @@ func (v *IngressValidator) checkIcp(i *netv1.Ingress, rule *netv1.IngressRule) e
ilog.Info("deny ingress host "+rule.Host+", icp query result is empty", "ingress namespace", i.Namespace, "ingress name", i.Name, "rule host", rule.Host, "icp result", icpRep.Result)
return fmt.Errorf(code.MessageFormat, code.IngressFailedIcpCheck, "icp query result is empty")
}
// pass icp check
ilog.Info("ingress host "+rule.Host+" pass checkIcp validate", "ingress namespace", i.Namespace, "ingress name", i.Name, "rule host", rule.Host, "icp result", icpRep.Result)
return nil
}

0 comments on commit 88d092d

Please sign in to comment.