operator-sdk icon indicating copy to clipboard operation
operator-sdk copied to clipboard

wip: work on bumping KB

Open varshaprasad96 opened this issue 2 years ago • 17 comments
trafficstars

Things to do:

  • [x] Update ansible operator code based on https://github.com/kubernetes-sigs/controller-runtime/pull/2427
  • [x] Generate testdata
  • [x] Update documentation
  • [x] Add changelog/migration guide

Description of the change:

Motivation for the change:

Checklist

If the pull request includes user-facing changes, extra documentation is required:

closes: https://github.com/operator-framework/operator-sdk/issues/6571

varshaprasad96 avatar Jul 25 '23 19:07 varshaprasad96

/hold Please hold from reviewing. A bunch of changes need to be done, work in progress.

varshaprasad96 avatar Jul 25 '23 19:07 varshaprasad96

Blocked by https://github.com/kubernetes-sigs/controller-runtime/pull/2427

varshaprasad96 avatar Jul 27 '23 21:07 varshaprasad96

Things left todo:

  1. Fix error checking during OLM install command. The API groups should unwrap and verify the Discovery error passed down by controller-runtime.
  2. Verify linter, and make sure it passes.
  3. Verify documentation is upto date.

I haven't been able to prioritize this PR immediately, should have it moving sometime next week.

varshaprasad96 avatar Aug 27 '23 20:08 varshaprasad96

@Neo2308 @bshephar I've been distracted with other priorities, and could not get the time to finish this. Would any one of you like to take this over and push it to the finish line? The work is almost done, just need to debug the two scorecard tests, which is causing e2e tests to fail. If you are comfortable, please let me know. I'll add you as a collaborator in this PR. Thank you!

varshaprasad96 avatar Sep 01 '23 15:09 varshaprasad96

@varshaprasad96 raised a PR to this branch with the fix for scorecard. (Tested for go e2e)

Neo2308 avatar Sep 02 '23 12:09 Neo2308

@Neo2308 I have merged your pull request.

  • To fix the sanity: Can you bump the local operator-sdk version which you have to the latest (1.31) and run make generate. That should fix the diffs.
  • To fix unit tests: The new handler package in ansible is using envtest binaries. The KUBEBUILDER_ASSETS var should be set to point to the right location where binaries are downloaded using setup-envtest. Similar to how it is done here: https://github.com/operator-framework/operator-sdk/blob/e67da35ef4fff3e471a208904b2a142b27ae32b1/Makefile#L169. Either we can set this up before calling the unit test target, or remove the handler tests package from in here and have it tested separately.

Thanks for working on this! Feel free to lmk if you have any questions.

varshaprasad96 avatar Sep 06 '23 21:09 varshaprasad96

@varshaprasad96 raised a PR to this branch with the fix for unit & sanity tests.

Need help on fixing the e2e tests.

Neo2308 avatar Sep 07 '23 09:09 Neo2308

@Neo2308 Thanks for the fix. Looking into the CI, it seems like the e2e tests are failing on the run packagemanifests tests for OLM. Before we start looking into it and figure out the issue, I'm wondering if it is even required. Packagemanifests have been deprecated for long, are not being used widely, since folks have moved to using operator bundles. So it should be fine to remove them. I've created a slack thread to confirm with other maintainers: https://kubernetes.slack.com/archives/C017UU45SHL/p1694445066414709

varshaprasad96 avatar Sep 11 '23 15:09 varshaprasad96

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

openshift-merge-robot avatar Sep 13 '23 08:09 openshift-merge-robot

@varshaprasad96 did we hear back on the slack thread? I dont have access to this slack organisation.

Neo2308 avatar Sep 22 '23 19:09 Neo2308

@Neo2308 I have not received any reply on this. But to unblock for now, I'd say to proceed with removing tests for package manifests but ensure that run bundle works as expected. Those can be added back in, if there is any strong opinion against removing them during reviews.

varshaprasad96 avatar Sep 22 '23 20:09 varshaprasad96

@varshaprasad96 could you take this up since I am not sure what exactly needs to be removed?

Neo2308 avatar Sep 23 '23 19:09 Neo2308

/assign @oceanc80

everettraven avatar Sep 25 '23 18:09 everettraven

@varshaprasad96 / @oceanc80 What are the next steps here? Is there something I can help with? Considering that k8s 1.29 is scheduled to be released this week, we would be 3 versions behind the master.

Neo2308 avatar Dec 11 '23 07:12 Neo2308

@varshaprasad96 could we close this PR since its been covered in https://github.com/operator-framework/operator-sdk/pull/6613 and available in https://github.com/operator-framework/operator-sdk/releases/tag/v1.33.0

Neo2308 avatar Dec 30 '23 09:12 Neo2308

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot avatar Mar 30 '24 01:03 openshift-bot

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten /remove-lifecycle stale

openshift-bot avatar Apr 29 '24 08:04 openshift-bot

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

openshift-bot avatar May 30 '24 00:05 openshift-bot

@openshift-bot: Closed this PR.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

openshift-ci[bot] avatar May 30 '24 00:05 openshift-ci[bot]