-
Notifications
You must be signed in to change notification settings - Fork 36
feat: make startup probe configurable for the sidecar #511
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Tudor Golubenco <tudor@xata.io>
648271a
to
3ac6753
Compare
Considering two things:
Any opinions on this? Also would love other mantainers feedback |
Ah, interesting, I didn't notice that there is some sidecar resources configuration already possible, that is good to know. I see now that it is on the ObjectStore CRD, rather than the cluster one. I'm not sure about the reason they are there, or all the implications. But it makes sense to me to have all the sidecar config in one place, rather than split between the ObjectStore and the cluster specs. I'm happy to update the code to do this.
You are thinking of something that would take everything from under One thing that I can do for sure in this PR is to configure all probes, not only the startup one. I initially wanted to have the minimal code change, but it does feel weird to have one probe configurable but not the others. I'm happy to add them either in this PR on in follow ups. Also, happy to do the generic in-bulk spec copy if you think it's the best approach. |
…ative-pg#495) | datasource | package | from | to | | ---------- | ------------------------- | ------- | ------- | | go | github.com/onsi/ginkgo/v2 | v2.25.0 | v2.25.1 | Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Tudor Golubenco <tudor@xata.io>
9665d99
to
8091517
Compare
…re config Signed-off-by: Tudor Golubenco <tudor@xata.io>
8091517
to
8c2e72a
Compare
Signed-off-by: Tudor Golubenco <tudor@xata.io>
56e1180
to
ce7d8e9
Compare
hi @armru, I've pushed two commits to address those two ideas:
I think these changes make sense, but happy to revert one or both of them if you think the PR has gotten too large, or want a different approach. I did testing manually (beyond the unit tests), and covered the following:
Let me know if you have any particular scenarios you'd like me to test. |
Hello, I think we have to wait for the other maintainers opinion |
@armru I have merged |
This makes the startup probe configurable for the sidecar container.
Motivation: Because the sidecar container is an init container, the time it takes for it to be marked ready is added to the total startup time for a cluster, or for waking up an existing cluster from hibernation. The default period was 10 seconds, but the actual starting time is much lower than that.
This PR only makes the startup probe configurable, but doesn't change the defaults, meaning that there shouldn't be a change in the default behavior.