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
Check for Namespace level config override annotations #3194
Conversation
Thanks @Pothulapati, this looks and works great 👍 Could you add somewhere a test case that verifies this kind of override? Could be for example in in |
5583ad8
to
9f42ac2
Compare
@alpeb Added Both Unit and Integration tests :) |
Thanks for adding that @Pothulapati
|
Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
9f42ac2
to
62c5eab
Compare
Ah! I was running the test induvidually and it was working! The problem is that, the test also uses the same Changed the namespace name and it should work together with other tests. |
@Pothulapati Now I'm getting
|
Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Tarun! Integration tests are passing now for me 🥇
Followup to #3194 The namespace was too long for l5d-bot: ``` inject_test.go:117: failed to create l5d-integration-auto-git-9688d9ba-inject-namespace-override-test namespace: Namespace "l5d-integration-auto-git-9688d9ba-inject-namespace-override-test" is invalid: metadata.name: Invalid value: "l5d-integration-auto-git-9688d9ba-inject-namespace-override-test": must be no more than 63 characters ``` Signed-off-by: Alejandro Pedraza <alejandro@buoyant.io>
Followup to #3194 The namespace was too long for l5d-bot: ``` inject_test.go:117: failed to create l5d-integration-auto-git-9688d9ba-inject-namespace-override-test namespace: Namespace "l5d-integration-auto-git-9688d9ba-inject-namespace-override-test" is invalid: metadata.name: Invalid value: "l5d-integration-auto-git-9688d9ba-inject-namespace-override-test": must be no more than 63 characters ``` Signed-off-by: Alejandro Pedraza <alejandro@buoyant.io>
Fixes #2499
This PR makes the
proxy-injector
check for Namespace Level Override Config annotations after checking the Pod level override config annotations before going with the default values.I tried with a Cluster and it considers the annotations of the namespace before going with the defaults.
@ihcsim @grampelberg
Signed-off-by: Tarun Pothulapati tarunpothulapati@outlook.com