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

Add traefik prefix to k8s annotations #3682

Merged
merged 1 commit into from Jul 31, 2018
Merged

Conversation

zifeo
Copy link
Contributor

@zifeo zifeo commented Jul 26, 2018

What does this PR do?

Documentation: fix missing traefik prefix in k8s authentification annotations.

Motivation

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

Likely to have other occurences. I can update this PR to change all of them.
However I need to be clear which annotations requires traefik in front of them beforehand.

@yue9944882
Copy link
Contributor

hi @zifeo both forms are supported😃

- `ingress.kubernetes.io/auth-type: "basic"`
- `ingress.kubernetes.io/auth-secret: "mysecret"`
- `traefik.ingress.kubernetes.io/auth-type: "basic"`
- `traefik.ingress.kubernetes.io/auth-secret: "mysecret"`
Copy link
Contributor

Choose a reason for hiding this comment

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

#2819 :) FYI

Copy link
Contributor

@timoreimann timoreimann left a comment

Choose a reason for hiding this comment

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

If we have an inconsistent usage across the examples (can't check right now), we can use this PR to get things straight. But as @yue9944882 explained, the semantics don't change regardless of whether the prefix is attached or not.

@zifeo
Copy link
Contributor Author

zifeo commented Jul 27, 2018

@yue9944882 I believed so, however I was able to make it work without them in a RBAC cluster.

@yue9944882
Copy link
Contributor

@zifeo sry i didn't follow. is it related with RBAC?

@zifeo
Copy link
Contributor Author

zifeo commented Jul 27, 2018

@yue9944882 Not sure, but I definitely lost 1+ hour trying to having it work. The prefix were the issue in my case.

@dtomcej
Copy link
Contributor

dtomcej commented Jul 27, 2018

@zifeo Can you rebase this off of 1.7, so that we can make sure this is included in the 1.7 release?

@zifeo
Copy link
Contributor Author

zifeo commented Jul 27, 2018

@dtomcej Done!

Copy link
Contributor

@dtomcej dtomcej left a comment

Choose a reason for hiding this comment

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

LGTM
:shipit:

Copy link
Member

@mmatur mmatur left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

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

LGTM

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

Successfully merging this pull request may close these issues.

None yet

7 participants