-
Notifications
You must be signed in to change notification settings - Fork 971
[HELM] Update template on port-foward usage guide NOTES.txt #4589
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
When kyuubi.kyuubiConf.kyuubiDefaults set localhost, NOTES.txt render for development usage guide
Codecov Report
@@ Coverage Diff @@
## master #4589 +/- ##
============================================
- Coverage 53.32% 53.31% -0.01%
Complexity 13 13
============================================
Files 577 577
Lines 31557 31557
Branches 4244 4244
============================================
- Hits 16827 16826 -1
+ Misses 13147 13144 -3
- Partials 1583 1587 +4 see 7 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Hi @phyyou, thanks for your PR. I install your changes in local minikube cluster, i find kyuubi register self to zookeeper with You can find the corresponding logic in |
I'm neutral on this change, @dnskr WDYT? |
It's against recommended best practices: https://helm.sh/docs/chart_best_practices/values/#naming-conventions
a:
b:
c:
helm install kyuubi --set kyuubiConf.kyuubiDefaults."kyuubi\.frontend\.bind\.host"=localhost
I know only one mature chart which still uses similar property names, but looks like it was a mistake they did at the beginning: https://github.com/argoproj/argo-helm/blob/ccef4448748601bb253a89fa86ed036b0e620cc1/charts/argo-cd/values.yaml#L136 |
Thanks @dnskr. I definitely agree. I will to revert this, Do you have any other good ideas for kyuubiConf in Helm Chart? @dnskr @pan3793 |
|
I just got a lot of inspiration Chart of Apache Airflow (https://github.com/apache/airflow/blob/main/chart/values.yaml#L1834-L1909). What do you think about kyuubiDefaults values with a similar structure? @dnskr https://airflow.apache.org/docs/helm-chart/stable/parameters-ref.html |
Update NOTES.txt for Reverted values
96aca65 to
56fa525
Compare
charts/kyuubi/values.yaml
Outdated
| # See https://kyuubi.readthedocs.io/en/master/deployment/settings.html#logging for more details | ||
| log4j2: ~ | ||
|
|
||
| extraFiles: {} |
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.
it's valuable to change in a separate PR. let's focus on one thing in each PR, to make the future visitor easy to understand what we were doing.
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.
Thanks! got it!
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.
what is the use case for this property?
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.
Users may use Kyuubi/Spark w/ Hive MetaStore, then hive-site.xml is required
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.
And another use case is FileSessionConfAdvisor introduced in #3742, and emm... it isn't mentioned in docs, and we appreciate contributors who can help us to improvement the docs 😄
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.
@pan3793 Would it be better to add specific properties instead? I.e. hiveSite etc
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.
@pan3793 Would it be better to add specific properties instead? I.e.
hiveSiteetc
I agree to use specific properties for specific files, but there are some non-enumerable files, e.g. in FileSessionConfAdvisor use case, there may have
kyuubi-session-etl.confkyuubi-session-ad-hoc.confkyuubi-session-admin.confkyuubi-session-<...>.conf
I like the idea of "examples", actually, I was asked, "I get no idea w/ a placeholder
|
|
Do you have Kerberos use case? There are some extra work, like |
(It from airflow chart README.md)
including the "key" for users who are not familiar w/ yaml will confusing how to handle Co-authored-by: Cheng Pan <[email protected]>
It might be a good idea, but managing many properties also might be exhausting. Also from my POV this requires stable configuration mechanism. |
I agree with the previous comment that managing a large number of properties can be quite challenging and exhausting, especially if there is no stable configuration mechanism in place. I think It meens while it could be a good long-term goal to move towards a more structured approach. I also agree that it is a good solution at the moment. So, I think also that while a structured approach like the Apache Airflow chart could be useful in the future, it is not a good solution at the moment, and we should focus on creating a stable configuration mechanism first. |
I don't have a complete understanding of the Kerberos use case, but I believe that we can refer to the configuration used in the Apache Airflow chart (https://github.com/apache/airflow/blob/main/chart/values.yaml#L413-L446) as a starting point. So, I'd like to submit a new PR for krb5.conf with kyuubiConf.extraFiles. |
pan3793
left a comment
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 except for minor comments, thanks
|
@phyyou thanks for finding an example for kerberos, we can defer it if you don't have kerberos use case |
|
LGTM on my side, also cc @zwangsheng |
|
I'm sorry for the frequent mentions, I fixed the when there was no equal sign now. |
Sorry for the late response. |
Well, seems we revert set LGTM, thanks. |
…S.txt - Fix Stale Docs URL in Helm Chart - ~~Update kyuubiDefaults structure~~ - Update NOTES.txt - When kyuubi.kyuubiConf.kyuubiDefaults."kyuubi.frontend.bind.host" set localhost, render port-forward example in NOTES.txt for development usage guide - ~~Add extraFiles for config mount~~ - ~~extraFiles for another file mount in kyuubi conf directory.~~ ### _Why are the changes needed?_ Based on #4561 (comment) > I think Helm chart notes had been wrong from this commit. >https://github.com/apache/kyuubi/blob/dbb741fc5b0d2fd4b0640ff70ea12aca75864166/charts/kyuubi/templates/NOTES.txt#L33-L34 > Can we delete this note or update this note if `--address` option is work like this? : > ```suggestion > - To access {{ $.Release.Name }}-{{ $name | kebabcase }} service from outside the cluster for debugging, run the following > > > command: > kubectl port-forward svc/{{ $.Release.Name }}-{{ $name | kebabcase }} {{ tpl $frontend.service.port $ }}:{{ tpl >?> >$frontend.service.port $ }} -n {{ $.Release.Namespace }} --address <your-ip> > ``` ~~and more changes:~~ - ~~Update `.Values.kyuubiConf.kyuubiDefaults` to dict for more variant usage in templates. (like NOTES.txt changes)~~ - ~~Add extraFiles in configmap for like mounting hive-site-xml on kyuubi config directory.~~ ### _How was this patch tested?_ - [x] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request Closes #4589 from phyyou/feat/helm-chart-improve. Closes #4589 d7ee29e [phyyou] Fix regex when no equal sign 0b86f28 [phyyou] Update condition for edge case 4edf904 [phyyou] chore aabe93c [PHYYOU] Update kyuubiDefaults example guide in Helm Chart 4de8964 [phyyou] Add README.md for Kyuubi Helm Chart (It from airflow chart README.md) abacd32 [phyyou] Add Example Usecases in kyuubiConf ebcb231 [phyyou] Update empty string to nil 2533a93 [phyyou] Revert extraFiles 56fa525 [phyyou] Revert kyuubiConf Structure Update Update NOTES.txt for Reverted values 966e74c [phyyou] fix: template => include 03d6984 [phyyou] Fix: Add EOF e6affdd [phyyou] Add extraFiles for config mount b0963fd [phyyou] Update NOTES.txt; ac9766a [phyyou] Update kyuubiDefaults structure 77eaa05 [phyyou] Fix Stale Docs URL Lead-authored-by: phyyou <[email protected]> Co-authored-by: PHYYOU <[email protected]> Signed-off-by: Cheng Pan <[email protected]> (cherry picked from commit 0ebedda) Signed-off-by: Cheng Pan <[email protected]>
|
Thanks all, merged to master/1.7 |
|
Since this commit, In my opinion, it would be better not to use local kyuubi server Zookeeper in the Helm chart. For development environments, I think it seems like a good idea to have an extra deployment option to turn on and off the Zookeeper deployment in the Helm chart. |
SGTM. |
|
|
||
| # Helm Chart for Apache Kyuubi | ||
|
|
||
| [Apache Kyuubi](https://airflow.apache.org/) is a distributed and multi-tenant gateway to provide serverless SQL on Data Warehouses and Lakehouses. |
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.
There is a typo here https://airflow.apache.org/ cc @phyyou @zwangsheng @pan3793 @dnskr
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.
Thanks, I'll submit new PR soon.
Update kyuubiDefaults structureAdd extraFiles for config mountextraFiles for another file mount in kyuubi conf directory.Why are the changes needed?
Based on #4561 (comment)_
and more changes:Update.Values.kyuubiConf.kyuubiDefaultsto dict for more variant usage in templates. (like NOTES.txt changes)Add extraFiles in configmap for like mounting hive-site-xml on kyuubi config directory.How was this patch tested?