-
Notifications
You must be signed in to change notification settings - Fork 26
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
Conversation
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`
Codecov Report
@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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]" |
There was a problem hiding this comment.
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 ?
Can u pls update |
/lgtm |
/approve |
[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 |
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