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

Traefik producing error validating data: ValidationError(IngressRoute.spec.tls.options): missing required field "name" in us.containo.traefik.v1alpha1.IngressRoute.spec.tls.options #8950

Closed
3 tasks done
jonashackt opened this issue Mar 31, 2022 · 1 comment · Fixed by #8951
Assignees
Labels
bug Something isn't working documentation Issue is related to missing or incorrect documentation

Comments

@jonashackt
Copy link
Contributor

jonashackt commented Mar 31, 2022

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

Traefik producing error error validating data: ValidationError(IngressRoute.spec.tls.options): missing required field "name" in us.containo.traefik.v1alpha1.IngressRoute.spec.tls.options applying ArgoCD docs IngressRoute CRD from https://argo-cd.readthedocs.io/en/stable/operator-manual/ingress/#ingressroute-crd

To Reproduce

Simply apply ArgoCD docs IngressRoute CRD from https://argo-cd.readthedocs.io/en/stable/operator-manual/ingress/#ingressroute-crd

For later reference, here's the full CRD from the docs:

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: argocd-server
  namespace: argocd
spec:
  entryPoints:
    - websecure
  routes:
    - kind: Rule
      match: Host(`argocd.example.com`)
      priority: 10
      services:
        - name: argocd-server
          port: 80
    - kind: Rule
      match: Host(`argocd.example.com`) && Headers(`Content-Type`, `application/grpc`)
      priority: 11
      services:
        - name: argocd-server
          port: 80
          scheme: h2c
  tls:
    certResolver: default
    options: {}

Expected behavior

kubectl should produce expected ingressroute.traefik.containo.us/argocd-server configured.

Version

$ argocd version
argocd: v2.3.0+fe42780.dirty
  BuildDate: 2022-03-07T05:19:43Z
  GitCommit: fe427802293b090f43f91f5839393174df6c3b3a
  GitTreeState: dirty
  GoVersion: go1.17.8
  Compiler: gc
  Platform: darwin/amd64
argocd-server: v2.3.1+b65c169

Logs

$ kubectl apply -f ingress/argocd-dashboard.yml
error: error validating "ingress/argocd-dashboard.yml": error validating data: ValidationError(IngressRoute.spec.tls.options): missing required field "name" in us.containo.traefik.v1alpha1.IngressRoute.spec.tls.options; if you choose to ignore these errors, turn validation off with --validate=false
@iam-veeramalla
Copy link
Member

Hi @jonashackt , Thanks for the issue and pull request. I have assigned this issue to you. Hope you are okay with it :)

@iam-veeramalla iam-veeramalla added the documentation Issue is related to missing or incorrect documentation label Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Issue is related to missing or incorrect documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants