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

Improve script to replace images for OLM #334

Merged
merged 2 commits into from
May 10, 2023

Conversation

jotak
Copy link
Member

@jotak jotak commented May 9, 2023

Make those scripts work for OLM as well
Need to provide CSV & NAMESPACE info, e.g:

CSV=network-observability-operator.v1.2.0 NAMESPACE=openshift-netobserv-operator VERSION=test USER=jotak make set-plugin-image

Make those scripts work for OLM as well
Need to provide CSV & NAMESPACE info, e.g:

`CSV=network-observability-operator.v1.2.0
NAMESPACE=openshift-netobserv-operator VERSION=test USER=jotak make
set-plugin-image`
@jotak jotak requested a review from msherif1234 May 9, 2023 15:08
@codecov
Copy link

codecov bot commented May 9, 2023

Codecov Report

Merging #334 (d963b18) into main (c2c2961) will increase coverage by 0.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #334      +/-   ##
==========================================
+ Coverage   51.34%   51.42%   +0.07%     
==========================================
  Files          43       43              
  Lines        5155     5186      +31     
==========================================
+ Hits         2647     2667      +20     
- Misses       2310     2323      +13     
+ Partials      198      196       -2     
Flag Coverage Δ
unittests 51.42% <ø> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 15 files with indirect coverage changes

Copy link
Contributor

@msherif1234 msherif1234 left a comment

Choose a reason for hiding this comment

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

Nice update to dev mk!!

namespace=$2
rel_name=$3
env_name=$4
new_image=$5
Copy link
Contributor

Choose a reason for hiding this comment

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

nit net_tag ?

echo $idx_env
patch2="{'op': 'replace', 'path': '/spec/install/spec/deployments/0/spec/template/spec/containers/0/env/$idx_env', 'value': {'name': '$env_name', 'value': '$new_image'}}"

oc patch csv $csv_name -n $namespace --type='json' -p "[$patch1, $patch2]"
Copy link
Contributor

Choose a reason for hiding this comment

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

can u check the return code here and indicate if the patch was success or not ?

@msherif1234
Copy link
Contributor

Can u pls update DEVELOPMENT.md with the command to patch images too ?

@msherif1234
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm label May 10, 2023
@jotak jotak added no-qe This PR doesn't necessitate QE approval no-doc This PR doesn't require documentation change on the NetObserv operator labels May 10, 2023
@jotak
Copy link
Member Author

jotak commented May 10, 2023

/approve

@openshift-ci
Copy link

openshift-ci bot commented May 10, 2023

[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-merge-robot openshift-merge-robot merged commit a468d9b into netobserv:main May 10, 2023
@jotak jotak deleted the make-set-image branch June 14, 2023 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm no-doc This PR doesn't require documentation change on the NetObserv operator no-qe This PR doesn't necessitate QE approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants