aks-app-routing-operator icon indicating copy to clipboard operation
aks-app-routing-operator copied to clipboard

strict decoding error: unknown field "spec.defaultBackendService"

Open fluffy-cakes opened this issue 1 year ago • 5 comments

According to the docs I should be able to set the defaultBackendService settings, but I am prompted with an error:

Error from server (BadRequest): error when creating ".\\testnginxcontroller.yml": NginxIngressController in version "v1alpha1" cannot be handled as a NginxIngressController: strict decoding error: unknown field "spec.defaultBackendService"

I have tried editing the original Nginxingresscontrollers and creating my own as a test; neither work.

apiVersion: approuting.kubernetes.azure.com/v1alpha1
kind: NginxIngressController
metadata:
  name: asdf
spec:
  controllerNamePrefix: asdf
  ingressClassName: webapprouting.kubernetes.azure.com
  loadBalancerAnnotations:
    service.beta.kubernetes.io/azure-load-balancer-internal: "true"
  defaultBackendService:
    name: nginx
    namespace: app-routing-system

Looking at the schema, this should be possible: https://github.com/Azure/aks-app-routing-operator/blob/main/config/crd/bases/approuting.kubernetes.azure.com_nginxingresscontrollers.yaml

fluffy-cakes avatar Nov 13 '24 05:11 fluffy-cakes

bump ✊🏼

fluffy-cakes avatar Dec 03 '24 23:12 fluffy-cakes

bump ✊🏼

fluffy-cakes avatar Dec 12 '24 23:12 fluffy-cakes

bump ✊🏼

fluffy-cakes avatar Dec 26 '24 22:12 fluffy-cakes

The release of the app-routing-operator with this functionality hasn't rolled out yet. This is an error in docs. I will update the docs to include a reference to which functionality is available for which version of Kubernetes.

sabbour avatar Feb 14 '25 23:02 sabbour

Is there an ETA on this functionality? Together with https://github.com/Azure/aks-app-routing-operator/issues/168 is blocking in our case to switch to this add-on.

marcoboffi avatar Apr 01 '25 15:04 marcoboffi