-
Notifications
You must be signed in to change notification settings - Fork 132
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
ElastiCache ReplicationGroup auth token generation and connection details #1322
ElastiCache ReplicationGroup auth token generation and connection details #1322
Conversation
@chlunde i am interested too in this PR - do you need help to finish ? |
Cool, I will try to fix it tonight, I will let you know if there's some issue I need help wit (except for review and approval) 😀 |
…he ReplicationGroup Signed-off-by: Carl Henrik Lunde <[email protected]>
@haarchri I pushed again now. I changed the example region to us-east-1 and added a VPC to get a complete example. The existing region has only two az-s per account so it's not good for examples. I'm a bit confused as I don't remember getting an error about needing a VPC to use auth tokens the last time I tested, but now I do. This is why I added a VPC to the example. |
|
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.
Hi @chlunde,
Thank you for taking care of this. Left some comments for discussion. The most critical one is the error handling comment.
// +kubebuilder:validation:Optional | ||
AuthTokenSecretRef *v1.SecretKeySelector `json:"authTokenSecretRef,omitempty" tf:"-"` | ||
|
||
// Strategy to use when updating the auth_token. Valid values are SET, ROTATE, and DELETE. Defaults to ROTATE. | ||
// +kubebuilder:validation:Optional | ||
AuthTokenUpdateStrategy *string `json:"authTokenUpdateStrategy,omitempty" tf:"auth_token_update_strategy,omitempty"` | ||
|
||
// Password used to access a password protected server. Can be specified only if transit_encryption_enabled = true. |
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:
// Password used to access a password protected server. Can be specified only if transit_encryption_enabled = true. |
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 is the same for similar field for RDS Instance, at the moment I don't know where the code that prepends this string is 🤔
// If true, the auth token will be auto-generated and stored in the Secret referenced by the authTokenSecretRef field. | ||
// +upjet:crd:field:TFTag=- | ||
// +kubebuilder:validation:Optional | ||
AutoGenerateAuthToken *bool `json:"autoGenerateAuthToken,omitempty" tf:"-"` |
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: In theory, we could also support auto token generation for the spec.initProvider
API for completeness. But we do not need to do this in this PR as I don't expect it to be a real use case.
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 do the same every place common.PasswordGenerator is used then (in another PR)
/test-examples="examples/elasticache/v1beta2/replicationgroup.yaml" |
Hi @chlunde, thank you for your effort in this PR. The |
… error handling From code review Signed-off-by: Carl Henrik Lunde <[email protected]>
/test-examples="examples/elasticache/v1beta2/replicationgroup.yaml" |
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.
Thanks a lot @chlunde, LGTM.
Description of your changes
Fixes #1102
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.How has this code been tested
Uptest run: https://github.com/crossplane-contrib/provider-upjet-aws/actions/runs/9397299773