-
Notifications
You must be signed in to change notification settings - Fork 17
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
Implement Loki curator #85
Conversation
416bebf
to
1fa5933
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.
Some comments as first round of reviews.
Thanks for the comments, will address them today |
1fa5933
to
630748a
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.
Do not push build artifacts to the repository, I mean the file build/curator
630748a
to
906d0a7
Compare
906d0a7
to
feee2c3
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.
Some minor nits.
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.
Please, update also the .gitignore file together with this PR and remove the binary build/curator.
You can see good examples how to do it gardener-attic/gardenctl#488 and gardener-attic/gardenctl#491.
/ping @vpnachev |
MinFreePercentages int `yaml:"MinFreePercentages,omitempty"` | ||
TargetFreePercentages int `yaml:"TargetFreePercentages,omitempty"` | ||
PageSizeForDeletionPercentages int `yaml:"PageSizeForDeletionPercentages,omitempty"` |
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.
Hm, how is omitempty
working with int
?
It is better to use *int
which allow to properly differ between unset value nil
and zero value 0
.
On the other side, I see these values are required, thus you can make them mandatory and keep them as int
.
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.
omitempty for int will check if the given field is not in its default state (e.g. 0 for int).
/author-action |
@Kristian-ZH The pull request was assigned to you under |
18fe18a
to
606ceb6
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
606ceb6
to
ad0f8b0
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
@@ -1,13 +1,23 @@ | |||
############# builder ############# | |||
FROM golang:1.14.2 AS builder | |||
FROM golang:1.15.7 AS builder |
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.
There is some other places where golang image is also used, e.g.
logging/.ci/pipeline_definitions
Line 23 in c4a3498
image: 'golang:1.14.2' |
How to categorize this PR?
/kind enhancement
/area logging
/priority normal
What this PR does / why we need it:
Add new Loki curator which will ensure that Loki's inodes and Storage limits are not reached.
The curator is entirely configured from a configuration file whose path is provided via curator's
config
flag.Which issue(s) this PR fixes:
#72
Special notes for your reviewer:
@vlvasilev
Release note: