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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Che CR validator #221

Merged
merged 2 commits into from
Apr 16, 2020
Merged

Add Che CR validator #221

merged 2 commits into from
Apr 16, 2020

Conversation

mmorhun
Copy link
Contributor

@mmorhun mmorhun commented Apr 15, 2020

Signed-off-by: Mykola Morhun mmorhun@redhat.com

What this PR does

This PR adds simple validation of Che CR at the beginning of reconcile loop. If an mistake found in the CR, corresponding message will be printed into Operator logs and it will wait till CR is changed.
For now it checks very basic things, like ingress domain for Kubernetes, but could be easily extended for other cases.

Which issues this PR references

I ran into issue that Che operator may fall into infinite reconcile loop if some fields of CR are misconfigured. It wasn't fault of reconcile logic as it is just required to have some fields specified.
So this is additional changes in terms of #220

Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
@mmorhun mmorhun merged commit 56c6806 into master Apr 16, 2020
@mmorhun mmorhun deleted the validate-cr branch April 16, 2020 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants