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

Upgrade to operator sdk latest v1.22.1 #831

Merged
merged 33 commits into from
Jul 20, 2022

Conversation

bdunne
Copy link
Member

@bdunne bdunne commented Mar 24, 2022

I tried to make the commits make sense because there were a few things that were not so easy to upgrade, and I made those commits before the upgrade changes.

TODO:

Fixes #624

@miq-bot miq-bot removed the wip label Mar 24, 2022
@bdunne bdunne force-pushed the upgrade_to_operator-sdk_latest branch 4 times, most recently from db3f523 to d7c9285 Compare March 29, 2022 18:10
@Fryguy Fryguy changed the title WIP: Upgrade to operator sdk latest v1.18 [WIP] Upgrade to operator sdk latest v1.18 Mar 29, 2022
@miq-bot miq-bot added the wip label Mar 29, 2022
manageiq-operator/Dockerfile Outdated Show resolved Hide resolved
@bdunne bdunne force-pushed the upgrade_to_operator-sdk_latest branch 3 times, most recently from 77ad279 to 920af8c Compare April 4, 2022 19:45
@bdunne
Copy link
Member Author

bdunne commented Apr 4, 2022

@Fryguy Do we need the OLM stuff (CSV, bundle, etc.) in this PR? I wonder if it belongs as part of #591 instead.

@bdunne bdunne force-pushed the upgrade_to_operator-sdk_latest branch from 920af8c to 18ae5f5 Compare April 7, 2022 20:53
manageiq-operator/Dockerfile Outdated Show resolved Hide resolved
@Fryguy Fryguy self-assigned this Jul 13, 2022
bdunne added 9 commits July 13, 2022 13:53
We already watch for secret changes in our namespace.  The only advantage
that this had was in the case of a change to the httpd auth config secret
we would only reconcile httpd.  I don't think this added complexity is
worth the time difference.  Also, rewriting all of this code to fit the
latest operator-sdk is very complicated.
There were only a few callers left and this method was also complicated to
upgrade, switch these callers to CreateOrUpdate for consistency
These will be generated in the new version
Remove the deploy and teardown scripts
bdunne added 16 commits July 20, 2022 12:22
- Add notes about fetching additional dependencies
- Update to new make commands
- Fully qualify base docker image
make manifests apparently can't generate RBAC properly
- It overwrites the names
- It wants a namespace specified, which we don't want
- It can't handle the blank group
Trying to grant "*" raises an error since the role attached to our service account doesn't have "*" permissions.
Building with and without GOARCH on x86_64 produces results with the same md5sum.
No breaking changes in v1.19 or v1.20
@bdunne bdunne force-pushed the upgrade_to_operator-sdk_latest branch from 5f40779 to cc87bb6 Compare July 20, 2022 16:22
@miq-bot
Copy link
Member

miq-bot commented Jul 20, 2022

Checked commits bdunne/manageiq-pods@0c9ab80~...a6d37bc with ruby 2.6.9, rubocop 1.19.1, haml-lint 0.35.0, and yamllint
46 files checked, 2 offenses detected

**

  • 💣 💥 🔥 🚒 - Linter/Rubocop - missing config files
  • 💣 💥 🔥 🚒 - Linter/Yaml - missing config files

Copy link
Member

@Fryguy Fryguy left a comment

Choose a reason for hiding this comment

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

This LGTM - ready to merge when you give the go ahead

@Fryguy
Copy link
Member

Fryguy commented Jul 20, 2022

Actually just noticed the golang tests aren't running anything: https://github.com/ManageIQ/manageiq-pods/runs/7435811883?check_suite_focus=true#step:7:21

@bdunne
Copy link
Member Author

bdunne commented Jul 20, 2022

Actually just noticed the golang tests aren't running anything: https://github.com/ManageIQ/manageiq-pods/runs/7435811883?check_suite_focus=true#step:7:21

Yep, we don't have any go tests yet, but we should probably run the suite anyway since it verifies that other things are working and it will be ready to go once we add some tests.

@bdunne
Copy link
Member Author

bdunne commented Jul 20, 2022

This LGTM - ready to merge when you give the go ahead

I think we're ready to go and can fix anything else in followup PRs.

@Fryguy
Copy link
Member

Fryguy commented Jul 20, 2022

Oh I thought these were tests, but it just looks like the test setup.

https://github.com/ManageIQ/manageiq-pods/pull/831/files#diff-708de222ecea05fb213eb586e128664c922189c840a101d718a5c2f8dfb0c43d

@Fryguy Fryguy merged commit 98e3928 into ManageIQ:master Jul 20, 2022
@jrafanie
Copy link
Member

Nice work @bdunne !!! 🎉

@kbrock
Copy link
Member

kbrock commented Jul 21, 2022

Great stuff @bdunne !

@bdunne bdunne deleted the upgrade_to_operator-sdk_latest branch July 21, 2022 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

operator-sdk 1.x support
5 participants