You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Makefile
-2
Original file line number
Diff line number
Diff line change
@@ -39,8 +39,6 @@ K8S_VERSION=1.19.0
39
39
test: generate-installer fmt vet bundle
40
40
mkdir -p ${ENVTEST_ASSETS_DIR}
41
41
test -f ${ENVTEST_ASSETS_DIR}/setup-envtest.sh || curl -sSLo ${ENVTEST_ASSETS_DIR}/setup-envtest.sh https://raw.githubusercontent.com/kubernetes-sigs/controller-runtime/v0.6.3/hack/setup-envtest.sh # this is a workaround while we don't upgrade the sdk
*[Ignoring external changes to Ingress/Route resources](#ignoring-external-changes-to-ingressroute-resources)
26
27
*[TLS/SSL](#tlsssl)
@@ -235,6 +236,21 @@ $ kubectl get events
235
236
9m45s Warning UpdateFailed nexus/nexus3 Failed to update to 3.26.1. Human intervention may be required
236
237
# (output omitted)
237
238
```
239
+
## Custom Configuration
240
+
241
+
Starting on version 0.6.0, the operator now mounts a [ConfigMap](https://kubernetes.io/docs/concepts/configuration/configmap/) with
242
+
the contents of the [`nexus.properties`](https://help.sonatype.com/repomanager3/installation/configuring-the-runtime-environment) file
243
+
in the path `$NEXUS_DATA/etc/nexus.properties`.
244
+
245
+
The Nexus Operator mount this file with the contents of the field `Spec.Properties` using [the Java properties format](https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html#load-java.io.Reader-).
246
+
If you change this field, the operator will deploy a new pod _immediately_ to reflect the changes applied in the `ConfigMap`.
247
+
248
+
**Don't update** the managed `ConfigMap` directly, otherwise the operator will replace its contents with `Spec.Properties` field.
249
+
Always use the Nexus CR as the only source of truth. See this [example](examples/nexus3-centos-no-volume-custom-properties.yaml) to
250
+
learn how to properly set your properties directly in the CR.
251
+
252
+
> **Beware!** Since we don't support HA yet, the server will be unavailable until the next pod comes up. Try to update the configuration only
253
+
> when you can afford to have the server unavailable.
// Properties describes the configuration properties in the Java properties format that will be included in the nexus.properties file mounted with the Nexus server deployment.
Copy file name to clipboardexpand all lines: bundle/manifests/apps.m88i.io_nexus.yaml
+8-3
Original file line number
Diff line number
Diff line change
@@ -118,9 +118,9 @@ spec:
118
118
exposeAs:
119
119
description: 'Type of networking exposure: NodePort, Route or Ingress. Defaults to Route on OpenShift and Ingress on Kubernetes. Routes are only available on Openshift and Ingresses are only available on Kubernetes.'
120
120
enum:
121
-
- NodePort
122
-
- Route
123
-
- Ingress
121
+
- NodePort
122
+
- Route
123
+
- Ingress
124
124
type: string
125
125
host:
126
126
description: Host where the Nexus service is exposed. This attribute is required if the service is exposed via Ingress.
@@ -1074,6 +1074,11 @@ spec:
1074
1074
required:
1075
1075
- persistent
1076
1076
type: object
1077
+
properties:
1078
+
additionalProperties:
1079
+
type: string
1080
+
description: 'Properties describes the configuration properties in the Java properties format that will be included in the nexus.properties file mounted with the Nexus server deployment. For example: nexus.conan.hosted.enabled: true'
1081
+
type: object
1077
1082
readinessProbe:
1078
1083
description: ReadinessProbe describes how the Nexus container readiness probe should work
0 commit comments