Skip to content

Commit d3eaadb

Browse files
authored
feat(chart): allow setting loadBalancerClass (#176)
* feat(chart): allow setting loadBalancerClass * update version, changelog, and readme * fix pre-commit check
1 parent ab4ea00 commit d3eaadb

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

charts/k8s-gateway/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ apiVersion: v2
22
name: k8s-gateway
33
description: A Helm chart for the k8s_gateway CoreDNS plugin
44
type: application
5-
version: 3.2.7
5+
version: 3.2.8
66
appVersion: 1.6.0
77
maintainers:
88
- url: https://github.com/samip5
99
name: samip5
1010
annotations:
1111
artifacthub.io/changes: |
1212
- kind: changed
13-
description: update to newer app version
13+
description: allow setting loadBalancerClass on Service

charts/k8s-gateway/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ The following table lists the configurable parameters of the k8s_gateway chart a
3737
| `service.type` | The type of service to create (`LoadBalancer`, `NodePort`) | `LoadBalancer` |
3838
| `service.nodePort` | Node port when service type is `NodePort`. Randomly chosen by Kubernetes if not provided | |
3939
| `service.loadBalancerIP` | The IP address to use when using serviceType `LoadBalancer` | |
40+
| `service.loadBalancerClass` | Load balancer implementation to use when using service type `LoadBalancer` | |
4041
| `service.clusterIP` | The IP address to use when using serviceType `ClusterIP`. Randomly chosen by Kubernetes if not provided | |
4142
| `service.useTcp` | set this parameter to optionally expose the port on tcp as well as udp for the DNS protocol | `false` |
4243
| `replicaCount` | Number of replicas | `1` |
4344
| `zoneFiles` | Inject few custom zone files | `[]` |
4445
| `extraVolumes` | Add additional volumes to the workload (e.g., secrets) | `[]` |
45-
| `extraVolumeMounts` | Define extra volume mounts for the workload containers (e.g., secrets) | `[]` |
46+
| `extraVolumeMounts` | Define extra volume mounts for the workload containers (e.g., secrets) | `[]` |

charts/k8s-gateway/templates/service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ spec:
2020
selector:
2121
{{- include "k8s-gateway.selectorLabels" . | nindent 6 }}
2222
type: {{ .Values.service.type }}
23+
{{- if and .Values.service.loadBalancerClass (eq .Values.service.type "LoadBalancer") }}
24+
loadBalancerClass: {{ .Values.service.loadBalancerClass }}
25+
{{- end }}
2326
{{- if and .Values.service.loadBalancerIP (eq .Values.service.type "LoadBalancer") }}
2427
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
2528
{{- end }}

charts/k8s-gateway/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ service:
8080
labels: {}
8181
# nodePort: 30053
8282
# loadBalancerIP: 192.168.1.2
83+
# loadBalancerClass:
8384
# clusterIP: 10.43.0.53
8485
# externalTrafficPolicy: Local
8586
# externalIPs:

0 commit comments

Comments
 (0)