-
Notifications
You must be signed in to change notification settings - Fork 139
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 SecretKeyReference
comparison functions to pkg/compare
#84
Add SecretKeyReference
comparison functions to pkg/compare
#84
Conversation
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.
@a-hilaly very cool! I have a few changes to request inline but this is a great start!
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.
How are we doing on this one, @a-hilaly?
224f1fc
to
3dcf440
Compare
pkg/compare/secret_key_reference.go
Outdated
@@ -0,0 +1,103 @@ | |||
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. |
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.
nit: Rename this file. Maybe we could move it under pkg/compare/secrets/reference.go
? Then when we do value comparison that can go under value.go
?
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.
This comment still stands. The file is named pkg/compare/reference.go
, it is not clear that it involves secrets.
@a-hilaly how we doing on this one? |
3dcf440
to
4180d7a
Compare
@RedbackThomson @jaypipes updated the PR pleasr retake a look |
Issue aws-controllers-k8s/community#1239 Currently the code generator doesn't correctly generate delta comparison functions for secret fields, because the runtime doesn't contain any helper functions that can help in computing the delta of `SecretKeyReference` and `SecretKeyReference` slices. This patch adds two functions to help comparing two instance or slices of `SecretKeyReference`. `SliceSecretKeyReferenceEqual` also return two arrays containing the added and removed list of secret key references.
4180d7a
to
d868886
Compare
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: A-Hilaly, RedbackThomson The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Issue aws-controllers-k8s/community#1239
Currently, the code generator doesn't correctly generate delta comparison
functions for secret fields, because the runtime doesn't contain any
helper functions that can help in computing the delta of
SecretKeyReference
andSecretKeyReference
slices.This patch adds two functions to help compare two instances or slices
of
SecretKeyReference
.By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license.