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

Adding MultiMatch and NoWorkloadFound validations to PeerAuthentication #2808

Merged
merged 5 commits into from May 29, 2020

Conversation

xeviknal
Copy link
Member

@xeviknal xeviknal commented May 20, 2020

Adding MultiMatch and NoWorkloadFound validations to PeerAuthentication. Both validations has been moved to a common place just to better reuse the code. The validations are quite standard since the "workloadSelector" field is quite standard within Istio CRDs.

Related to #2086

Needs documentation PR: kiali/kiali.io#240

Yamls to reproduce errors:

@xeviknal xeviknal self-assigned this May 20, 2020
@xeviknal xeviknal added this to In Review in Sprint 40 via automation May 20, 2020
@xeviknal xeviknal added the docs It requires changes on kiali.io label May 20, 2020
@hhovsepy hhovsepy self-requested a review May 20, 2020 17:09
hhovsepy
hhovsepy previously approved these changes May 21, 2020
Copy link
Contributor

@hhovsepy hhovsepy left a comment

Choose a reason for hiding this comment

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

Verified with auto mtls enabled and disabled:
Screenshot from 2020-05-21 09-45-37
Screenshot from 2020-05-21 09-47-14
Screenshot from 2020-05-21 09-48-27
Screenshot from 2020-05-21 10-18-39

@xeviknal xeviknal requested a review from lucasponce May 21, 2020 08:54
@lucasponce lucasponce removed this from In Review in Sprint 40 May 21, 2020
@lucasponce lucasponce added this to In Review in Sprint 40 via automation May 21, 2020
return s.HasWorkloadSelectorLabels()
}

func getLabels(first, second string, s kubernetes.IstioObject) map[string]string {
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor one.
I have started to add more comments in the helpers methods in my PRs as well.
Basically for me, but also it helps others to get more clarity and reduce ambiguity what this helper was necessary.

If you can get a couple of comments about that "first, second" means, perhaps it helps reviewer to not enter in the implementation detail to get it.

@xeviknal
Copy link
Member Author

@lucasponce comments approached.
I have doubts regarding adding this to 1.18. This is a new feature, not a bugfix. So it is not mandatory. However, it is a nice to have because it adds feature to the new objects added. wdyt?

Copy link
Contributor

@lucasponce lucasponce left a comment

Choose a reason for hiding this comment

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

LGTM comments approached, QE tested in detailed.

@lucasponce lucasponce merged commit 1156401 into kiali:master May 29, 2020
Sprint 40 automation moved this from In Review to Done May 29, 2020
@ghost ghost added this to the v1.19.0 milestone May 29, 2020
@xeviknal xeviknal deleted the kiali-2086 branch May 29, 2020 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs It requires changes on kiali.io
Projects
No open projects
Sprint 40
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants