Files
charts/bitnami/matomo/templates/svc.yaml
Jeremy 4084152a96 [bitnami/matomo] Adding the Matomo Helm Chart (#10652)
* Adding Matomo Chart v0.1.0

Signed-off-by: Jeremy Boyle <jeremy.t.boyle2.mil@swf.army.mil>

* Updating values.yaml, with missing @param values, regenerated README.md

Signed-off-by: Jeremy Boyle <jeremy.t.boyle2.mil@swf.army.mil>

* Updating values.yaml, changed DEBUG = FALSE, regenerated README.md

Signed-off-by: Jeremy Boyle <jeremy.t.boyle2.mil@swf.army.mil>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* test:  Add VIB testing

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* fix matomo

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* test:  Update incorrect url

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* chore: ⬆️ Update image

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* chore: 🔥 Remove unused variable ingress.hosts and service.httpsport

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* fix: 🐛 Add reference to missing certificate values

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* docs: 📝 Fix incorrect placeholder in values documentation

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* feat:  Adapt ingress to standard and add missing values

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* ci: 👷 Add chart to cd-pipeline

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* chore: ⬆️ Bump subcharts

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* test:  Add two extra GOSS tests

Check that the httpd process exists and check the Matomo config contents

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* test:  Improve cypress tests

- Add documentation on the API
- Check that the user has been created

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* chore: ⬆️ Bump image tag

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* chore: 🔥 Remove references to service.port

This is a deprecated parameter not used anymore

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* feat:  Use common.secrets.password.manage for password management

This avoids issues during upgrades

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* fix: 🐛 Remove erroneous call to coalesce

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* chore: 🔥 Remove component label

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* feat:  Add smtpExistingSecret value

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* fix: 🐛 Use correct PVC values

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

* chore: 🔥 Remove unused reference to sessionAffinity and service.port

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>

Co-authored-by: Bitnami Containers <containers@bitnami.com>
Co-authored-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
2022-07-07 17:12:39 +02:00

58 lines
2.7 KiB
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ include "common.names.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
annotations:
{{- if .Values.commonAnnotations }}
{{- include "common.tplvalues.render" (dict "value" .Values.commonAnnotations "context" $) | nindent 4 }}
{{- end }}
{{- if .Values.service.annotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.service.annotations "context" $) | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if .Values.service.sessionAffinity }}
sessionAffinity: {{ .Values.service.sessionAffinity }}
{{- end }}
{{- if .Values.service.sessionAffinityConfig }}
sessionAffinityConfig: {{- include "common.tplvalues.render" (dict "value" .Values.service.sessionAffinityConfig "context" $) | nindent 4 }}
{{- end }}
{{- if and .Values.service.clusterIP (eq .Values.service.type "ClusterIP") }}
clusterIP: {{ .Values.service.clusterIP }}
{{- end }}
{{- if (and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerIP))) }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
{{- if and (eq .Values.service.type "LoadBalancer") .Values.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges: {{- toYaml .Values.service.loadBalancerSourceRanges | nindent 4 }}
{{- end }}
{{- if or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort") }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }}
{{- end }}
ports:
- name: http
port: {{ .Values.service.ports.http }}
targetPort: http
{{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePorts.http)) }}
nodePort: {{ .Values.service.nodePorts.http }}
{{- else if eq .Values.service.type "ClusterIP" }}
nodePort: null
{{- end }}
- name: https
port: {{ .Values.service.ports.https }}
targetPort: https
{{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePorts.https)) }}
nodePort: {{ .Values.service.nodePorts.https }}
{{- else if eq .Values.service.type "ClusterIP" }}
nodePort: null
{{- end }}
{{- if .Values.service.extraPorts }}
{{- include "common.tplvalues.render" (dict "value" .Values.service.extraPorts "context" $) | nindent 4 }}
{{- end }}
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}