mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-05 15:37:19 +00:00
754 ensuring CRD syncs before kyverno starts
This commit is contained in:
parent
a369675e08
commit
63e7533a49
1 changed files with 3 additions and 0 deletions
|
@ -52,6 +52,9 @@ func (c *crdSync) Run(workers int, stopCh <-chan struct{}) {
|
|||
glog.V(4).Infof("Could not set custom OpenApi document: %v\n", err)
|
||||
}
|
||||
|
||||
// Sync CRD before kyverno starts
|
||||
c.sync()
|
||||
|
||||
for i := 0; i < workers; i++ {
|
||||
go wait.Until(c.sync, time.Second*10, stopCh)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue