-
Notifications
You must be signed in to change notification settings - Fork 194
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: remove the pattern validation for ResourceMeta.MountPoint #8874
Conversation
1996c9c
to
80606a4
Compare
@sophon-zt PTAL. And BTW, @abarbare what is the user defined secret/configmap for in your case ? |
Thanks for the review. |
80606a4
to
a17dba8
Compare
I added as well the |
a17dba8
to
83ee8f5
Compare
Hi @abarbare |
Hello @abarbare !
Maybe this tip is not related to this PR, you can simply add other clickhouse configuration like https://github.com/apecloud/kubeblocks-addons/pull/1450/files ~ |
Hi @abarbare
Based on your requirements, instead of using 'userResourceRefs' API, I'd recommend the following alternative:
Here is an example: apiVersion: apps.kubeblocks.io/v1
kind: ComponentDefinition
spec:
runtime:
containers:
volumeMounts:
- name: client-config
mountPath: /etc/clickhouse-client/
+ - name: udf-config # specify path and name
+ mountPath: /etc/myservice/config.d/ apiVersion: apps.kubeblocks.io/v1
kind: Cluster
spec:
componentSpecs:
+ volumes:
+ - name: udf-config # specify the volume. it will be merged
+ secret:
+ secretName: udf-secret |
I was working on 0.9.2 but starting to have a look to pre-released of v1 at the moment.
I tried to use as far as possible standard addons. May be this is not the best practices. Regarding your experience of Kubeblocks, is it a standard way to customize deployment to update and install customized version of the addons to match specific requirements?
Indeed, I tried it first this way but as the previous answer, it requires to update the Excuse me for my lack of knowledge; I'm new to the Kubeblock ecosystem and trying to understand the best practices for its usage and how to extend it the more standard way. |
Sure, Kubeblocks are designed to be flexible - you're always welcome to fork and customize our addons to meet specific requirements. I'll be adding a configuration customization guide to the ClickHouse addon's README soon to make this even clearer.
I understand your concern about updating the ComponentDefinition and running a custom version instead of the FOSS one. Based on my experience, I will customize like this:
|
HI @abarbare Many addons are contributed by the community. Feel free to submit a PR to the KubeBlocks Addon Repo with changes on your branch and state clearly why you made the changs and hwo pepole can use it. |
Thank you both for your answers. I'll continue this way then and prepare a custom addon for this need. Still I think this PR is still required as the |
hi @abarbare we suggest simply removing the pattern checking for the api. As this api is deprecated in v1, we will pick the commit to release 0.9 once merged. |
83ee8f5
to
b006824
Compare
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!
/cherry-pick release-1.0-beta |
🤖 says: cherry pick action finished successfully 🎉! |
(cherry picked from commit e80c30c)
/cherry-pick release-0.9 |
🤖 says: cherry pick action finished successfully 🎉! |
(cherry picked from commit e80c30c)
Hello,
When playing with Kubeblock, I wanted to add a custom configMap to my Cluster using
userResourceRefs
it fails when I try to use a mountPoint with 2 directories.Right now, the mountPoint option do not allow having a full path in the field with this error
I'm not sure why it seemed to work when implementing the feature.
On my end using a configuration like that it exits with the previous error.