Skip to content

Commit

Permalink
feat(RHTAPREL-806): update operator toolkit refrence
Browse files Browse the repository at this point in the history
This commit updates the `operator-toolkit` refrence
as result of migration to `konflux-ci` from `redhat-appstudio`
more details parent EPIC:
https://issues.redhat.com/browse/RHTAPREL-800

Signed-off-by: Happy Bhati <hbhati@redhat.com>
  • Loading branch information
happybhati committed Mar 26, 2024
1 parent 9081b32 commit 518b322
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 26 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/internalrequest_conditions.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package v1alpha1

import "github.com/redhat-appstudio/operator-toolkit/conditions"
import "github.com/konflux-ci/operator-toolkit/conditions"

const (
// SucceededConditionType is the type used when setting a status condition
Expand Down
3 changes: 2 additions & 1 deletion api/v1alpha1/internalrequest_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ limitations under the License.
package v1alpha1

import (
"github.com/redhat-appstudio/operator-toolkit/conditions"
"time"

"github.com/konflux-ci/operator-toolkit/conditions"

"github.com/redhat-appstudio/internal-services/metrics"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/internalrequest_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/redhat-appstudio/operator-toolkit/conditions"
"github.com/konflux-ci/operator-toolkit/conditions"
)

var _ = Describe("Internal Request type", func() {
Expand Down
2 changes: 1 addition & 1 deletion controllers/controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ limitations under the License.
package controllers

import (
"github.com/konflux-ci/operator-toolkit/controller"
"github.com/redhat-appstudio/internal-services/controllers/internalrequest"
"github.com/redhat-appstudio/operator-toolkit/controller"
)

var EnabledControllers = []controller.Controller{
Expand Down
5 changes: 3 additions & 2 deletions controllers/internalrequest/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@ package internalrequest
import (
"context"
"fmt"
"os"

"github.com/go-logr/logr"
"github.com/konflux-ci/operator-toolkit/controller"
"github.com/redhat-appstudio/internal-services/api/v1alpha1"
"github.com/redhat-appstudio/internal-services/loader"
"github.com/redhat-appstudio/internal-services/tekton"
"github.com/redhat-appstudio/operator-toolkit/controller"
"github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
"k8s.io/apimachinery/pkg/api/errors"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"knative.dev/pkg/apis"
"os"
"sigs.k8s.io/controller-runtime/pkg/client"
)

Expand Down
3 changes: 2 additions & 1 deletion controllers/internalrequest/adapter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ package internalrequest

import (
"fmt"

toolkit "github.com/konflux-ci/operator-toolkit/loader"
"github.com/redhat-appstudio/internal-services/loader"
toolkit "github.com/redhat-appstudio/operator-toolkit/loader"

"reflect"

Expand Down
5 changes: 3 additions & 2 deletions controllers/internalrequest/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ package internalrequest

import (
"context"

"github.com/go-logr/logr"
"github.com/konflux-ci/operator-toolkit/controller"
"github.com/konflux-ci/operator-toolkit/predicates"
libhandler "github.com/operator-framework/operator-lib/handler"
"github.com/redhat-appstudio/internal-services/api/v1alpha1"
"github.com/redhat-appstudio/internal-services/loader"
"github.com/redhat-appstudio/internal-services/tekton"
"github.com/redhat-appstudio/operator-toolkit/controller"
"github.com/redhat-appstudio/operator-toolkit/predicates"
tektonv1beta1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime"
Expand Down
9 changes: 5 additions & 4 deletions controllers/internalrequest/internalrequest_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ package internalrequest

import (
"context"
appstudiov1alpha1 "github.com/redhat-appstudio/internal-services/api/v1alpha1"
"github.com/redhat-appstudio/operator-toolkit/test"
tektonv1beta1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
"go/build"
"path/filepath"
ctrl "sigs.k8s.io/controller-runtime"
"testing"

"github.com/konflux-ci/operator-toolkit/test"
appstudiov1alpha1 "github.com/redhat-appstudio/internal-services/api/v1alpha1"
tektonv1beta1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
ctrl "sigs.k8s.io/controller-runtime"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/onsi/gomega v1.24.1
github.com/operator-framework/operator-lib v0.11.0
github.com/prometheus/client_golang v1.14.0
github.com/redhat-appstudio/operator-toolkit v0.0.0-20230705141436-de654b7a7aed
github.com/konflux-ci/operator-toolkit v0.0.0-20230705141436-de654b7a7aed
github.com/tektoncd/pipeline v0.42.0
go.uber.org/zap v1.24.0
k8s.io/api v0.26.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0ua
github.com/prometheus/statsd_exporter v0.22.7/go.mod h1:N/TevpjkIh9ccs6nuzY3jQn9dFqnUakOjnEuMPJJJnI=
github.com/prometheus/statsd_exporter v0.22.8 h1:Qo2D9ZzaQG+id9i5NYNGmbf1aa/KxKbB9aKfMS+Yib0=
github.com/prometheus/statsd_exporter v0.22.8/go.mod h1:/DzwbTEaFTE0Ojz5PqcSk6+PFHOPWGxdXVr6yC8eFOM=
github.com/redhat-appstudio/operator-toolkit v0.0.0-20230705141436-de654b7a7aed h1:4RQmIIyZPm7dZuwtPUvbTLQCNIkUR13zLIVlUE9nunA=
github.com/redhat-appstudio/operator-toolkit v0.0.0-20230705141436-de654b7a7aed/go.mod h1:6lVK58G/zkoxMoHAmYxzF6La8rMmCeZwOQk6i0dpYZo=
github.com/konflux-ci/operator-toolkit v0.0.0-20230705141436-de654b7a7aed h1:4RQmIIyZPm7dZuwtPUvbTLQCNIkUR13zLIVlUE9nunA=
github.com/konflux-ci/operator-toolkit v0.0.0-20230705141436-de654b7a7aed/go.mod h1:6lVK58G/zkoxMoHAmYxzF6La8rMmCeZwOQk6i0dpYZo=
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/rogpeppe/go-internal v1.8.0 h1:FCbCCtXNOY3UtUuHUYaghJg4y7Fd14rXifAYUAtL9R8=
Expand Down
3 changes: 2 additions & 1 deletion loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package loader

import (
"context"

toolkit "github.com/konflux-ci/operator-toolkit/loader"
"github.com/redhat-appstudio/internal-services/api/v1alpha1"
"github.com/redhat-appstudio/internal-services/tekton"
toolkit "github.com/redhat-appstudio/operator-toolkit/loader"
"github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
"sigs.k8s.io/controller-runtime/pkg/client"
)
Expand Down
3 changes: 2 additions & 1 deletion loader/loader_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package loader

import (
"context"

toolkit "github.com/konflux-ci/operator-toolkit/loader"
"github.com/redhat-appstudio/internal-services/api/v1alpha1"
toolkit "github.com/redhat-appstudio/operator-toolkit/loader"
"github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
"sigs.k8s.io/controller-runtime/pkg/client"
)
Expand Down
2 changes: 1 addition & 1 deletion loader/loader_mock_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package loader

import (
toolkit "github.com/konflux-ci/operator-toolkit/loader"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/redhat-appstudio/internal-services/api/v1alpha1"
toolkit "github.com/redhat-appstudio/operator-toolkit/loader"
tektonv1beta1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
)

Expand Down
9 changes: 5 additions & 4 deletions loader/loader_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ package loader

import (
"context"
appstudiov1alpha1 "github.com/redhat-appstudio/internal-services/api/v1alpha1"
"github.com/redhat-appstudio/operator-toolkit/test"
tektonv1beta1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
"go/build"
"path/filepath"
ctrl "sigs.k8s.io/controller-runtime"
"testing"

"github.com/konflux-ci/operator-toolkit/test"
appstudiov1alpha1 "github.com/redhat-appstudio/internal-services/api/v1alpha1"
tektonv1beta1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
ctrl "sigs.k8s.io/controller-runtime"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

Expand Down
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ package main

import (
"flag"
"github.com/redhat-appstudio/operator-toolkit/controller"
"go.uber.org/zap/zapcore"
"os"

"github.com/konflux-ci/operator-toolkit/controller"
"go.uber.org/zap/zapcore"

tektonv1beta1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
"k8s.io/client-go/rest"
Expand Down
3 changes: 2 additions & 1 deletion tekton/tekton_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ package tekton

import (
"context"
"github.com/redhat-appstudio/operator-toolkit/test"
"go/build"
"path/filepath"
"testing"

"github.com/konflux-ci/operator-toolkit/test"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

Expand Down

0 comments on commit 518b322

Please sign in to comment.