Skip to content

IC unable to update pod labels intermittently #4833

@vepatel

Description

@vepatel

Describe the bug
IC unable to update pod labels intermittently

Failed to set labels:

~/nginx/kubernetes-ingress/charts/nginx-ingress on tags/v3.4.0 ● λ klogf test-release-nginx-ingress-controller-6774c49699-kx8q2 

NGINX Ingress Controller Version=3.4.0 Commit=0811b5c898f25d578f72a629fedef506a6511730 Date=2023-12-19T11:10:02Z DirtyState=false Arch=linux/amd64 Go=go1.21.3
I1221 12:35:18.470225       1 main.go:260] Kubernetes version: 1.26.10
I1221 12:35:18.491764       1 main.go:406] Using nginx version: nginx/1.25.1 
E1221 12:35:18.714738       1 main.go:816] Error updating pod with labels: Operation cannot be fulfilled on pods "test-release-nginx-ingress-controller-6774c49699-kx8q2": the object has been modified; please apply your changes to the latest version and try again

Labels set successfully:

~/nginx/kubernetes-ingress/charts/nginx-ingress on tags/v3.4.0 ● λ klogf test-release-nginx-ingress-controller-6774c49699-rzfvf 

NGINX Ingress Controller Version=3.4.0 Commit=0811b5c898f25d578f72a629fedef506a6511730 Date=2023-12-19T11:10:02Z DirtyState=false Arch=linux/amd64 Go=go1.21.3
I1221 12:41:15.688329       1 main.go:260] Kubernetes version: 1.26.10
I1221 12:41:15.714039       1 main.go:406] Using nginx version: nginx/1.25.1
I1221 12:41:15.755983       1 main.go:820] Pod label updated: test-release-nginx-ingress-controller-6774c49699-rzfvf

To Reproduce
Steps to reproduce the behavior:
Intermittent issue when IC is deployed using helm-charts

Expected behavior
Labels should be updated properly

Metadata

Metadata

Assignees

Labels

backlogPull requests/issues that are backlog itemsbugAn issue reporting a potential bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions