Skip to content

Commit

Permalink
Nexus: Set ingress paths as templated values
Browse files Browse the repository at this point in the history
  • Loading branch information
bh673197 committed Sep 20, 2022
1 parent 5abbfa9 commit 925f9b3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/nexus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: nexus
description: Sonatype Nexus is an open source repository manager
type: application
appVersion: "3.38.0"
version: "1.2.3"
version: "1.2.4"
home: https://github.com/curie-data-factory/helm-charts/tree/master/charts/nexus
icon: https://help.sonatype.com/docs/files/331022/34537964/3/1564671303641/NexusRepo_Icon.png
sources:
Expand Down
6 changes: 3 additions & 3 deletions charts/nexus/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
- host: {{ .Values.ingress.urldockerrelease }}
http:
paths:
- path: /
- path: {{ .Values.ingress.urlDockerReleasePath }}
pathType: Prefix
backend:
service:
Expand Down Expand Up @@ -47,7 +47,7 @@ spec:
- host: {{ .Values.ingress.urldockersnapshot }}
http:
paths:
- path: /
- path: {{ .Values.ingress.urlDockerSnapshotPath }}
pathType: Prefix
backend:
service:
Expand Down Expand Up @@ -81,7 +81,7 @@ spec:
- host: "{{ .Values.ingress.url }}"
http:
paths:
- path: /
- path: {{ .Values.ingress.urlPath }}
pathType: Prefix
backend:
service:
Expand Down
6 changes: 4 additions & 2 deletions charts/nexus/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ spec:
- name: INSTALL4J_ADD_VM_PARAMS
value: {{ .Values.containerJVMParam }}
- name: JAVA_TOOL_OPTIONS
value: {{ .Values.java_tool_options}}
value: {{ .Values.java_tool_options}}
- name: NEXUS_CONTEXT
value: {{ .Values.ingress.urlPath | replace "/" "" }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: {{ .Values.image.name }}
Expand All @@ -41,7 +43,7 @@ spec:
name: dockerrelease
protocol: TCP
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- mountPath: /nexus-data/blobs
name: "{{ .Release.Name }}-blobs"
Expand Down
3 changes: 3 additions & 0 deletions charts/nexus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ service:
ingress:
urldockerrelease: nexus-release.company.com
urldockerreleasename: nexus-release
urlDockerReleasePath: /
urldockersnapshot: nexus-snapshot.company.com
urldockersnapshotname: nexus-snapshot
urlDockerSnapshotPath: /
enabled: true
url: nexus.company.com
urlPath: /

tls:
- hosts:
Expand Down

0 comments on commit 925f9b3

Please sign in to comment.