File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,5 +2,10 @@ apiVersion: v2
22name : dependency-db
33description : Dependency-DB with frontend, API-Backend
44type : application
5- version : 0.1 .0
5+ version : 0.2 .0
66appVersion : " 0.1.0"
7+
8+ annotations :
9+ artifacthub.io/changes : |
10+ - kind: "added"
11+ description: "The ingress now proxies to API and Jira"
Original file line number Diff line number Diff line change 2929 image : " {{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag | default .Chart.AppVersion }}"
3030 imagePullPolicy : {{ .Values.frontend.image.pullPolicy }}
3131 env :
32- - name : DEPDB_API_ADDRESS
33- value : " http://{{ include " dependency-db.fullname.api" . }}"
34- - name : DEPDB_JIRA_ADDRESS
35- value : {{ .Values.jira.address }}"
3632 - name : DEPDB_EXTERNAL_HOSTNAME
3733 value : {{ join " " .Values.ingress.hosts | quote }}
3834 ports :
Original file line number Diff line number Diff line change 11{{- if .Values.ingress.enabled -}}
22{{- $fullName := include "dependency-db.fullname.frontend" . -}}
3+ {{- $apiServiceName := include "dependency-db.fullname.api" . -}}
34{{- $svcPort := .Values.service.port -}}
5+ {{- $jiraPort := .Values.jira.port -}}
46apiVersion : networking.k8s.io/v1
57kind : Ingress
68metadata :
3739 name : {{ $fullName }}
3840 port :
3941 number : {{ $svcPort }}
42+ - path : /api/db/
43+ pathType : Prefix
44+ backend :
45+ service :
46+ name : {{ $apiServiceName }}
47+ port :
48+ number : {{ $svcPort }}
49+ - path : /api/jira/
50+ pathType : Prefix
51+ backend :
52+ service :
53+ name : {{ $apiServiceName }}-jira-service
54+ port :
55+ number : {{ $jiraPort }}
4056 {{- end }}
4157 {{- end }}
Original file line number Diff line number Diff line change 1+ {{- if .Values.ingress.enabled -}}
2+ apiVersion : v1
3+ kind : Service
4+ metadata :
5+ name : {{ include "dependency-db.fullname.api" . }}-jira-service
6+ labels :
7+ {{- include "dependency-db-api.labels" . | nindent 4 }}
8+ spec :
9+ type : ExternalName
10+ externalName : {{ .Values.jira.hostname }}
11+ {{- end }}
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ importerconfig:
4141 - secretRef : graph-db-pw-secret
4242
4343jira :
44- address : " https://jira.example.com"
44+ hostname : " jira.example.com"
45+ port : 443
4546
4647imagePullSecrets : []
4748nameOverride : " "
You can’t perform that action at this time.
0 commit comments