mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-01 11:26:29 +02:00
23 lines
483 B
Go
23 lines
483 B
Go
package reconciler
|
|
|
|
import (
|
|
"github.com/pomerium/pomerium/pkg/health"
|
|
)
|
|
|
|
func (c *service) ReportBundleAppliedSuccess(
|
|
bundleID string,
|
|
metadata map[string]string,
|
|
) {
|
|
var attr []health.Attr
|
|
for k, v := range metadata {
|
|
attr = append(attr, health.StrAttr(k, v))
|
|
}
|
|
health.ReportOK(health.ZeroResourceBundle(bundleID), attr...)
|
|
}
|
|
|
|
func (c *service) ReportBundleAppliedFailure(
|
|
bundleID string,
|
|
err error,
|
|
) {
|
|
health.ReportError(health.ZeroResourceBundle(bundleID), err)
|
|
}
|