diff --git a/charts/mattermost-team-edition/Chart.yaml b/charts/mattermost-team-edition/Chart.yaml index b9e8e4b1..f0b67b2c 100644 --- a/charts/mattermost-team-edition/Chart.yaml +++ b/charts/mattermost-team-edition/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Mattermost Team Edition server. name: mattermost-team-edition -version: 3.8.0 +version: 3.8.1 appVersion: 5.13.2 keywords: - mattermost diff --git a/charts/mattermost-team-edition/README.md b/charts/mattermost-team-edition/README.md index e759cdb5..8d50da6a 100644 --- a/charts/mattermost-team-edition/README.md +++ b/charts/mattermost-team-edition/README.md @@ -76,6 +76,8 @@ Parameter | Description `extraPodAnnotations` | Extra pod annotations to be used in the deployments | `[]` `extraEnvVars` | Extra environments variables to be used in the deployments | `[]` `extraInitContainers` | Additional init containers | `[]` +`service.annotations` | Service annotations | `{}` +`service.loadBalancerSourceRanges` | list of IP CIDRs allowed access to load balancer (if supported) | `[]` Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/charts/mattermost-team-edition/templates/service.yaml b/charts/mattermost-team-edition/templates/service.yaml index 08f061b3..8db893bd 100644 --- a/charts/mattermost-team-edition/templates/service.yaml +++ b/charts/mattermost-team-edition/templates/service.yaml @@ -1,6 +1,10 @@ apiVersion: v1 kind: Service metadata: +{{- if .Values.service.annotations }} + annotations: +{{ toYaml .Values.service.annotations | indent 4 }} +{{- end }} name: {{ include "mattermost-team-edition.name" . }} labels: app.kubernetes.io/name: {{ include "mattermost-team-edition.name" . }} @@ -18,3 +22,7 @@ spec: targetPort: http protocol: TCP name: {{ include "mattermost-team-edition.name" . }} +{{- if .Values.service.loadBalancerSourceRanges }} + loadBalancerSourceRanges: +{{ toYaml .Values.service.loadBalancerSourceRanges | indent 4 }} +{{- end }} diff --git a/charts/mattermost-team-edition/values.yaml b/charts/mattermost-team-edition/values.yaml index be70202f..6730b59e 100644 --- a/charts/mattermost-team-edition/values.yaml +++ b/charts/mattermost-team-edition/values.yaml @@ -44,6 +44,8 @@ service: type: ClusterIP externalPort: 8065 internalPort: 8065 + annotations: {} + loadBalancerSourceRanges: [] ingress: enabled: false