Skip to content

Commit

Permalink
Two Deployment chart templates
Browse files Browse the repository at this point in the history
  • Loading branch information
gornication committed Jan 11, 2024
1 parent b79a3a0 commit dd701f2
Show file tree
Hide file tree
Showing 12 changed files with 254 additions and 344 deletions.
4 changes: 2 additions & 2 deletions charts/brokencrystals/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Expand the name of the chart.
*/}}
{{- define "brokencrystals.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 50 | trimSuffix "-" }}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Expand All @@ -27,7 +27,7 @@ If release name contains chart name it will be used as a full name.
Create chart name and version as used by the chart label.
*/}}
{{- define "brokencrystals.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 50 | trimSuffix "-" }}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Expand Down
62 changes: 0 additions & 62 deletions charts/brokencrystals/templates/bc-postgres-deployment.yaml

This file was deleted.

88 changes: 0 additions & 88 deletions charts/brokencrystals/templates/bc-prod-deployment.yaml

This file was deleted.

91 changes: 0 additions & 91 deletions charts/brokencrystals/templates/bc-prod-proxy-deployment.yaml

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,24 @@ data:
}
location /api {
proxy_pass http://{{ include "brokencrystals.fullname" . }}-nodejs:3000;
proxy_pass http://127.0.0.1:3000;
}
location /swagger {
proxy_pass http://{{ include "brokencrystals.fullname" . }}-nodejs:3000;
proxy_pass http://127.0.0.1:3000;
}
location /graphiql {
proxy_pass http://{{ include "brokencrystals.fullname" . }}-nodejs:3000;
proxy_pass http://127.0.0.1:3000;
}
location /graphql {
proxy_pass http://{{ include "brokencrystals.fullname" . }}-nodejs:3000;
proxy_pass http://127.0.0.1:3000;
}
location /put.raw {
rewrite put.raw /api/file/raw?path=./gil.txt break;
proxy_pass http://{{ include "brokencrystals.fullname" . }}-nodejs:3000;
proxy_pass http://127.0.0.1:3000;
}
location ~* ^/(config\.js|config\.json|\.htaccess|\.env|\.nginx\.conf|\.robots\.txt)$ {
Expand Down
Loading

0 comments on commit dd701f2

Please sign in to comment.