mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
fix: webhooks not registering when using name override (#4992)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
b732158831
commit
aedaa412a0
1 changed files with 2 additions and 1 deletions
|
@ -71,6 +71,7 @@ func (c *runtime) IsRollingUpdate() bool {
|
|||
}
|
||||
deployment, err := c.getDeployment()
|
||||
if err != nil {
|
||||
c.logger.Error(err, "failed to get deployment")
|
||||
return true
|
||||
}
|
||||
var replicas int32 = 1
|
||||
|
@ -104,7 +105,7 @@ func (c *runtime) getLease() (*coordinationv1.Lease, error) {
|
|||
}
|
||||
|
||||
func (c *runtime) getDeployment() (*appsv1.Deployment, error) {
|
||||
return c.deploymentLister.Deployments(config.KyvernoNamespace()).Get("kyverno")
|
||||
return c.deploymentLister.Deployments(config.KyvernoNamespace()).Get(config.KyvernoDeploymentName())
|
||||
}
|
||||
|
||||
func (c *runtime) check() bool {
|
||||
|
|
Loading…
Reference in a new issue