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

value of providers.kubernetesingress.ingressendpoint.publishedservice not correct when overriding namespace #1289

Open
2 tasks done
piximos opened this issue Dec 26, 2024 · 0 comments

Comments

@piximos
Copy link

piximos commented Dec 26, 2024

Welcome!

  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What version of the Traefik's Helm Chart are you using?

7.7.11

What version of Traefik are you using?

v3.2.2

What did you do?

While configuring a local environment, I created a monolithic helm chart that imports and configures dependencies where traefik is one.
I set the namespaceOverride config to traefik. All resources deployed to the traefik namespace except for value of the --providers.kubernetesingress.ingressendpoint.publishedservice arg where it was default/local-traefik where default is the helm installation namespace and not the one for traefik.

What did you see instead?

I expected for the value of --providers.kubernetesingress.ingressendpoint.publishedservice to have the namespace I specified traefik/local-traefik

What is your environment & configuration?

I ran a Minikube and deployed helm chart with the following:

# file: Chart.yaml

#...

dependencies:
  - name: argo-cd
    repository: https://argoproj.github.io/argo-helm
    version: 7.7.11
    alias: argo-cd
    condition: argo-cd.deploy
#...
# file: Values.yaml
#...

traefik:
  namespaceOverride: traefik
  deploy: true
  ports:
    traefik:
      expose:
        default: true
  service:
    type: NodePort

#...

Then I ran: helm install local . -n default

Additional Information

I believe the issue is due to line 102 in `_helpers.tpl` where instead of being:


{{- $defServiceName := printf "%s/%s" .Release.Namespace (include "traefik.fullname" .) -}}


it should be:


{{- $defServiceName := printf "%s/%s" (include "traefik.namespace" .) (include "traefik.fullname" .) -}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant