-
Notifications
You must be signed in to change notification settings - Fork 37
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
Create a .yaml file with kubeflow version #472
Create a .yaml file with kubeflow version #472
Conversation
components/notebook-controller/config/.component_metadata.yamyaml
Outdated
Show resolved
Hide resolved
7b777a5
to
989d636
Compare
the yaml file looks good to me, and the script is (in my view) a little superfluous here (since it does not help much in creating the yaml, it can't even output the version, which has to be specified manually in an override) but it is not harmful in any way and it can be improved further /lgtm |
It does not need to be specified manually @jiridanek ... The discrepancy here is such:
The feedback I was looking for was.... do we want to post-process the contents of the script will run without any argument other than I can certainly add more code to make it match character for character - I just wasn't sure how LITERAL we wanted to treat the "reference sample" but, here is what happens when running script with only the
if it is the desire of folks to match EXACTLY what was specified in the JIRA ticket for these values - I can absolutely do so... I had opted on the initial logic I provided to err on the side of simplicity (i.e. minimal post-processing of elements already present in the I have followed up in Slack here hoping to get some clarification: But certainly the intention of the script is NOT to require passing these command-line overrides for the |
|
||
if ! [ -e "${output_file}" ]; then | ||
touch "${output_file}" | ||
fi |
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.
indentation?
|
||
_parse_opts "$@" | ||
|
||
if [ -z "${output_file}" ]; then |
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.
just wondering why we don't have a default 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.
you could argue that the script should not take any parameters and everything should be defaulted (that's my view), but the aim of the jira is to create the metadata yaml and this script is just a little extra bonus, so it's important to review the yaml and the rest is just cherry on top; it's not even run automatically, so it's as if it was not even there
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.
Very fair comment...
I had (perhaps wrongly) designed with the intention of being able to be executed by any team (not just IDE team)...
Under that scenario - the "where" to place the file then becomes a bit ambiguous..
- that being said - I undermine my own argument here since I rely on the relative positioning of the file in the repository to check for a
PROJECT
file - so a similar mechanism can be done for the default target location
Pardon my ignorance - what is the use-case to use the attached bash script? And when to do so and how? I mean - shall it be done manually, shall it be part of the Makefile target? Shall we put some info somewhere? Also, I'm not sure how much value it has since the resulting file is just three lines and there is no explanation how the script helps. But I don't say it's a problem. We just may need to harness it into our release process, e.g. via a Makefile target or something like that. I put some comments but otherwise the code is nice and clean. Thank you. From the jira issue:
Are there any plans on this? |
Hello there, I tested locally using the option However, if I change the version on the
|
yes, the intention would be to tie this into the release automation work at some point in the future..
can you help me understand where such as explanation should be documented that would alleviate this concern? |
In this context - some brief comment at the beginning of the script would do. Anyway, as Jiri pointed out - we probably want to get this in for the yaml file being there and the script itself is just a bonus and we can tweak it later. |
+1, nobody said that one jira = one PR, there can be more |
sounds good - i will take the (great) feedback relevant to the script and spin out a separate PR on incorporating those suggestions. 🙇 |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: 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 |
/lgtm |
/override ci/prow/odh-notebook-controller-e2e |
@atheo89: Overrode contexts on behalf of atheo89: ci/prow/odh-notebook-controller-e2e In 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-sigs/prow repository. |
e24c9e5
into
opendatahub-io:main
This commit is a follow up from discussions on opendatahub-io#472. The following improvements have been made to the script: - Set the executable bit on the script - Default values provided for all variables now (including `output_file`) so the script can and should be ran simply as `./generate-component-metadata.sh` - Any and all issues reported by `shellcheck` have been resolved - Comments have been added for the file as a whole, as well as on each function, to help improve understanding of the script and its implementation. The "comment template" used is a continuation from the one I experiemented with in opendatahub-io#484 Related-to: https://issues.redhat.com/browse/RHOAIENG-12524
@@ -0,0 +1,4 @@ | |||
releases: | |||
- name: Kubeflow Notebook |
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 should be Kubeflow Notebook Controller
, according to the Slack thread.
Fixes for https://issues.redhat.com/browse/RHOAIENG-12524
Description
Collaborated with @andyatmiami
Created a .yaml file with kubeflow version with automated doc
How Has This Been Tested?
Merge criteria: