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

feat: ✨ add support for traefik v3.0.0-beta3 and openTelemetry #872

Merged
merged 18 commits into from
Jul 26, 2023

Conversation

davhdavh
Copy link
Contributor

What does this PR do?

  • feat: ✨ better support for traefik v3 (beta2 and earlier no longer supported, use beta3+)
  • feat: add support for openTelemetry tracing for traefik v3
  • feat: add support for serverstransporttcps crd in traefik v3
  • fix: no longer listen on obsolete crds for traefik v3

@davhdavh
Copy link
Contributor Author

davhdavh commented Jun 27, 2023

FYI, beta3 complains alot in logs, and thus this fix is pretty critical

	2023-06-27 15:42:28.547	
E0627 08:42:28.546928       1 reflector.go:140] k8s.io/[email protected]/tools/cache/reflector.go:169: Failed to watch *v1alpha1.ServersTransportTCP: failed to list *v1alpha1.ServersTransportTCP: serverstransporttcps.traefik.io is forbidden: User "system:serviceaccount:default:traefik" cannot list resource "serverstransporttcps" in API group "traefik.io" at the cluster scope
	
	
2023-06-27 15:42:28.546	
W0627 08:42:28.546904       1 reflector.go:424] k8s.io/[email protected]/tools/cache/reflector.go:169: failed to list *v1alpha1.ServersTransportTCP: serverstransporttcps.traefik.io is forbidden: User "system:serviceaccount:default:traefik" cannot list resource "serverstransporttcps" in API group "traefik.io" at the cluster scope
	
	
2023-06-27 15:41:44.721	
E0627 08:41:44.719794       1 reflector.go:140] k8s.io/[email protected]/tools/cache/reflector.go:169: Failed to watch *v1alpha1.ServersTransportTCP: failed to list *v1alpha1.ServersTransportTCP: serverstransporttcps.traefik.io is forbidden: User "system:serviceaccount:default:traefik" cannot list resource "serverstransporttcps" in API group "traefik.io" at the cluster scope

README.md Outdated Show resolved Hide resolved
traefik/Changelog.md Outdated Show resolved Hide resolved
traefik/templates/_podtemplate.tpl Outdated Show resolved Hide resolved
@mloiseleur mloiseleur changed the title Fixes for traefik v3 feat: add support for traefik v3.0.0-beta3 Jun 27, 2023
@mloiseleur mloiseleur changed the title feat: add support for traefik v3.0.0-beta3 feat: ✨ add support for traefik v3.0.0-beta3 and openTelemetry Jun 27, 2023
@mloiseleur
Copy link
Contributor

@davhdavh Many thanks for your interest in this new (beta) version and this good PR.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@mloiseleur mloiseleur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Tests looks good.
I left other comments about README and CRDs.

@davhdavh
Copy link
Contributor Author

davhdavh commented Jul 4, 2023

@mloiseleur Are there other things you need before merging?

@davhdavh
Copy link
Contributor Author

@mloiseleur Did you have time to take a look again?

Copy link
Contributor

@darkweaver87 darkweaver87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@darkweaver87
Copy link
Contributor

darkweaver87 commented Jul 12, 2023

@mloiseleur Did you have time to take a look again?

Thanks for contributing @davhdavh. This PR needs @mloiseleur's approval and he'll back on july the 21th :-)

@mloiseleur
Copy link
Contributor

Since Traefik v3 and Traefik v2 does not support the same set of CRDs, I'm not sure if we should go this way. I need to think of it a bit more.

@davhdavh
Copy link
Contributor Author

IMHO that problem belongs upstream and you can just do the best possible and add the CRDs so all versions are supported

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@mloiseleur
Copy link
Contributor

@davhdavh You can test locally with make test

Copy link
Contributor

@mloiseleur mloiseleur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are fixed with 73bcd18

Copy link
Contributor

@darkweaver87 darkweaver87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@traefiker traefiker merged commit 80b5c06 into traefik:master Jul 26, 2023
1 check passed
@prometheanfire

This comment was marked as off-topic.

@prometheanfire

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants