Skip to content

Commit

Permalink
Adapt new interface signature: OperatorClient, add func GetOperatorSt…
Browse files Browse the repository at this point in the history
…ateWithQuorum()

* xref libray-go commit for details: openshift/library-go@bd5e34c,
  openshift/library-go#1658

Signed-off-by: Swarup Ghosh <swghosh@redhat.com>
  • Loading branch information
swghosh committed Apr 22, 2024
1 parent 748a663 commit 6b5c8a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/operator/operatorclient/operatorclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ func (c OperatorClient) GetOperatorState() (*operatorv1.OperatorSpec, *operatorv
return &instance.Spec.OperatorSpec, &instance.Status.OperatorStatus, instance.ResourceVersion, nil
}

func (c OperatorClient) GetOperatorStateWithQuorum() (spec *operatorv1.OperatorSpec, status *operatorv1.OperatorStatus, resourceVersion string, err error) {
return c.GetOperatorState()
}

func GetUnsupportedConfigOverrides(operatorSpec *operatorv1.OperatorSpec) (*v1alpha1.UnsupportedConfigOverrides, error) {
if len(operatorSpec.UnsupportedConfigOverrides.Raw) != 0 {
out := &v1alpha1.UnsupportedConfigOverrides{}
Expand Down

0 comments on commit 6b5c8a9

Please sign in to comment.