Conversation
Use string-literal for reduce escaped quotes, which makes for easier grepping. While at it, also changed http -> https to keep some linters at bay. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 202907b) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 2f61620) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 6331a3a) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 0281541) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Also removed some newlines from t.Fatal() as they shouldn't be needed. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit c3d533f) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 4e69e16) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 0db4a32) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 96a1c44) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit ddec605) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 8400019) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 1da079f) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit fded42c) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit ec11aea) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
The commit befff0e inadvertendly disabled the error returned when trying to create an overlay network on a node which is not part of a Swarm cluster. Since commit e3708a8 the overlay netdriver returns the error: `no VNI provided`. This commit reinstate the original error message by checking if the node is a manager before calling libnetwork's `controller.NewNetwork()`. Signed-off-by: Albin Kerouanton <albinker@gmail.com> (cherry picked from commit 21dcbad) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
With this change, the API will now return a 403 instead of a 500 when trying to create an overlay network on a non-manager node. Signed-off-by: Albin Kerouanton <albinker@gmail.com> (cherry picked from commit d29240d) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Member
Author
|
@akerouanton ptal 🤗 |
akerouanton
approved these changes
Jul 17, 2023
Member
Author
|
Thx! Let me bring this one in 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backports:
related:
- What I did
1st commit:
libnet: Return proper error when overlay network can't be createdCommit befff0e (#44875) inadvertendly disabled the error returned when trying to create an overlay network on a node which is not part of a Swarm cluster.
Since commit e3708a8 (#44965) the overlay netdriver returns the error:
no VNI provided.This commit reinstates the original error message by checking if the node is a manager before calling libnetwork's
controller.NewNetwork().2nd commit:
libnet: Return a 403 when overlay network isn't allowedWith this change, the API will now return a 403 instead of a 500 when trying to create an overlay network on a non-manager node.
- How to verify it
- A picture of a cute animal (not mandatory but encouraged)