-
Notifications
You must be signed in to change notification settings - Fork 76
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
External clickhouse support #276
Conversation
90a4ef6
to
857c7fb
Compare
ae23af3
to
c437696
Compare
@@ -0,0 +1,9 @@ | |||
{{- if .Values.testTemplates -}} |
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.
Can you add a README.md
in this folder with the explanation on why we need those templates? I think I've linked you recently the issue in helm unittest about it (but I can't find it anymore)
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 can't - it would break helm templating. :(
I could rename this to templates/_test_template.yaml
though and add the comment there? We could add all the testing-specific templates to a file instead of a folder 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.
sounds good but feel free to merge this and then we can iterate further
b175799
to
e4089af
Compare
e4089af
to
c48e73a
Compare
1c6859a
to
a317f9c
Compare
55b3e0d
to
96369b5
Compare
Description
This PR is a breaking change, allowing users to connect to an external clickhouse. #190
This involved some bigger changes:
clickhouse.host
value has been removed and will error if used going forwardclickhouse.cluster
has been added - previouslyclickhouse.database
was used to determine generated cluster nameclickhouse.replication
was removed - this is currently unsupported by the app and will require significant work to support. Related: Make self-hosted clickhouse instances shardable posthog#8134clickhouse.enabled
semantics changed - previously it tried to spin up posthog without any clickhouse support which wouldn't really work.clickhouse.user
was previously not respected, instead anadmin
user was always created.externalClickhouse
has been added. If you want to use external clickhouse, setclickhouse.enabled: false
and setexternalClickhouse
values. host, cluster, user are always required and either password- or secrets-based auth is available. Note that a clickhouse cluster is required for posthog to runDocumentation PR: PostHog/posthog.com#2855
In practice though using external clickhouse never worked due to a myriad of issues (see PRs linking here)
Code structure notes:
_clickhouse.tpl
file. Proposing we follow this pattern going forward as well._clickhouse.tpl
is unit-tested using a helper template incharts/posthog/templates/test-templates/clickhouse-env.yaml
. Files in that folder are not tested.Related TODOs:
Type of change
How has this been tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
Checklist