Skip to content

Commit 1ccc700

Browse files
committed
refactor: update Nexus storage configuration and improve NOTES.txt clarity
1 parent e6cdee1 commit 1ccc700

6 files changed

Lines changed: 11 additions & 9 deletions

File tree

configuration-sample/ods-core.env.sample

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,12 @@ NEXUS_MEMORY_REQUEST=3Gi
7777
NEXUS_CPU_LIMIT=1
7878
NEXUS_MEMORY_LIMIT=5Gi
7979

80-
# Nexus data and backup capacity
80+
# Nexus data capacity
8181
NEXUS_DATA_CAPACITY=60Gi
8282

83+
# Nexus storage name
84+
NEXUS_STORAGE_NAME="storage"
85+
8386
# Storage class provisioner, for AWS this should be "kubernetes.io/aws-ebs"
8487
NEXUS_STORAGE_PROVISIONER=""
8588

nexus/chart/templates/NOTES.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@ Thank you for installing the OpenDevStack Nexus OSS Helm chart!
33
Nexus Repository Manager has been deployed.
44

55
Access Nexus UI:
6-
URL: https://{{ .Values.global.nexusHost }}
6+
https://{{ .Values.global.nexusHost }}
77

88
Docker Registry Endpoint:
9-
URL: https://{{ .Values.global.nexusDockerGroup }}-{{ .Values.global.odsNamespace }}{{ .Values.global.openshiftAppDomain}}
9+
{{ .Values.global.nexusDockerGroup }}-{{ .Values.global.odsNamespace }}{{ .Values.global.openshiftAppDomain}}
1010

1111
Nexus Version: {{ .Values.global.nexusImageTag }}
1212

13-
Persistent Data:
14-
- Nexus data is stored in the PVC '{{ .Values.global.appName }}-data'
15-
1613
For more information, visit:
1714
- Sonatype Nexus Repository OSS: https://help.sonatype.com/en/ce-onboarding.html
1815
- OpenDevStack: https://www.opendevstack.org/ods-documentation/opendevstack/latest/nexus/administration.html

nexus/chart/templates/deploymentconfig.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ spec:
3737
volumes:
3838
- name: {{ .Values.global.appName }}-data
3939
persistentVolumeClaim:
40-
claimName: {{ .Values.global.appName }}-data
40+
claimName: {{ .Values.global.nexusStorageName }}
4141
containers:
4242
- resources:
4343
limits:

nexus/chart/templates/nexus-snapshot-cronjob.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
spec:
3030
volumeSnapshotClassName: {{ .Values.global.nexusSnapshotClass }}
3131
source:
32-
persistentVolumeClaimName: {{ .Values.global.appName }}-data
32+
persistentVolumeClaimName: {{ .Values.global.nexusStorageName }}
3333
EOF
3434
# Cleanup snapshots older than the TTL
3535
oc get volumesnapshots --namespace {{ .Values.global.odsNamespace }} \

nexus/chart/templates/pvc-data.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ kind: PersistentVolumeClaim
33
metadata:
44
annotations:
55
volume.beta.kubernetes.io/storage-provisioner: {{ .Values.global.storageProvisioner }}
6+
helm.sh/resource-policy: keep
67
finalizers:
78
- kubernetes.io/pvc-protection
89
labels:
910
app: {{ .Values.global.appName }}
10-
name: {{ .Values.global.appName }}-data
11+
name: {{ .Values.global.nexusStorageName }}
1112
spec:
1213
accessModes:
1314
- ReadWriteOnce

nexus/chart/values.yaml.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ global:
1717
nexusSnapshotSchedule: $NEXUS_SNAPSHOT_SCHEDULE
1818
nexusSnapshotClass: $NEXUS_STORAGE_CLASS_BACKUP
1919
nexusSnapshotTTL: $NEXUS_SNAPSHOT_TTL
20+
nexusStorageName: $NEXUS_STORAGE_NAME
2021
nexus:
2122
cpuRequest: $NEXUS_CPU_REQUEST
2223
cpuLimit: $NEXUS_CPU_LIMIT

0 commit comments

Comments
 (0)