Skip to content

Commit

Permalink
Update Services name
Browse files Browse the repository at this point in the history
  • Loading branch information
gornication committed Dec 15, 2023
1 parent 81a38b9 commit f0d6b30
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- service_naming_issue

jobs:
packages:
Expand Down
6 changes: 3 additions & 3 deletions charts/brokencrystals/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ If release name contains chart name it will be used as a full name.
*/}}
{{- define "brokencrystals.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- .Values.fullnameOverride | trunc 40 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- .Release.Name | trunc 40 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- printf "%s-%s" .Release.Name $name | trunc 40 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
kind: Service
apiVersion: v1
metadata:
name: {{ include "brokencrystals.fullname" . }}-postgres-prod-service
name: {{ include "brokencrystals.fullname" . }}-postgres-prod
namespace: {{ .Release.Namespace }}
spec:
selector:
Expand Down
2 changes: 1 addition & 1 deletion charts/brokencrystals/templates/bc-prod-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
value: "https://{{ .Values.ingress.url }}"
# value: "https://brokencrystals.com"
- name: DATABASE_HOST
value: "{{ include "brokencrystals.fullname" . }}-postgres-prod-service"
value: "{{ include "brokencrystals.fullname" . }}-postgres-prod"
- name: DATABASE_SCHEMA
value: "bc"
- name: DATABASE_USER
Expand Down
4 changes: 2 additions & 2 deletions charts/brokencrystals/templates/bc-prod-proxy-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
- name: URL
value: "https://{{ .Values.ingress.url }}"
- name: DATABASE_HOST
value: "{{ include "brokencrystals.fullname" . }}-postgres-prod-service"
value: "{{ include "brokencrystals.fullname" . }}-postgres-prod"
- name: DATABASE_SCHEMA
value: "bc"
- name: DATABASE_USER
Expand Down Expand Up @@ -78,7 +78,7 @@ spec:
kind: Service
apiVersion: v1
metadata:
name: {{ include "brokencrystals.fullname" . }}-nodejs-proxy-prod-service
name: {{ include "brokencrystals.fullname" . }}-nodejs-proxy-prod
namespace: {{ .Release.Namespace }}
spec:
selector:
Expand Down
4 changes: 2 additions & 2 deletions charts/brokencrystals/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
pathType: Prefix
backend:
service:
name: {{ include "brokencrystals.fullname" . }}-nodejs-proxy-prod-service
name: {{ include "brokencrystals.fullname" . }}-nodejs-proxy-prod
port:
number: 80

Expand Down Expand Up @@ -54,6 +54,6 @@ spec:
pathType: Prefix
backend:
service:
name: {{ include "brokencrystals.fullname" . }}-keycloak-prod-service
name: {{ include "brokencrystals.fullname" . }}-keycloak-prod
port:
number: 8080
4 changes: 2 additions & 2 deletions charts/brokencrystals/templates/keycloak-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
- name: DB_VENDOR
value: "POSTGRES"
- name: DB_ADDR
value: "{{ include "brokencrystals.fullname" . }}-keycloak-postgres-prod-service"
value: "{{ include "brokencrystals.fullname" . }}-keycloak-postgres-prod"
- name: DB_DATABASE
value: "keycloak"
- name: DB_SCHEMA
Expand Down Expand Up @@ -66,7 +66,7 @@ spec:
kind: Service
apiVersion: v1
metadata:
name: {{ include "brokencrystals.fullname" . }}-keycloak-prod-service
name: {{ include "brokencrystals.fullname" . }}-keycloak-prod
namespace: {{ .Release.Namespace }}
spec:
selector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
kind: Service
apiVersion: v1
metadata:
name: {{ include "brokencrystals.fullname" . }}-keycloak-postgres-prod-service
name: {{ include "brokencrystals.fullname" . }}-keycloak-postgres-prod
namespace: {{ .Release.Namespace }}
spec:
selector:
Expand Down

0 comments on commit f0d6b30

Please sign in to comment.