Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main builds are broken #4324

Closed
vepatel opened this issue Sep 5, 2023 · 7 comments · Fixed by #4327
Closed

main builds are broken #4324

vepatel opened this issue Sep 5, 2023 · 7 comments · Fixed by #4327
Assignees
Labels
backlog Pull requests/issues that are backlog items bug An issue reporting a potential bug

Comments

@vepatel
Copy link
Contributor

vepatel commented Sep 5, 2023

Describe the bug
Unable to build NIC images locally after merging #4152

To Reproduce
Steps to reproduce the behavior:

  1. make debian-image PREFIX=nginx-ingress VERSION=main DOCKER_BUILD_OPTIONS="--platform linux/amd64" TARGET=container

Expected behavior
Build should be successful

Your environment

  • Version of the Ingress Controller - main
  • Version of Kubernetes : 1.27
  • Kubernetes platform (e.g. Mini-kube or GCP): GKE
  • Using NGINX or NGINX Plus

Additional context
Add any other context about the problem here. Any log files you want to share.

@vepatel vepatel added the bug An issue reporting a potential bug label Sep 5, 2023
@github-actions
Copy link

github-actions bot commented Sep 5, 2023

Hi @vepatel thanks for reporting!

Be sure to check out the docs and the Contributing Guidelines while you wait for a human to take a look at this 🙂

Cheers!

@vepatel
Copy link
Contributor Author

vepatel commented Sep 5, 2023

@9bany any insights into this, I'm unable to build locally and getting:

#26 0.456 no required module provides package github.com/nginxinc/kubernetes-ingress/cmd/nginx-ingress; to add it:
#26 0.456       go get github.com/nginxinc/kubernetes-ingress/cmd/nginx-ingress
------
executor failed running [/bin/sh -c CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -trimpath -ldflags "-s -w -X main.version=${IC_VERSION}" -o /nginx-ingress github.com/nginxinc/kubernetes-ingress/cmd/nginx-ingress]: exit code: 1
make: *** [debian-image] Error 1

running go get github.com/nginxinc/kubernetes-ingress/cmd/nginx-ingress installs an older package

@9bany 9bany mentioned this issue Sep 6, 2023
6 tasks
@9bany
Copy link
Contributor

9bany commented Sep 6, 2023

Thanks @vepatel

I was fix: #4326

And after that, i was run build locally and i got this error

fatal: No names found, cannot describe anything.
Docker version 24.0.5, build ced0996
go version go1.21.0 darwin/amd64
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags "-s -w -X main.version=untagged-SNAPSHOT" -o nginx-ingress github.com/nginxinc/kubernetes-ingress/cmd/nginx-ingress
# github.com/nginxinc/kubernetes-ingress/internal/k8s
../../../pkg/mod/github.com/nginxinc/[email protected]/internal/k8s/leader.go:29:23: undefined: resourcelock.ConfigMapLock
../../../pkg/mod/github.com/nginxinc/[email protected]/internal/k8s/status.go:133:40: cannot use status (variable of type []"k8s.io/api/core/v1".LoadBalancerIngress) as []"k8s.io/api/networking/v1beta1".IngressLoadBalancerIngress value in assignment
make: *** [Makefile:77: build] Error 1

i think nginxinc/[email protected] incompatible with k8s.io/client-go v0.28.0, but i ain't update k8s.io/client-go version, Do you have an idea for this issue ?

@vepatel
Copy link
Contributor Author

vepatel commented Sep 6, 2023

yeah I was expecting an updated library in dev go-pkg with this change, @9bany I'll probably revert this one for now and have a discussion with wider team on remediation strategies later on.

@9bany
Copy link
Contributor

9bany commented Sep 6, 2023

yeah ! Thanks @vepatel
let's me pick it up

@vepatel
Copy link
Contributor Author

vepatel commented Sep 6, 2023

@9bany you okay with me reverting #4152? I'd rather have this go in along with local build fix.

@9bany
Copy link
Contributor

9bany commented Sep 6, 2023

@vepatel it's okey, please revert it

@vepatel vepatel linked a pull request Sep 6, 2023 that will close this issue
6 tasks
@vepatel vepatel changed the title local main builds are broken main builds are broken Sep 6, 2023
@vepatel vepatel added the backlog Pull requests/issues that are backlog items label Sep 6, 2023
@vepatel vepatel self-assigned this Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Pull requests/issues that are backlog items bug An issue reporting a potential bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants