-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add config for packageserver wakeup interval #298
Add config for packageserver wakeup interval #298
Conversation
58cc928
to
436f5da
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #298 +/- ##
=======================================
Coverage 41.99% 41.99%
=======================================
Files 39 39
Lines 3505 3512 +7
=======================================
+ Hits 1472 1475 +3
- Misses 1887 1891 +4
Partials 146 146
☔ View full report in Codecov by Sentry. |
436f5da
to
a2a7792
Compare
The one thing missing here is validation; it gets parsed as a duration, but doesn't validate beforehand (i.e. no regex) |
Try |
@@ -43,6 +43,9 @@ spec: | |||
disableCopiedCSVs: | |||
description: DisableCopiedCSVs is used to disable OLM's "Copied CSV" feature for operators installed at the cluster scope, where a cluster scoped operator is one that has been installed in an OperatorGroup that targets all namespaces. When reenabled, OLM will recreate the "Copied CSVs" for each cluster scoped operator. | |||
type: boolean | |||
packageServerWakeupInterval: |
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.
Would packageServerPeriodicSyncInterval
be more appropriate?
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.
It's called wakeupInterval in the code... but I really don't care.
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.
"Periodic" and "Interval" are redundant. So, perhaps just "packageServerSyncInterval"?
While this config is on olmconfig api which users choose to do this, I still feel a bit concerned that if they set this duration too longer (either intentionally or accidentally), the catalog data in package server is gonna be stale for a long time. I wonder if there is a way to validate and warn against this. Having said that, this should only impact the consumer of packageserver which is console at the moment. This shouldn’t impact the runtime resolution which is more important. |
a2a7792
to
80d0f1c
Compare
I found this, and reduced it (before @dinhxuanvu even said anything) to limit it to hours/minutes/seconds. |
I can live with hours restrictions. At least that will allow daily update of catalog content. |
There's no limit to the number before the hours, so it could be e.g. |
Signed-off-by: Todd Short <todd.short@me.com>
80d0f1c
to
9274a37
Compare
I’m aware of that but it’s unlikely that they mistakenly add that big of a number though it could still be a typo. That at least reduces the risk of having days of waiting if we allow days or beyond. I would prefer to restrict it to mins only but then that may sound too restrictive. I think this is reasonable compromise. |
It seemed telcos wanted to increase the period to days, and this is meant for IoT-type devices (which again, they may want to update reasonably quickly). |
Given this is for single-node/telco/LP usage, I wonder if their intention is to suppress the packageserver as much as possible because they simply don't use console at all. Deploying via CLI is usually more common then point-and-click console for these types of deployments. If that is the case then frankly I don't care as much about safeguarding this feature given packageserver has nothing to do with runtime catalog update. |
ping for approval/lgtm? |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dinhxuanvu, tmshort The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I approved this but will need a secondary person to lgtm. |
/lgtm |
@dinhxuanvu why? |
7961b02
into
operator-framework:master
Usually we require two separate people to review and thumb up on the PR especially involving an API change at least that's how we worked back in my time. I'm still following that rule. That's why I didn't approve and lgtm at the same time. Plus, I wanted other people to have a chance to block this PR if they didn't agree with me. |
No description provided.