[NIT] Changing variable name to denote right type
Signed-off-by: Sathyanarayanan Saravanamuthu <sathyanarays@vmware.com>
This commit is contained in:
parent
204fa78dd8
commit
1bc773cbcf
@ -93,7 +93,7 @@ func (c *controller) ProcessItem(ctx context.Context, key string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
crt, err := c.gatewayLister.Gateways(namespace).Get(name)
|
||||
gateway, err := c.gatewayLister.Gateways(namespace).Get(name)
|
||||
|
||||
if err != nil {
|
||||
if k8sErrors.IsNotFound(err) {
|
||||
@ -104,7 +104,7 @@ func (c *controller) ProcessItem(ctx context.Context, key string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
return c.sync(ctx, crt)
|
||||
return c.sync(ctx, gateway)
|
||||
}
|
||||
|
||||
// Whenever a Certificate gets updated, added or deleted, we want to reconcile
|
||||
|
||||
Loading…
Reference in New Issue
Block a user