Skip to content

Commit 116c108

Browse files
authored
feat: add default ingressclass annotation ✨ (#2756)
* feat: add default ingressclass annotation ✨ * bump version and add docs * modify according to peer review
1 parent 6c706b0 commit 116c108

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

helm/aws-load-balancer-controller/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: aws-load-balancer-controller
33
description: AWS Load Balancer Controller Helm chart for Kubernetes
4-
version: 1.4.4
4+
version: 1.4.5
55
appVersion: v2.4.3
66
home: https://github.com/aws/eks-charts
77
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png

helm/aws-load-balancer-controller/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,3 +249,4 @@ The default values set by the application itself can be confirmed [here](https:/
249249
| `serviceMonitor.namespace` | Namespace in which Prometheus is running | None |
250250
| `clusterSecretsPermissions.allowAllSecrets` | If `true`, controller has access to all secrets in the cluster. | `false` |
251251
| `controllerConfig.featureGates` | set of `key: value` pairs that describe AWS load balance controller features | `{}` |
252+
| `ingressClassConfig.default` | If `true`, the ingressclass will be the default class of the cluster. | `false` |

helm/aws-load-balancer-controller/templates/ingressclass.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ items:
2626
name: {{ .Values.ingressClass }}
2727
labels:
2828
{{- include "aws-load-balancer-controller.labels" . | nindent 6 }}
29+
{{- if .Values.ingressClassConfig.default }}
30+
annotations:
31+
ingressclass.kubernetes.io/is-default-class: "true"
32+
{{- end }}
2933
spec:
3034
controller: ingress.k8s.aws/alb
3135
{{- if or .Values.ingressClassParams.name (and .Values.ingressClassParams.create .Values.ingressClassParams.spec) }}

helm/aws-load-balancer-controller/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,3 +324,7 @@ clusterSecretsPermissions:
324324
# allowAllSecrets allows the controller to access all secrets in the cluster.
325325
# This is to get backwards compatible behavior, but *NOT* recommended for security reasons
326326
allowAllSecrets: false
327+
328+
# ingressClassConfig contains configurations specific to the ingress class
329+
ingressClassConfig:
330+
default: false

0 commit comments

Comments
 (0)