-
Notifications
You must be signed in to change notification settings - Fork 59
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] Update chart to handle the opt-in mechanism for Java dbconnecto… #190
Changes from 3 commits
87bd0e9
c6f8455
75c1648
accad4b
85ce49f
93cbfa5
ab83891
515bfd0
d314885
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ apiVersion: v2 | |
name: retool | ||
description: A Helm chart for Kubernetes | ||
type: application | ||
version: 6.2.10 | ||
version: 6.2.11 | ||
maintainers: | ||
- name: Retool Engineering | ||
email: [email protected] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,21 +77,29 @@ spec: | |
value: {{ template "retool.deploymentTemplateVersion" . }} | ||
- name: NODE_ENV | ||
value: production | ||
{{- if include "retool.jobRunner.enabled" . }} | ||
{{ if ( not $.Values.dbconnector.java.enabled ) }} | ||
- name: DISABLE_JAVA_DBCONNECTOR | ||
value: "true" | ||
{{ end }} | ||
{{ if and ( or (eq "latest" $.Values.image.tag ) ( semverCompare ">= 3.93.0-0" $.Values.image.tag ) ) ( .Values.jobRunner.enabled ) }} | ||
- name: SERVICE_TYPE | ||
value: MAIN_BACKEND,DB_CONNECTOR,DB_SSH_CONNECTOR | ||
{{- else }} | ||
{{ if ( not $.Values.dbconnector.java.enabled ) }} | ||
{{ else if and ( or (eq "latest" $.Values.image.tag ) ( semverCompare ">= 3.93.0-0" $.Values.image.tag ) ) ( not .Values.jobRunner.enabled ) }} | ||
- name: SERVICE_TYPE | ||
value: MAIN_BACKEND,DB_CONNECTOR,DB_SSH_CONNECTOR,JOBS_RUNNER | ||
{{ else if and ( not or (eq "latest" $.Values.image.tag ) ( semverCompare ">= 3.93.0-0" $.Values.image.tag ) ) ( .Values.jobRunner.enabled ) ( $.Values.dbconnector.java.enabled ) }} | ||
- name: SERVICE_TYPE | ||
value: MAIN_BACKEND,DB_CONNECTOR,DB_SSH_CONNECTOR,JAVA_DBCONNECTOR | ||
{{ else if and ( not or (eq "latest" $.Values.image.tag ) ( semverCompare ">= 3.93.0-0" $.Values.image.tag ) ) ( .Values.jobRunner.enabled ) ( not $.Values.dbconnector.java.enabled ) }} | ||
- name: SERVICE_TYPE | ||
value: MAIN_BACKEND,DB_CONNECTOR,DB_SSH_CONNECTOR | ||
{{ else if and ( not or (eq "latest" $.Values.image.tag ) ( semverCompare ">= 3.93.0-0" $.Values.image.tag ) ) ( not .Values.jobRunner.enabled ) ( $.Values.dbconnector.java.enabled ) }} | ||
- name: SERVICE_TYPE | ||
value: MAIN_BACKEND,DB_CONNECTOR,DB_SSH_CONNECTOR,JOBS_RUNNER,JAVA_DBCONNECTOR | ||
{{ else }} | ||
- name: SERVICE_TYPE | ||
value: MAIN_BACKEND,DB_CONNECTOR,DB_SSH_CONNECTOR,JOBS_RUNNER | ||
{{ end }} | ||
{{ if and ( or (eq "latest" $.Values.image.tag ) ( semverCompare ">= 3.93.0-0" $.Values.image.tag ) ) ( not $.Values.dbconnector.java.enabled ) }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the long if list feels like trouble, esp if we want to change how we construct these in the future (which we'll certainly do, esp with splitting out main backend and dbc)..i wonder if we could do something like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe, that's a good idea let me try it |
||
- name: DISABLE_JAVA_DBCONNECTOR | ||
value: "true" | ||
{{ end }} | ||
- name: SERVICE_TYPE | ||
value: MAIN_BACKEND,DB_CONNECTOR,DB_SSH_CONNECTOR,JOBS_RUNNER | ||
{{- end }} | ||
- name: CLIENT_ID | ||
value: {{ default "" .Values.config.auth.google.clientId }} | ||
- name: COOKIE_INSECURE | ||
|
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 think
semverCompare
might give you trouble with image tags that are like3.xx.x-stable
or-edge
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 tested against the
-edge
ones and it works fine. I think it supports them because it's supposed to support SHAs there. That's why the comparison is against3.93.0-0
.I might add extra tests against a helm chart that has those versions just in case!