Skip to content

Commit

Permalink
Fix nexus properties bug
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehipwell committed Mar 24, 2020
1 parent 3bd8d01 commit 98eda3c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/nexus3/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: nexus3
version: 1.3.2
version: 2.0.0
appVersion: 3.21.2
description: Sonatype Nexus OSS is an open source repository manager
keywords:
Expand Down
2 changes: 1 addition & 1 deletion charts/nexus3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ The following table lists the configurable parameters of the _Nexus3_ chart and
| `ingress.path` | Path for ingress rules | `/` |
| `ingress.hosts` | List of ingress hosts | `[]` |
| `ingress.tls` | List of TLS configurations (`ingress.tls[n].secretName`, `ingress.tls[n].hosts[m])` | `[]` |
| `properties` | List of properties to start _Nexus3_ with. | `nil` |
| `properties.enabled` | Support passing _Nexus3_ properties. | `nil` |
| `config.enabled` | Automatically configure _Nexus3_ | `false` |

## Persistence
Expand Down
6 changes: 3 additions & 3 deletions charts/nexus3/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ spec:
volumeMounts:
- mountPath: /nexus-data
name: {{ include "nexus3.pvcname" . }}
{{- if .Values.config.enabled }}
{{- if .Values.properties.enabled }}
- mountPath: /nexus-data/etc/nexus.properties
name: {{ template "nexus3.fullname" . }}-conf
name: {{ template "nexus3.fullname" . }}-properties
subPath: nexus.properties
readonly: true
{{- end }}
Expand Down Expand Up @@ -137,7 +137,7 @@ spec:
secret:
secretName: {{ .Values.caCerts.secret }}
{{- end }}
{{- if .Values.properties }}
{{- if .Values.properties.enabled }}
- name: {{ template "nexus3.fullname" . }}-properties
configMap:
name: {{ template "nexus3.fullname" . }}-properties
Expand Down
3 changes: 2 additions & 1 deletion charts/nexus3/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ ingress:
# - nexus-docker.local
# - nexus-docker-hosted.local

# properties:
properties:
enabled: false
# - nexus.golang.hosted=true

config:
Expand Down

0 comments on commit 98eda3c

Please sign in to comment.