jenkins-controller-backendconfig.yaml 974 B

123456789101112131415161718192021222324
  1. {{- if .Values.controller.backendconfig.enabled }}
  2. apiVersion: {{ .Values.controller.backendconfig.apiVersion }}
  3. kind: BackendConfig
  4. metadata:
  5. name: {{ .Values.controller.backendconfig.name }}
  6. namespace: {{ template "jenkins.namespace" . }}
  7. labels:
  8. "app.kubernetes.io/name": '{{ template "jenkins.name" .}}'
  9. {{- if .Values.renderHelmLabels }}
  10. "helm.sh/chart": "{{ template "jenkins.label" .}}"
  11. {{- end }}
  12. "app.kubernetes.io/managed-by": "{{ .Release.Service }}"
  13. "app.kubernetes.io/instance": "{{ .Release.Name }}"
  14. "app.kubernetes.io/component": "{{ .Values.controller.componentName }}"
  15. {{- if .Values.controller.backendconfig.labels }}
  16. {{ toYaml .Values.controller.backendconfig.labels | indent 4 }}
  17. {{- end }}
  18. {{- if .Values.controller.backendconfig.annotations }}
  19. annotations:
  20. {{ toYaml .Values.controller.backendconfig.annotations | indent 4 }}
  21. {{- end }}
  22. spec:
  23. {{ toYaml .Values.controller.backendconfig.spec | indent 2 }}
  24. {{- end }}