-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fix regression on deploying latest #280
Conversation
In netobserv#274 the way IMG is used is changed, which broke deploying all latest components This patch introduces a new "deploy-latest" target to explicitly deploy all components on their `main` branches
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.
we need to reflect this new build target in the readme and developement doc files
Makefile
Outdated
@@ -276,6 +276,10 @@ uninstall: kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube | |||
|
|||
deploy: kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config. | |||
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG} | |||
$(KUSTOMIZE) build config/openshift | kubectl apply -f - | |||
|
|||
deploy-latest: kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config. |
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.
pls fix the comment here to indicate it will deploy all images with main
tag
so how we can deploy custom build operator image with latest of other components ? maybe we can just check if IMG is set to different than default then use it for the operator and use the pinned versions for all others, if not set use latest for all |
@msherif1234 - I just tried this, deployed the image from PR #263 , I checkout that PR and used IMG that's build on that PR:
|
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.
LGTM on the code, it does deploy NOO image tagged with "main" when using "deploy-latest" target. Could we document to set env variable for SED
for MAC systems because those commands doesn't work when we use other than GNU sed.
Doc updated and should now work with gsed |
/lgtm |
Verified with |
/label qe-approved |
/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 |
In #274 the way IMG is used is changed, which broke deploying all latest components
This patch introduces a new "deploy-latest" target to explicitly deploy all components on their
main
branches