Skip to content

Commit

Permalink
Merge pull request #20 from skriss/support-log-level
Browse files Browse the repository at this point in the history
bind flags to support --log-level
  • Loading branch information
Carlisia Campos authored Mar 10, 2020
2 parents 6828a73 + 4691321 commit 0e4a927
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/20-skriss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bug fix: have plugin server bind flags to allow --log-level flag to be used
2 changes: 2 additions & 0 deletions velero-plugin-for-gcp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ package main

import (
"github.com/sirupsen/logrus"
"github.com/spf13/pflag"
veleroplugin "github.com/vmware-tanzu/velero/pkg/plugin/framework"
)

func main() {
veleroplugin.NewServer().
BindFlags(pflag.CommandLine).
RegisterObjectStore("velero.io/gcp", newGCPObjectStore).
RegisterVolumeSnapshotter("velero.io/gcp", newGCPVolumeSnapshotter).
Serve()
Expand Down

0 comments on commit 0e4a927

Please sign in to comment.