2023-01-07 10:58:38 +00:00
|
|
|
{{/* Define the secret */}}
|
|
|
|
{{- define "jenkins.secret" -}}
|
2023-09-17 18:13:19 +00:00
|
|
|
enabled: true
|
|
|
|
data:
|
2023-01-07 10:58:38 +00:00
|
|
|
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 -}}
|