Update Source API to v1beta2
The creation of oldConditions, statusableConditions and reconcilableConditions is an adhoc solution to deal with the upstream changes on `pkg/apis/meta`, which are yet to be replicated across other Flux API components. Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
This commit is contained in:
committed by
Hidde Beydals
parent
a929d24924
commit
e5ede275f8
@@ -10,9 +10,8 @@ import (
|
||||
"k8s.io/apimachinery/pkg/types"
|
||||
"k8s.io/apimachinery/pkg/util/wait"
|
||||
|
||||
"github.com/fluxcd/pkg/apis/meta"
|
||||
|
||||
"github.com/fluxcd/flux2/internal/utils"
|
||||
"github.com/fluxcd/pkg/apis/meta"
|
||||
)
|
||||
|
||||
type reconcileWithSource interface {
|
||||
@@ -83,7 +82,7 @@ func (reconcile reconcileWithSourceCommand) run(cmd *cobra.Command, args []strin
|
||||
return err
|
||||
}
|
||||
|
||||
readyCond := apimeta.FindStatusCondition(*reconcile.object.GetStatusConditions(), meta.ReadyCondition)
|
||||
readyCond := apimeta.FindStatusCondition(reconcilableConditions(reconcile.object), meta.ReadyCondition)
|
||||
if readyCond == nil {
|
||||
return fmt.Errorf("status can't be determined")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user