-
Notifications
You must be signed in to change notification settings - Fork 232
Make ConsoleCLiDownload supply binaries from local #447
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
Conversation
|
The following is the coverage report on the affected files.
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
cmd/openshift/operator/kodata/tekton-addon/1.5.0/addons/05-tkncliserve/tkn_cli_serve.yaml
Show resolved
Hide resolved
| {"Linux", "tkn/tkn-linux-amd64-0.19.1.tar.gz"}, | ||
| {"IBM Power", "tkn/tkn-linux-ppc64le-0.19.1.tar.gz"}, | ||
| {"IBM Z", "tkn/tkn-linux-s390x-0.19.1.tar.gz"}, | ||
| {"Mac", "tkn/tkn-macos-amd64-0.19.1.tar.gz"}, | ||
| {"Windows", "tkn/tkn-windows-amd64-0.19.1.zip"}, |
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.
how about getting tkn version dynamically instead of hardcoding it here
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.
this is the version which have signed binaries, I am not sure how to get those dynamically
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.
but we can use a constant and then use it in there, so whenever we have to change the binary version we do not have to change everywhere
| {"Linux", "tkn/tkn-linux-amd64-0.19.1.tar.gz"}, | |
| {"IBM Power", "tkn/tkn-linux-ppc64le-0.19.1.tar.gz"}, | |
| {"IBM Z", "tkn/tkn-linux-s390x-0.19.1.tar.gz"}, | |
| {"Mac", "tkn/tkn-macos-amd64-0.19.1.tar.gz"}, | |
| {"Windows", "tkn/tkn-windows-amd64-0.19.1.zip"}, | |
| const Version = "0.19.1" | |
| platforms := []struct { | |
| label string | |
| key string | |
| }{ | |
| {"Linux for x86_64", "tkn/tkn-linux-amd64-"+Version+".tar.gz"}, | |
| {"Linux for IBM Power", "tkn/tkn-linux-ppc64le-"+Version+".tar.gz"}, | |
| {"Linux for IBM Z", "tkn/tkn-linux-s390x-"+Version+".tar.gz"}, | |
| {"Mac for x86_64", "tkn/tkn-macos-amd64-"+Version+".tar.gz"}, | |
| {"Windows for x86_64", "tkn/tkn-windows-amd64-"+Version+".zip"}, | |
| } | |
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 can read that version from deployment env, so everytime we can update in CSV similar to images
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.
I think this should be handled using a configMap. These links dependent on an external system (the binaries copied in the dist-git server build). if we can capture this data in ta configMap, with platform keys and the url fragment as value, then we can replace the values in config map outside of an operator buidl. ie, we will not have to make a version bump pr to this repo.
in otherwords, this is a detail which will change based on release branches, so it will be the part of release-scripts/pipelines to edit the placehoder values we mention in this configmap.
🧑💻 i think we can merge this as it is for now as we are on a short schedule.
@piyush-garg could you create an issue, so that we can handle this in a later pr.
c0480c0 to
a6852f9
Compare
|
The following is the coverage report on the affected files.
|
a6852f9 to
4d6591f
Compare
|
The following is the coverage report on the affected files.
|
cmd/openshift/operator/kodata/tekton-addon/1.5.0/addons/05-tkncliserve/tkn_cli_serve.yaml
Show resolved
Hide resolved
cmd/openshift/operator/kodata/tekton-addon/1.5.0/addons/05-tkncliserve/tkn_cli_serve.yaml
Outdated
Show resolved
Hide resolved
|
LGTM |
This will add a deployment in OpenShift addon which will serve all the binaries of tkn CLI and installed through installerset then another installerset will run after the previous is completely run to install ConsoleCLIDownload which will have the links to the binaries hosted by the deployment and transformer will be doing that on fly Add routes permission in role and CSV Add the env in csv for image replacement and added the transformer for imagereplacement in tektonaddon
4d6591f to
9249ffa
Compare
|
Added the part for image replacement also. added the env and transformer in tektonaddon. |
|
The following is the coverage report on the affected files.
|
|
/lgtm |
DetailsIn response to this:
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. |

This will add a deployment in OpenShift addon which will serve
all the binaries of tkn CLI and installed through installerset
then another installerset will run after the previous is completely run
to install ConsoleCLIDownload which will have the links to the binaries
hosted by the deployment and transformer will be doing that on fly
Add routes permission in role and CSV
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.
Release Notes