-
Notifications
You must be signed in to change notification settings - Fork 33
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
feat(jobs): Add job to migrate analytics data from influx to postgres #230
base: main
Are you sure you want to change the base?
Conversation
d2f2542
to
39d1686
Compare
spec: | ||
restartPolicy: Never | ||
containers: |
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.
Let's add:
extraContainers
extraVolumes
shareProcessNamespace
serviceAccountName
to support all kinds of database connectivity configurations
See jobs-migrate-db
for an example
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.
Done
@@ -52,6 +52,15 @@ | |||
name: {{ template "flagsmith.influxdb.fullname" . }}-external-auth | |||
key: admin-token | |||
{{- end }} | |||
{{- else if .Values.UsePostgresForAnalytics.enabled }} | |||
{{- if not .Values.taskProcessor.enabled }} | |||
{{ fail "To use Postgre for analytics, the task processor must be enabled" }} |
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.
{{ fail "To use Postgre for analytics, the task processor must be enabled" }} | |
{{ fail "To use PostgreSQL for analytics, `taskProcessor.enabled` should be set to `true`" }} |
charts/flagsmith/templates/NOTES.txt
Outdated
###################################### | ||
|
||
InfluxDB2 is deprecated and will be removed in the next major version. | ||
You can either use InfluxDBExternal or migrate your analytics data to PostgreSQL by using the migrateAnalyticsData job |
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 can either use InfluxDBExternal or migrate your analytics data to PostgreSQL by using the migrateAnalyticsData job | |
Please set values under the `influxdbExternal` key | |
or migrate your analytics data to PostgreSQL by enabling `jobs.migrateAnalytics`. |
37693b6
to
1f8d1f5
Compare
Thanks for submitting a PR! Please check the boxes below:
/charts/flagsmith/Chart.yaml
in the sectionversion
or I'm merging to arelease branch
Changes
Please describe.
How did you test this code?
Please describe.