-
Notifications
You must be signed in to change notification settings - Fork 469
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
About Helm and some question about chop #620
Comments
cmd
and pkg
directories,
Yes, I saw some code in cmd/operator is the ch-op's entry function. And some of the code in And zz_generated.deepcopy.go is generated. But when the code was be generated? And I can not find the usage of
Now in my mind:
I'd like to try, but I'm just at the learning stage. Best wishes. |
In code // isCHITemplateExt returns true in case specified file has proper extension for a CHI template config file
func (config *OperatorConfig) isCHITemplateExt(file string) bool {
switch util.ExtToLower(file) {
case ".yaml":
return true
case ".json":
return true
}
return false
} // Read CHI template files
config.CHITemplateFiles = util.ReadFilesIntoMap(config.CHITemplatesPath, config.isCHITemplateExt) the config.CHITemplatesPath in yaml is
So maybe the config.CHITemplateFiles is nil? I find the code, the def of useTemplates is copy from chi.Spec.UseTemplates. And Is it defines at there? So how to use it? if len(chi.Spec.UseTemplates) > 0 {
useTemplates = make([]chiv1.ChiUseTemplate, len(chi.Spec.UseTemplates))
copy(useTemplates, chi.Spec.UseTemplates)
// UseTemplates must contain reasonable data, thus has to be normalized
n.normalizeUseTemplates(&useTemplates)
} |
@Slach Hi, could you help me with this question? I’m eager to receive your feedback.
|
Hello @TCeason
this script run manually if you change something in
yes it's a good idea, I think we need to add a separate script the main goal of I think we need to create a separate ClickHouse installation Helm chart (builded with also, I think we can use https://github.com/mikefarah/yq to generate Helm chart
these folders used for Clickhouse server configuration files look to https://github.com/ClickHouse/ClickHouse/blob/master/programs/server/Server.cpp#L356
this folder use for store yes, we can use |
Dear Klimov, thanks for your suggestion . I will have a look at yq. |
Is there have some problems that we can not support k8s 1.16+? The default field can be set when the Defaulting feature is enabled, which is the case with apiextensions.k8s.io/v1 CustomResourceDefinitions.
Defaulting is in GA since 1.17 (beta since 1.16 with the CustomResourceDefaulting feature gate enabled, which is the case automatically for many clusters for beta features).
https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/ |
And In file build-clickhouse-operator-install-yaml.sh, build part templated manifests twice. And not generate a rbac.yaml just generate a template-rbac.yaml. Is there has some other sense? Now I want to use this arch:
And templates/clickhouse-operator-install.yaml will be generated from deploy/operator/clickhouse-operator-install.yaml. What do you think about it? @Slach |
I agree with your file layout and think your file layour should be present in @sunsingerus could you explain to us from my side it looks as copy\pasted code ;) |
will chop support |
Do you have any issues with v1beta1? If we switch CRD to v1, that will mean dropping compatibility with k8s 1.15 and earlier. |
Yes. Now I use helm 3.0 runs
I think there are some compatibility issues. |
@TCeason main parts of operator code contains in
cmd
andpkg
directories,I you want to help
you can try to help us with Helm chart
feel free continue work with #358
Originally posted by @Slach in #619 (comment)
This pr #358 is closed, so I will open a new issue to describe my question and just associated it so that will not annoy the committer.
The text was updated successfully, but these errors were encountered: