-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nexus3): Updated init container spec
Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>
- Loading branch information
1 parent
5e0f0f1
commit 03f75cd
Showing
10 changed files
with
267 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
deployment: false | ||
|
||
commonLabels: | ||
common-label: test | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{{- if or .Values.caCerts.enabled .Values.plugins .Values.chownDataDir -}} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "nexus3.fullname" . }}-scripts | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "nexus3.labels" . | nindent 4 }} | ||
data: | ||
import-ca-certs.sh: | | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
mkdir -p /nexus-data/keystores | ||
cp -f "${JAVA_HOME}/jre/lib/security/cacerts" /nexus-data/keystores/cacerts | ||
for f in /nexus-data/secrets/cas/* | ||
do | ||
keytool -importcert -file "${f}" -alias "$(basename "${f}")" -keystore /nexus-data/keystores/cacerts -storepass changeit -trustcacerts -noprompt | ||
done | ||
download-plugins.sh: | | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
{{- range .Values.plugins }} | ||
curl -sSLo /deploy/{{ .name }}.kar {{ .url }} | ||
{{- end }} | ||
chown-data-dir.sh: | | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
mkdir -p /nexus-data/etc | ||
chown -R {{ .Values.podSecurityContext.fsGroup }}:{{ .Values.podSecurityContext.fsGroup }} /nexus-data; | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.