Skip to content

Conversation

@redbaron
Copy link
Contributor

@redbaron redbaron commented Jan 9, 2019

Operator proceeds to checking if CRD is present and ready,
and if not, only then it is a fatal error.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 23.766% when pulling 46fdbb475cd45e695d43f5d052f78e52389f9a29 on redbaron:crd-no-fatal into c70905a on zalando-incubator:master.

@sdudoladov
Copy link
Member

@redbaron at the absence of the operator CRD, at which point do you expect the operator pod to fail ?

@redbaron
Copy link
Contributor Author

redbaron commented Jan 9, 2019

It fails on CRD wait status then , which remains Fatal error

time="2019-01-09T14:53:00Z" level=warning msg="Can't register customResourceDefinition operatorconfigurations.acid.zalan.do, will continue if it already exists" pkg=controller
time="2019-01-09T14:53:04Z" level=fatal msg="could not register Operator Configuration CustomResourceDefinition: customresourcedefinitions.apiextensions.k8s.io \"operatorconfigurations.acid.zalan.do\" not found" pkg=controller

@Jan-M
Copy link
Member

Jan-M commented Jan 9, 2019

But isn't the message confusing, why will it continue to fail if it already exists?

@redbaron
Copy link
Contributor Author

redbaron commented Jan 9, 2019

But isn't the message confusing, why will it continue to fail if it already exists?

I don't understand. If CRD already exists, then irrespectively of CRD creation it moves to checking CRD status and only if CRD status check fails, operator fails too.

@redbaron
Copy link
Contributor Author

redbaron commented Jan 9, 2019

In other words, it fails on what is important : CRD is not registered in the cluster

@sdudoladov
Copy link
Member

hey @redbaron :) any updates on this PR ?

@FxKu FxKu mentioned this pull request May 7, 2019
Operator proceeds to checking if CRD is present and ready,
and if not, only then it is a fatal error.
@redbaron redbaron requested a review from FxKu as a code owner June 13, 2019 11:19
@FxKu
Copy link
Member

FxKu commented Jun 13, 2019

Thanks for the update. With the new update mechanism there are also no confusing message anymore.

@FxKu
Copy link
Member

FxKu commented Jun 13, 2019

👍

@sdudoladov sdudoladov dismissed their stale review June 14, 2019 14:02

comments addressed in a subsequent commit

@sdudoladov
Copy link
Member

👍

@sdudoladov sdudoladov merged commit 44acd7e into zalando:master Jun 14, 2019
@sdudoladov
Copy link
Member

@redbaron thanks for the contribution 👍

@redbaron redbaron deleted the crd-no-fatal branch June 17, 2019 13:36
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.

5 participants