Merge pull request #690 from humblec/rbac

replace serviceAccountName key, rbac and cleanup in the code
This commit is contained in:
Kubernetes Prow Robot
2022-04-25 07:39:39 -07:00
committed by GitHub
19 changed files with 69 additions and 67 deletions

View File

@@ -249,9 +249,9 @@ func main(cmd *cobra.Command, args []string) {
factory := informers.NewSharedInformerFactory(snapClient, 0)
lister := factory.Snapshot().V1().VolumeSnapshotClasses().Lister()
//Start the informers
// Start the informers
factory.Start(ctx.Done())
//wait for the caches to sync
// wait for the caches to sync
factory.WaitForCacheSync(ctx.Done())
if err := startServer(ctx, tlsConfig, cw, lister); err != nil {