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

Workflows update #157

Merged
merged 6 commits into from
Sep 6, 2022
Merged

Conversation

memodi
Copy link
Contributor

@memodi memodi commented Aug 24, 2022

This should help by creating subscription of NOO catalog image developed from main branch as an alternative to make deploy target

/cc @jotak @jpinsonneau

@memodi
Copy link
Contributor Author

memodi commented Aug 29, 2022

@jotak I've some confusion around this workflows, when I create a catalog using the NOO image bundle created by this workflow, the PackageManifests still uses 0.1.4 i.e. version published to OperatorHub:

Screen Shot 2022-08-29 at 1 54 52 PM

Screen Shot 2022-08-29 at 1 55 08 PM

any ideas why it uses 0.1.4 as version in PackageManifests? is it just some config issue and it actually would use the NOO image tagged as main ? Just want to make sure that when use catalog image bundle using that's pushed using this workflow actually using correct images.

@jotak
Copy link
Member

jotak commented Aug 30, 2022

As far as I can tell, that's because you call make bundle-build without prior call of make bundle, so the version that is used is still whatever is in bundle/manifests/netobserv-operator.clusterserviceversion.yaml.

When we release a new version, we first run make bundle, with all component versions env: VERSION="$version" PLG_VERSION="$plgv" FLP_VERSION="$flpv" BPF_VERSION="$bpfv" make bundle (this is described in RELEASE.md). Then we tag and the release script (github action) is triggered, that performs bundle-build and bundle-push.

But I'm not sure if make bundle would work as you would expect on main, it's intended to work as part of releasing with a proper version defined, maybe it would necessitate some adjustments in the Makefile to work as you'd like

@memodi
Copy link
Contributor Author

memodi commented Aug 30, 2022

As far as I can tell, that's because you call make bundle-build without prior call of make bundle, so the version that is used is still whatever is in bundle/manifests/netobserv-operator.clusterserviceversion.yaml.

Okay, does it only use the version name? does it actually deploy NOO image with that version, in this case 0.1.4?

@jotak
Copy link
Member

jotak commented Aug 31, 2022

Okay, does it only use the version name? does it actually deploy NOO image with that version, in this case 0.1.4?

Yes it will use 0.1.4 in the end. Running VERSION=main make bundle-build will only set the version of the bundle docker image but it doesn't affect the version of underlying components, so you will actually get the last release and not the current main build.

@jotak
Copy link
Member

jotak commented Aug 31, 2022

@memodi I sent you a patch suggestion on your branch

New make target bundle-for-test
@openshift-ci openshift-ci bot removed the lgtm label Aug 31, 2022
@memodi
Copy link
Contributor Author

memodi commented Aug 31, 2022

@memodi I sent you a patch suggestion on your branch

thanks @jotak. I tried to run the workflow in my forked repo, however it failed for make bundle-for-test step since operator-sdk is not installed. Any ideas how we can include through GH Actions? I tried to setup using this GH Action available at marketplace, but it seems buggy where it would not find newer operator-sdk versions.

@jotak
Copy link
Member

jotak commented Sep 1, 2022

thanks @jotak. I tried to run the workflow in my forked repo, however it failed for make bundle-for-test step since operator-sdk is not installed. Any ideas how we can include through GH Actions? I tried to setup using this GH Action available at marketplace, but it seems buggy where it would not find newer operator-sdk versions.

oh, correct, I didn't think about that.. we should probably add a make target that installs operator-sdk

@memodi
Copy link
Contributor Author

memodi commented Sep 1, 2022

oh, correct, I didn't think about that.. we should probably add a make target that installs operator-sdk

alright, I added operator-sdk install to Makefile and also tested out on my forked repo , PTAL. thanks!

@openshift-ci openshift-ci bot added the lgtm label Sep 6, 2022
@memodi
Copy link
Contributor Author

memodi commented Sep 6, 2022

/approved

@memodi
Copy link
Contributor Author

memodi commented Sep 6, 2022

thanks @jotak , I think it needs approved label for it to be able to merge?

@jotak
Copy link
Member

jotak commented Sep 6, 2022

/approve

@openshift-ci
Copy link

openshift-ci bot commented Sep 6, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jotak

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Sep 6, 2022
@openshift-merge-robot openshift-merge-robot merged commit 534b7b7 into netobserv:main Sep 6, 2022
@memodi memodi deleted the workflows-update branch September 6, 2022 17:28
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.

None yet

4 participants