Skip to content

Commit

Permalink
feat: add values for worker args
Browse files Browse the repository at this point in the history
  • Loading branch information
daothaison committed Oct 10, 2023
1 parent d65b21d commit d998048
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/codecov/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: codecov
description: A Helm chart for Codecov
type: application
version: 0.1.1
version: 0.1.2
appVersion: "v5.0.1"
dependencies:
- name: common
Expand Down
3 changes: 1 addition & 2 deletions charts/codecov/templates/deployment-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ spec:
- name: worker
image: "{{ .Values.worker.image.repository }}:{{ .Values.worker.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.api.image.pullPolicy }}
args:
- worker
args: {{- include "common.tplvalues.render" (dict "value" .Values.worker.args "context" $) | nindent 10 }}
env:
- name: RUN_ENV
value: "ENTERPRISE"
Expand Down
2 changes: 1 addition & 1 deletion charts/codecov/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ data:
GITHUB__WEBHOOK_SECRET: {{ .Values.config.github.webhook_secret | b64enc | quote }}
SERVICES__REDIS_URL: {{ include "codecov.redis.url" . | b64enc | quote }}
SERVICES__DATABASE_URL: {{ include "codecov.db.url" . | b64enc | quote }}
{{- if .Values.timescaledb.enabled }}
{{- if and .Values.timescaledb.enabled .Values.config.setup.timeseries.enabled }}
SERVICES__TIMESERIES_DATABASE_URL: {{ include "codecov.db.timescaleUrl" . | b64enc | quote }}
{{- end }}
{{- if .Values.minio.enabled }}
Expand Down
18 changes: 10 additions & 8 deletions charts/codecov/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ config:
services:
minio:
verify_ssl: false
#port: 443
port: 443
setup:
codecovHost: codecov.local
codecovScheme: https
codecovUrl: https://codecov.local
codecovApiUrl: https://codecov.local
timeseries:
enabled: true
enabled: false
enterprise_license: "very-long-license-key"
http:
cookie_secret: "secrets"
Expand Down Expand Up @@ -129,6 +129,9 @@ worker:
# Overrides the image tag whose default is the chart appVersion.
tag: ""

args:
- worker

imagePullSecrets: []

podAnnotations: {}
Expand Down Expand Up @@ -329,17 +332,16 @@ service:
ingress:
enabled: true
ingressClassName: nginx
annotations:
kubernetes.io/tls-acme: "true"
annotations: {}
hosts:
- host: codecov.local
paths:
- path: /
pathType: ImplementationSpecific
tls:
- secretName: codecov-tls
hosts:
- codecov.local
tls: []
# - secretName: codecov-tls
# hosts:
# - codecov.local

redis:
enabled: true
Expand Down

0 comments on commit d998048

Please sign in to comment.