Skip to content

Commit

Permalink
Allow the services LoadBalancerIP to be set (#68)
Browse files Browse the repository at this point in the history
* Allow the services LoadBalancerIP to be set

* Fix issues with loadBalancerIP
  • Loading branch information
gezb authored Jul 6, 2021
1 parent 276b873 commit 80fde2b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ The following options are supported. See [values.yaml](/charts/atlantis/values.
| `googleServiceAccountSecrets` | An array of Kubernetes secrets containing Google Service Account credentials. See `values.yaml` for examples and additional documentation. | n/a |
| `service.port` | Port of the `Service`. | `80` |
| `service.loadBalancerSourceRanges` | Array of whitelisted IP addresses for the Atlantis Service. If no value is specified, the Service will allow incoming traffic from all IP addresses (0.0.0.0/0). | n/a |
| `service.loadBalancerIP` | Expose this service on the given ip if service.type = `LoadBalancerIP` | n/a |
| `storageClassName` | Storage class of the volume mounted for the Atlantis data directory. | n/a |
| `tlsSecretName` | Name of a Secret for Atlantis' HTTPS certificate containing the following data items `tls.crt` with the public certificate and `tls.key` with the private key. | n/a |
| `ingress.enabled` | Whether to create a Kubernetes Ingress. | `true` |
Expand Down
2 changes: 1 addition & 1 deletion charts/atlantis/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: v0.17.0
description: A Helm chart for Atlantis https://www.runatlantis.io
name: atlantis
version: 3.13.0
version: 3.14.0
keywords:
- terraform
home: https://www.runatlantis.io
Expand Down
3 changes: 3 additions & 0 deletions charts/atlantis/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ spec:
{{- if .Values.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{ toYaml .Values.service.loadBalancerSourceRanges | indent 4 }}
{{- end }}
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
type: {{ .Values.service.type }}
ports:
Expand Down
3 changes: 2 additions & 1 deletion charts/atlantis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ readinessProbe:
service:
type: NodePort
port: 80
loadBalancerIP: null

podTemplate:
annotations: {}
Expand Down Expand Up @@ -331,4 +332,4 @@ extraContainers: []
# cpu: 100m
# memory: 128Mi
# volumeMounts:
# - ...
# - ...

0 comments on commit 80fde2b

Please sign in to comment.