-
Notifications
You must be signed in to change notification settings - Fork 30
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
Introduce Custom StateCheck Paths in the Module Template #196
Comments
This issue or PR has been automatically marked as stale due to the lack of recent activity. This bot triages issues and PRs according to the following rules:
You can:
If you think that I work incorrectly, kindly raise an issue with the problem. /lifecycle stale |
This issue or PR has been automatically marked as stale due to the lack of recent activity. This bot triages issues and PRs according to the following rules:
You can:
If you think that I work incorrectly, kindly raise an issue with the problem. /lifecycle stale |
This issue or PR has been automatically marked as stale due to the lack of recent activity. This bot triages issues and PRs according to the following rules:
You can:
If you think that I work incorrectly, kindly raise an issue with the problem. /lifecycle stale |
I would like to use native IstioOperator as a module in Kyma. This is a sample custom resource for IstioOperator:
I can verify if it is successfully installed using this command:
I expect that I can put in the ModuleTemplate spec such entry: stateCheck:
jsonPath: '.status.status'
value: 'HEALTHY' For current implementation we can have: stateCheck:
jsonPath: '.status.state'
value: 'Ready' Of course the syntax is just example. You can come with your own proposal. |
User documentation should be provided for this, at least the simple one pointing out which fields to use and some example values. |
Technical Reference Guide should be put here: https://github.com/kyma-project/lifecycle-manager/blob/main/docs/technical-reference/api/moduleTemplate-cr.md |
Proposal:For 3rd party operator state report, by experiment some operators, I think only mapping the ready state is not enough, It's better to introduce another way to at least map A real-world example, elasticsearch operator have If we only map Option 1:Treat 3rd party operator non ready state as Option 2:extend state check to be able to map error state, new format can be:
Need feedback/opinion for a decision here @pbochynski @janmedrek Update
|
I would go with option 2. But you also make clear what is the priority (if both ready and error are true who wins). All states should be configurable. If none of them are true it should be clear what is the default (processing probably is the best candidate) |
In the current operator design, we are relying on
status.state
as a field reference. To make the feature a bit more flexible, we want to make sure that we can customise thestatus.state
field with more verification.We could introduce more state check layers with the following enhancements:
The text was updated successfully, but these errors were encountered: