catalog/stable/jenkins/7.18.0/templates/_secret.tpl

35 lines
1.1 KiB
Smarty

{{/* Define the secret */}}
{{- define "jenkins.secret" -}}
enabled: true
data:
JAVA_OPTS: {{ join " " (include "java.opts" . | fromYaml).opts | quote }}
JENKINS_OPTS: {{ join " " (include "jenkins.opts" . | fromYaml).opts | quote }}
JENKINS_JAVA_OPTS: {{ join " " (include "jenkins.java.opts" . | fromYaml).opts | quote }}
PLUGINS_FORCE_UPGRADE: {{ .Values.jenkins.plugins_force_upgrade | quote }}
TRY_UPGRADE_IF_NO_MARKER: {{ .Values.jenkins.upgrade_if_no_marker | quote }}
{{- end -}}
{{- define "jenkins.java.opts" -}}
opts:
- -Djenkins.model.Jenkins.slaveAgentPort={{ .Values.service.agent.ports.agent.port }}
- -Djenkins.model.Jenkins.slaveAgentPortEnforce=true
{{- range $opt := .Values.jenkins.jenkins_java_opts }}
- {{ $opt }}
{{- end }}
{{- end -}}
{{- define "jenkins.opts" -}}
opts:
- --httpPort={{ .Values.service.main.ports.main.port }}
{{- range $opt := .Values.jenkins.jenkins_opts }}
- {{ $opt }}
{{- end }}
{{- end -}}
{{- define "java.opts" -}}
opts:
{{- range $opt := .Values.jenkins.java_opts }}
- {{ $opt }}
{{- end }}
{{- end -}}