Skip to content

Commit

Permalink
Ingress Class: Align to upstream. (#377)
Browse files Browse the repository at this point in the history
* Ingress Class: Align to upstream.

* Ingress Class: Add `controller.ingressClass`.
  • Loading branch information
Gacko committed Nov 10, 2022
1 parent 1d8fe0e commit 2b976c7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ and this project's packages adheres to [Semantic Versioning](http://semver.org/s
- Webhook: Add `controller.admissionWebhooks.service.externalIPs`.
- Webhook: Add `controller.admissionWebhooks.service.loadBalancerIP`.
- Webhook: Add `controller.admissionWebhooks.service.loadBalancerSourceRanges`.
- Ingress Class: Align to upstream. ([#377](https://github.com/giantswarm/nginx-ingress-controller-app/pull/377))
- Ingress Class: Add `controller.ingressClass`.

### Changed

Expand All @@ -32,7 +34,7 @@ and this project's packages adheres to [Semantic Versioning](http://semver.org/s
- HPA: Swap CPU & memory block.
- HPA: Disable when KEDA is enabled.
- Admission Webhooks: Align from upstream. ([#370](https://github.com/giantswarm/nginx-ingress-controller-app/pull/370))
- Ingress Class: Align from upstream. ([#371](https://github.com/giantswarm/nginx-ingress-controller-app/pull/371))
- Ingress Class: Align from upstream. ([#371](https://github.com/giantswarm/nginx-ingress-controller-app/pull/371), [#374](https://github.com/giantswarm/nginx-ingress-controller-app/pull/374), [#377](https://github.com/giantswarm/nginx-ingress-controller-app/pull/377))
- Helpers: Rename `labels.selector` to `ingress-nginx.selectorLabels`. ([#372](https://github.com/giantswarm/nginx-ingress-controller-app/pull/372))
- PDB: Align from upstream. ([#373](https://github.com/giantswarm/nginx-ingress-controller-app/pull/373))
- Webhook: Align to upstream. ([#374](https://github.com/giantswarm/nginx-ingress-controller-app/pull/374))
Expand Down
6 changes: 6 additions & 0 deletions helm/nginx-ingress-controller-app/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@
}
}
},
"ingressClass": {
"type": "string"
},
"ingressClassByName": {
"type": "boolean"
},
Expand All @@ -298,6 +301,9 @@
},
"name": {
"type": "string"
},
"parameters": {
"type": "object"
}
}
},
Expand Down
22 changes: 15 additions & 7 deletions helm/nginx-ingress-controller-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,12 @@ controller:
# Example value: "default/foo-tls".
defaultSSLCertificate: ""

# controller.ingressClassByName
# Process IngressClass per name (additionally as per spec.controller).
# -- Process Ingress objects without ingressClass annotation/ingressClassName field
# Overrides value for --watch-ingress-without-class flag of the controller binary
# Defaults to false
watchIngressWithoutClass: false

# -- Process IngressClass per name (additionally as per spec.controller).
ingressClassByName: false

## This section refers to the creation of the IngressClass resource
Expand All @@ -319,6 +323,15 @@ controller:
# -- Controller-value of the controller that is processing this ingressClass
controllerValue: "k8s.io/ingress-nginx"

# -- Parameters is a link to a custom resource containing additional
# configuration for the controller. This is optional if the controller
# does not require extra parameters.
parameters: {}

# -- For backwards compatibility with ingress.class annotation, use ingressClass.
# Algorithm is as follows, first ingressClassName is considered, if not present, controller looks for ingress.class annotation
ingressClass: nginx

# controller.userID
# The userID that the container will run as. 101 is the www-data user.
userID: 101
Expand Down Expand Up @@ -560,11 +573,6 @@ controller:
# --disable-svc-external-name flag
disableExternalNameForwarding: true

# Process Ingress objects without ingressClass annotation/ingressClassName field
# Overrides value for --watch-ingress-without-class flag of the controller binary
# Defaults to false
watchIngressWithoutClass: false

# This configuration defines if Ingress Controller should allow users to set
# their own *-snippet annotations, otherwise this is forbidden / dropped
# when users add those annotations.
Expand Down

0 comments on commit 2b976c7

Please sign in to comment.