-
Notifications
You must be signed in to change notification settings - Fork 362
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
feat(cw): added cloudwatch loggroup #939
Conversation
8f26f10
to
49df9bd
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.
Looked through the code, looks good to me, but I don't have time to test it at the moment. I think the special case resetting the retention policy should be double checked on slack #dev or with owners.
// CustomLogGroupParameters contains the additional fields for LogGroup. | ||
type CustomLogGroupParameters struct { | ||
// The number of days to retain the log events in the specified log group. | ||
// To set a log group to never have log events expire, use DeleteRetentionPolicy |
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 see 0
is added as a special case for crossplane. Not sure if we have something similar elsewhere. I guess nil
causes issues with late init? Another option might be to use k8s intstr
and support "Forever"
or "Infinite"
?
I don't think this comment relevant in user facing docs exactly as it is written here: // To set a log group to never have log events expire, use DeleteRetentionPolicy
, but I do think it would be good to have a note about the special case w/ 0
and that this calls DeleteRetentionPolicy
.
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.
Fair enough i will Change the Description - my Idea was to use 0 Like Cloudwatch LogGroup in Terraform "If you select 0, the events in the log group are always retained and never expirex
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.
changed the description
Signed-off-by: haarchri <chhaar30@googlemail.com>
49df9bd
to
a25d604
Compare
Signed-off-by: haarchri chhaar30@googlemail.com
Description of your changes
added cloudwatch loggroup
why we need this:
/aws/eks/<cluster-name>/cluster
to setretentionInDays
and the option to delete the loggroup when eks controlplane is removedI have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested