diff --git a/.gitignore b/.gitignore index 6caa64356..712d9fec6 100644 --- a/.gitignore +++ b/.gitignore @@ -81,3 +81,7 @@ pnpm* # Nix Development shell items .devenv .direnv + +# helm chart dependencies +chart/charts +chart/Chart.lock diff --git a/chart/templates/_helpers.tpl b/chart/templates/_helpers.tpl index 1ccd45cb1..cb1d06ca8 100644 --- a/chart/templates/_helpers.tpl +++ b/chart/templates/_helpers.tpl @@ -119,10 +119,10 @@ port: 3000 db: {{- if .Values.postgresql.enabled }} host: {{ template "iceshrimp.postgresql.fullname" . }} - port: '5432' + port: 5432 {{- else }} host: {{ .Values.postgresql.postgresqlHostname }} - port: {{ .Values.postgresql.postgresqlPort | default "5432" | quote }} + port: {{ .Values.postgresql.postgresqlPort | default 5432 }} {{- end }} # Database name @@ -130,7 +130,7 @@ db: # Auth user: {{ .Values.postgresql.auth.username }} - pass: "{{ .Values.postgresql.auth.password }}" + pass: {{ .Values.postgresql.auth.password | quote }} # Whether disable Caching queries #disableCache: true @@ -150,7 +150,7 @@ redis: {{- else }} host: {{ required "When the redis chart is disabled .Values.redis.hostname is required" .Values.redis.hostname }} {{- end }} - port: {{ .Values.redis.port | default "6379" | quote }} + port: {{ .Values.redis.port | default 6379 }} #family: 0 # 0=Both, 4=IPv4, 6=IPv6 pass: {{ .Values.redis.auth.password | quote }} #prefix: example-prefix @@ -217,8 +217,7 @@ id: 'aid' #maxCaptionLength: 1500 # Reserved usernames that only the administrator can register with -reservedUsernames: -{{ .Values.iceshrimp.reservedUsernames | toYaml }} +reservedUsernames: {{ .Values.iceshrimp.reservedUsernames | toJson }} # Whether disable HSTS #disableHsts: true @@ -265,8 +264,7 @@ reservedUsernames: # Proxy remote files (default: false) #proxyRemoteFiles: true -allowedPrivateNetworks: -{{ .Values.iceshrimp.allowedPrivateNetworks | toYaml }} +allowedPrivateNetworks: {{ .Values.iceshrimp.allowedPrivateNetworks | toJson }} # TWA #twa: diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index 136e032de..05d381834 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -39,9 +39,9 @@ spec: image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} command: - - pnpm + - yarn - run - - start + - migrateandstart env: - name: "NODE_ENV" value: "production" diff --git a/chart/templates/job-db-migrate.yaml b/chart/templates/job-db-migrate.yaml index 0ecd6d45a..6451e24a7 100644 --- a/chart/templates/job-db-migrate.yaml +++ b/chart/templates/job-db-migrate.yaml @@ -36,9 +36,9 @@ spec: image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} command: - - pnpm + - yarn - run - - migrate + - migrateandstart env: - name: "NODE_ENV" value: "production"