Skip to content

Commit

Permalink
chore: update to kubenotation v0.1.1
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Choudhary <[email protected]>
  • Loading branch information
vishal-chdhry committed Jul 21, 2023
1 parent e473d3b commit 4862442
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/ecr v1.18.7
github.com/go-logr/zapr v1.2.4
github.com/google/go-containerregistry v0.14.0
github.com/nirmata/kubenotation v0.1.0
github.com/nirmata/kubenotation v0.1.1
github.com/nirmata/kyverno-notation-verifier v0.3.3
github.com/notaryproject/notation-core-go v1.0.0-rc.4
github.com/pkg/errors v0.9.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
github.com/nirmata/kubenotation v0.1.0 h1:XXcGkPY4O6vRjw3LbYNpR++XS/rGshISDWuljL3qDYs=
github.com/nirmata/kubenotation v0.1.0/go.mod h1:4OkBf8RAtdw9dDWcnogMF3A82cnFunLr3ckDZnZNNVE=
github.com/nirmata/kubenotation v0.1.1 h1:aoY4gQF50SgTYK47YrE8eyC4MpBVLGDzn4IMclsiiFk=
github.com/nirmata/kubenotation v0.1.1/go.mod h1:4OkBf8RAtdw9dDWcnogMF3A82cnFunLr3ckDZnZNNVE=
github.com/nirmata/kyverno-notation-verifier v0.3.3 h1:hMKaKEOrC/yMd5j/0TBstFGD1Y+picEeF6wQGncRCr0=
github.com/nirmata/kyverno-notation-verifier v0.3.3/go.mod h1:NuW0wH4IKDVgjaZ+cn/EIPy6TjmdPlG7tzKY1+pQBvY=
github.com/notaryproject/notation-core-go v1.0.0-rc.4 h1:gzo4JzKRMLGoOeOhPXxoudjL79Mi9X6flS8qJbRtZ+k=
Expand Down
5 changes: 1 addition & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ func main() {

slog := logger.Sugar().WithOptions(zap.AddStacktrace(zap.DPanicLevel))

errKN := make(chan error, 1)
go func() {
errKN <- kubenotation.Start(zapr.NewLogger(logger), metricsAddr, probeAddr, enableLeaderElection)
kubenotation.Start(zapr.NewLogger(logger), metricsAddr, probeAddr, enableLeaderElection)
}()

if !flagLocal {
Expand Down Expand Up @@ -93,8 +92,6 @@ func main() {
slog.Infof("HTTP server error: %v", err)
case err := <-errsTLS:
slog.Infof("TLS server error: %v", err)
case err := <-errKN:
slog.Infof("failed to initialize crds: %v", err)
}

verifier.Stop()
Expand Down

0 comments on commit 4862442

Please sign in to comment.