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

Dont attempt to create '*' namespace #382

Merged
merged 3 commits into from
Nov 6, 2020
Merged

Conversation

thisisnotashwin
Copy link
Contributor

@thisisnotashwin thisisnotashwin commented Nov 5, 2020

Changes proposed in this PR:

  • Do not attempt to create a wildcard namespace when verifying if it exists
    Interestingly, the consul API does not return * namespace in a get request. This leads to us attempting to create the namespace when * is provided as a destination namespace for service intentions. This PR ensures we do not attempt to create the namespace when provided.

How I've tested this PR:

  • Unit tests
  • Created an image which i deployed with consul-helm and tried to create a service intention where the destination intention was "*"

How I expect reviewers to test this PR:

  • Code Review

Checklist:

  • Tests added
  • CHANGELOG entry added (HashiCorp engineers only, community PRs should not add a changelog entry)

@thisisnotashwin thisisnotashwin requested review from lkysow, a team and kschoche and removed request for a team November 5, 2020 22:20
Copy link
Contributor

@kschoche kschoche left a comment

Choose a reason for hiding this comment

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

Awesome work!

namespaces/namespaces_test.go Show resolved Hide resolved
Signed-off-by: Ashwin Venkatesh <ashwin@hashicorp.com>
Signed-off-by: Luke Kysow <luke@hashicorp.com>
@thisisnotashwin thisisnotashwin merged commit 32ade6c into master Nov 6, 2020
@thisisnotashwin thisisnotashwin deleted the wildcard-namespace branch November 6, 2020 19:38
ndhanushkodi pushed a commit to ndhanushkodi/consul-k8s that referenced this pull request Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants