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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LogRetentionInDays update to update-cluster-logging command #5404

Conversation

Skarlso
Copy link
Contributor

@Skarlso Skarlso commented Jun 13, 2022

Description

Closes #5294

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, or the userdocs directory)
  • Manually tested
  • Made sure the title of the PR is a good description that can go into the release notes
  • (Core team) Added labels for change area (e.g. area/nodegroup) and kind (e.g. kind/improvement)

BONUS POINTS checklist: complete for good vibes and maybe prizes?! 馃く

  • Backfilled missing tests for code in same general area 馃帀
  • Refactored something and made the world a better place 馃専

@Skarlso Skarlso added the kind/feature New feature or request label Jun 13, 2022
@Skarlso
Copy link
Contributor Author

Skarlso commented Jun 13, 2022

Question:

This is only possible together if some kind of logging is enabled with it. So you can't just update the log retention period only together with something that is being enabled.

My suggestion is to lift this restriction and make it possible to update just the log retention period without having to enable/disable a log type.

Upon thinking about this, they will have to define logging types that are already enabled anyways. So this is fine. :)

Copy link
Collaborator

@Himangini Himangini left a comment

Choose a reason for hiding this comment

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

馃憤馃徎

@Skarlso Skarlso merged commit 18b788a into eksctl-io:main Jun 13, 2022
@fredcooke
Copy link

This is good - it'd be great it it could be configured in the yaml configuration side by side with the enabling of the types, though.

@cPu1
Copy link
Collaborator

cPu1 commented Jun 21, 2022

This is good - it'd be great it it could be configured in the yaml configuration side by side with the enabling of the types, though.

It can be enabled in the ClusterConfig file. Here's an example.

@fredcooke
Copy link

@cPu1 thank you very much! I rolled that out earlier and it's nice to have it documented even if it doesn't take retrospective effect. :-)

@kishoregv
Copy link
Contributor

Currently, eksctl is only updating the log retention days only if there is any change on the log types that are enabled or disabled.

It would be nice if log retention days is idempotently updated regardless of change in the log types.

@Skarlso
Copy link
Contributor Author

Skarlso commented Aug 17, 2022

@kishoregv hi.

See this comment:
#5404 (comment)

Basically, you'll have to change something together with enabling or disabling logging. You can't define it on its own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] eksctl utils update-cluster-logging should respect logRetentionInDays
5 participants