Skip to content

Commit

Permalink
Updating the Artifactory (non-ha version) to include the master key, …
Browse files Browse the repository at this point in the history
…and allowing the ingress default backend to be used or not
  • Loading branch information
zendril committed Oct 11, 2018
1 parent e028860 commit b44f8e3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
5 changes: 3 additions & 2 deletions stable/artifactory/templates/artifactory-secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if .Values.database.password }}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -10,5 +9,7 @@ metadata:
release: {{ .Release.Name }}
type: Opaque
data:
{{- if .Values.database.password }}
db-password: {{ .Values.database.password | b64enc | quote }}
{{- end }}
{{- end }}
master-key: {{ .Values.artifactory.masterKey | b64enc | quote }}
5 changes: 5 additions & 0 deletions stable/artifactory/templates/artifactory-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ spec:
name: {{ template "artifactory.fullname" . }}
key: db-password
{{- end }}
- name: ARTIFACTORY_MASTER_KEY
valueFrom:
secretKeyRef:
name: {{ template "artifactory.fullname" . }}
key: master-key
- name: EXTRA_JAVA_OPTIONS
value: "
{{- if .Values.artifactory.javaOpts.other }}
Expand Down
3 changes: 3 additions & 0 deletions stable/artifactory/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ metadata:
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
{{- if .Values.ingress.defaultBackend.enabled }}
backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
{{- end -}}

{{- if .Values.ingress.hosts }}
rules:
{{- range $host := .Values.ingress.hosts }}
Expand Down
4 changes: 3 additions & 1 deletion stable/artifactory/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ serviceAccount:

ingress:
enabled: false
defaultBackend:
enabled: true
# Used to create an Ingress record.
hosts:
- artifactory.domain.example
Expand Down Expand Up @@ -70,7 +72,7 @@ artifactory:
dataKey:
## Create configMap with artifactory.config.import.xml and security.import.xml and pass name of configMap in following parameter
configMapName:

masterKey: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
## Extra postStart command to install JDBC driver for MySql/MariaDb/Oracle
# postStartCommand: "curl -L -o /opt/jfrog/artifactory/tomcat/lib/mysql-connector-java-5.1.41.jar https://jcenter.bintray.com/mysql/mysql-connector-java/5.1.41/mysql-connector-java-5.1.41.jar && chown 1030:1030 /opt/jfrog/artifactory/tomcat/lib/mysql-connector-java-5.1.41.jar"

Expand Down

0 comments on commit b44f8e3

Please sign in to comment.