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

fix: upgrade controller-gen to 0.14.0 to fix panic #460

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

evadnoob
Copy link
Contributor

controller-gen panics on some of our repos now, specifically found this in database-credential-operator.

go run sigs.k8s.io/controller-tools/cmd/controller-gen@v0.7.0 object paths=./api/k8s/database/v1
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x103280e80]

kubernetes-sigs/controller-tools#888

@evadnoob evadnoob requested a review from a team as a code owner March 27, 2024 22:28
templates/api/kubernetes/version.go.tpl Outdated Show resolved Hide resolved
@malept
Copy link
Member

malept commented Mar 27, 2024

Do we need to be concerned about breaking changes since it's a minor bump but pre-1.0?

controller-gen panics on some of our repos now, specifically found this
in database-credential-operator.

```
go run sigs.k8s.io/controller-tools/cmd/controller-gen@v0.7.0 object paths=./api/k8s/database/v1
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x103280e80]

```

kubernetes-sigs/controller-tools#888
@evadnoob evadnoob force-pushed the evadnoob/fix/controll-gen-version-upgrade-to-0.14.0 branch from f88ea1c to 8c9dc22 Compare March 27, 2024 22:50
Copy link
Member

@malept malept left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully nothing breaks 🤞 🤞

@evadnoob
Copy link
Contributor Author

Hopefully nothing breaks 🤞 🤞

I'll test unstable

@evadnoob evadnoob merged commit 61aed04 into main Mar 27, 2024
3 checks passed
@evadnoob evadnoob deleted the evadnoob/fix/controll-gen-version-upgrade-to-0.14.0 branch March 27, 2024 22:56
@getoutreach-ci-2
Copy link

🎉 This PR is included in version 1.22.0-rc.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@getoutreach-ci-2
Copy link

🎉 This PR is included in version 1.22.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants