-
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] add configurable port names for istio compatibility #154
Changes from all commits
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.0.17 | ||
version: 6.0.18 | ||
maintainers: | ||
- name: Retool Engineering | ||
email: [email protected] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,10 +18,6 @@ spec: | |
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} | ||
template: | ||
metadata: | ||
annotations: | ||
prometheus.io/job: {{ template "retool.codeExecutor.name" . }} | ||
prometheus.io/scrape: 'true' | ||
prometheus.io/port: '9090' | ||
{{- if .Values.podAnnotations }} | ||
{{ toYaml .Values.podAnnotations | indent 8 }} | ||
{{- end }} | ||
|
@@ -83,10 +79,11 @@ spec: | |
{{- end }} | ||
ports: | ||
- containerPort: 3004 | ||
{{ if .Values.codeExecutor.portName }} | ||
name: {{ .Values.codeExecutor.portName }} | ||
{{ else }} | ||
name: {{ template "retool.name" . }} | ||
protocol: TCP | ||
- containerPort: 9090 | ||
name: metrics | ||
{{ end }} | ||
protocol: TCP | ||
{{- if .Values.livenessProbe.enabled }} | ||
livenessProbe: | ||
|
@@ -137,9 +134,9 @@ spec: | |
- protocol: TCP | ||
port: 80 | ||
targetPort: 3004 | ||
{{ if .Values.codeExecutor.portName }} | ||
name: {{ .Values.codeExecutor.portName }} | ||
{{ else }} | ||
name: {{ template "retool.name" . }} | ||
- protocol: TCP | ||
port: 9090 | ||
targetPort: metrics | ||
name: metrics | ||
Comment on lines
-141
to
-144
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. unused, no need to expose this. |
||
{{ end }} | ||
Comment on lines
+137
to
+141
This comment was marked as resolved.
Sorry, something went wrong. |
||
{{- end }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -236,10 +236,14 @@ spec: | |
{{- end }} | ||
ports: | ||
- containerPort: 3005 | ||
{{ if .Values.workflows.worker.portName }} | ||
name: {{ .Values.workflows.worker.portName }} | ||
{{ else }} | ||
name: {{ template "retool.name" . }} | ||
{{ end }} | ||
protocol: TCP | ||
- containerPort: 9090 | ||
name: metrics | ||
name: {{ .Values.workflows.worker.metricsPortName | default "metrics" }} | ||
protocol: TCP | ||
|
||
{{- if .Values.livenessProbe.enabled }} | ||
|
@@ -336,9 +340,13 @@ spec: | |
- protocol: TCP | ||
port: 3005 | ||
targetPort: 3005 | ||
{{ if .Values.workflows.worker.portName }} | ||
name: {{ .Values.workflows.worker.portName }} | ||
{{ else }} | ||
name: {{ template "retool.name" . }} | ||
Comment on lines
+345
to
346
This comment was marked as resolved.
Sorry, something went wrong. 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. line 346 is the fallback if 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. I mean like you do above - the conditional L343-L347 becomes one line
|
||
{{ end }} | ||
- protocol: TCP | ||
port: 9090 | ||
targetPort: metrics | ||
name: metrics | ||
targetPort: {{ .Values.workflows.worker.metricsPortName | default "metrics" }} | ||
name: {{ .Values.workflows.worker.metricsPortName | default "metrics" }} | ||
{{- end }} |
This comment was marked as resolved.
Sorry, something went wrong.