-
Notifications
You must be signed in to change notification settings - Fork 383
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
Cache secret info #2168
base: master
Are you sure you want to change the base?
Cache secret info #2168
Conversation
Signed-off-by: Justin Abrahms <[email protected]>
…ve method Signed-off-by: Justin Abrahms <[email protected]>
Signed-off-by: Justin Abrahms <[email protected]>
… is what we're after? Signed-off-by: Justin Abrahms <[email protected]>
6ca08d3
to
6d809a8
Compare
Hi. The provider can be tested in and out of cluster. For quick local testing/outside a k8s cluster: In cluster: Hope this helps! |
Thanks @anagarlau, that's helpful. When I run locally, I get linting errors unrelated to my code when running
|
Hi, as far as I can tell the errors are related to running the wrong linter version. Until then you could copy this line in your Makefile/override the variable in the file in the cli to ensure your linter is in sync with the checks ( let me know if you have additional questions :) |
obs.ConnectionDetails = managed.ConnectionDetails{ | ||
xpv1.ResourceCredentialsSecretEndpointKey: []byte( | ||
strings.Join(nodes, ","), | ||
), | ||
} |
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.
I think we should keep a single "default" endpoint and and keep the other endpoints in seperate keys, maybe endpoint2
, endpoint3
or add a second key endpoints
with the joined endpoints string.
|
||
"github.com/aws/aws-sdk-go-v2/aws" | ||
elasticacheservice "github.com/aws/aws-sdk-go-v2/service/elasticache" | ||
xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" | ||
"github.com/crossplane-contrib/provider-aws/pkg/utils/pointer" |
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 import does not seem to be used anywhere.
Description of your changes
As best I can tell, we're not actually storing anything relevant in the ExternalObservation struct, so we end up with a secret with zero bytes.
I didn't actually see Endpoint in the underlying observer object. There were a list of cache nodes. I don't think this is a solution to all of the problems, but I hope this is a step in the right direction.
Refs #2167
I have:
make reviewable test
to ensure this PR is ready for review.That ^^ isn't a valid command
How has this code been tested
I've not tested this. I'm not clear how. I'm actively seeking help and understanding here. I'm even open to running this in my dev cluster if there's a reasonable process to do that.