Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strict decoding error: unknown field "spec.defaultBackendService" #311

Open
fluffy-cakes opened this issue Nov 13, 2024 · 4 comments
Open

Comments

@fluffy-cakes
Copy link

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
Copy link
Author

bump ✊🏼

2 similar comments
@fluffy-cakes
Copy link
Author

bump ✊🏼

@fluffy-cakes
Copy link
Author

bump ✊🏼

@sabbour
Copy link

sabbour commented Feb 14, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants