tmax-cloud/kubevirt-image-service

Utilize operator SDK for condition-related functions

Opened this issue · 1 comments

Condition-related functions are implemented in the operator SDK.

see link: https://godoc.org/github.com/operator-framework/operator-sdk/pkg/status#Conditions

Actually condition type and those functions are added in client-go >= v0.19.0 confirmation link

It's required to update go.mod to apply client-go and machinery version >= v0.19.0. The most current stable version is v0.19.2.

General condition type meta.Condition is added also other util functions like meta.SetStatusCondition() . I was trying to apply those changes while updating operator-sdk version, but it needs more work like redesign updateStateWithReadyToUse() function, so it can be done in another PR