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 · 2 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 ✊🏼

1 similar comment
@fluffy-cakes
Copy link
Author

bump ✊🏼

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

1 participant