Open
Description
Currently multiple executions of /haproxy-ingress-controller --job-check-crd on the same cluster leads to an error as follows:
2024/03/13 13:37:19 ERROR runtime/proc.go:271 customresourcedefinitions.apiextensions.k8s.io "defaults.ingress.v1.haproxy.org" already exists
As this job also included into Helm chart and executed on every ArgoCD sync, all next sync operations failing after initial install.
Kubernetes version: 1.26.5
HAproxy version:
2024/03/13 13:43:56 maxprocs: Leaving GOMAXPROCS=4: CPU quota undefined
HAProxy Ingress Controller v1.11.0 13fc60b9.dirty
Build from: github.com/haproxytech/kubernetes-ingress
Git commit date: 2024-03-08T10:47:39Z
Full command output:
2024/03/13 13:44:49 runtime/proc.go:271
_ _ _ ____
| | | | / \ | _ \ _ __ _____ ___ _
| |_| | / _ \ | |_) | '__/ _ \ \/ / | | |
| _ |/ ___ \| __/| | | (_) > <| |_| |
|_| |_/_/ \_\_| |_| \___/_/\_\\__, |
_ __ _ |___/ ___ ____
| |/ / _| |__ ___ _ __ _ __ ___| |_ ___ ___ |_ _/ ___|
| ' / | | | '_ \ / _ \ '__| '_ \ / _ \ __/ _ \/ __| | | |
| . \ |_| | |_) | __/ | | | | | __/ || __/\__ \ | | |___
|_|\_\__,_|_.__/ \___|_| |_| |_|\___|\__\___||___/ |___\____|
2024/03/13 13:44:49 runtime/proc.go:271
____ ____ ____ _ _ _ _
/ ___| _ \| _ \ | | | |_ __ __| | __ _| |_ ___ _ __
| | | |_) | | | | | | | | '_ \ / _` |/ _` | __/ _ \ '__|
| |___| _ <| |_| | | |_| | |_) | (_| | (_| | || __/ |
\____|_| \_\____/ \___/| .__/ \__,_|\__,_|\__\___|_|
|_|
2024/03/13 13:44:49 INFO src/main.go:85 HAProxy Ingress Controller CRD Updater v1.11.0 13fc60b9.dirty
2024/03/13 13:44:49 INFO src/main.go:86 Build from: github.com/haproxytech/kubernetes-ingress
2024/03/13 13:44:49 INFO src/main.go:87 Build date: 2024-03-08T10:47:39Z
2024/03/13 13:44:49 INFO src/main.go:89 checking CRDS
2024/03/13 13:44:49 INFO src/main.go:89
2024/03/13 13:44:49 INFO job/crd-check.go:50 checking CRD ingress.v1.haproxy.org_globals.yaml
2024/03/13 13:44:49 INFO job/crd-check.go:57 CRD ingress.v1.haproxy.org_globals.yaml does not exist
2024/03/13 13:44:49 ERROR runtime/proc.go:271 customresourcedefinitions.apiextensions.k8s.io "globals.ingress.v1.haproxy.org" already exists