-
Notifications
You must be signed in to change notification settings - Fork 75
[fix] Update chart to handle the opt-in mechanism for Java dbconnecto… #190
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
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 |
|---|---|---|
|
|
@@ -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 ) }} | ||
|
||
| - 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
semverComparemight give you trouble with image tags that are like3.xx.x-stableor-edgeThere 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
-edgeones 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!