Skip to content

Commit

Permalink
Remove remotesecret dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Max Shaposhnyk <[email protected]>
  • Loading branch information
mshaposhnik committed May 16, 2024
1 parent 7a069ce commit ae0550d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions controllers/component_image_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ import (
. "github.com/onsi/gomega"
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"

remotesecretv1beta1 "github.com/redhat-appstudio/remote-secret/api/v1beta1"
corev1 "k8s.io/api/core/v1"
k8sErrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/types"

"github.com/redhat-appstudio/image-controller/pkg/quay"
Expand Down Expand Up @@ -592,7 +590,6 @@ var _ = Describe("Component image controller", func() {
deleteSecret(types.NamespacedName{Name: expectedPullSecretName, Namespace: resourceKey.Namespace})

pullSecretKey := types.NamespacedName{Name: expectedPullSecretName, Namespace: defaultNamespace}
Expect(k8sErrors.IsNotFound(k8sClient.Get(ctx, pullSecretKey, &remotesecretv1beta1.RemoteSecret{})))

isCreateRepositoryInvoked := false
quay.CreateRepositoryFunc = func(repository quay.RepositoryRequest) (*quay.Repository, error) {
Expand Down
4 changes: 0 additions & 4 deletions controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import (
appstudioredhatcomv1alpha1 "github.com/redhat-appstudio/application-api/api/v1alpha1"
imagerepositoryv1alpha1 "github.com/redhat-appstudio/image-controller/api/v1alpha1"
"github.com/redhat-appstudio/image-controller/pkg/quay"
remotesecretv1beta1 "github.com/redhat-appstudio/remote-secret/api/v1beta1"
//+kubebuilder:scaffold:imports
)

Expand Down Expand Up @@ -92,9 +91,6 @@ var _ = BeforeSuite(func() {
err = appstudioredhatcomv1alpha1.AddToScheme(scheme.Scheme)
Expect(err).NotTo(HaveOccurred())

err = remotesecretv1beta1.AddToScheme(scheme.Scheme)
Expect(err).NotTo(HaveOccurred())

err = imagerepositoryv1alpha1.AddToScheme(scheme.Scheme)
Expect(err).NotTo(HaveOccurred())

Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ require (
github.com/onsi/gomega v1.30.0
github.com/prometheus/client_golang v1.18.0
github.com/redhat-appstudio/application-api v0.0.0-20231026192857-89515ad2504f
github.com/redhat-appstudio/remote-secret v0.0.0-20240103070316-c146261dd544
go.uber.org/zap v1.26.0
gotest.tools/v3 v3.5.0
k8s.io/api v0.29.0
Expand Down
3 changes: 0 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ import (

"github.com/go-logr/logr"
appstudioredhatcomv1alpha1 "github.com/redhat-appstudio/application-api/api/v1alpha1"
remotesecretv1beta1 "github.com/redhat-appstudio/remote-secret/api/v1beta1"

imagerepositoryv1alpha1 "github.com/redhat-appstudio/image-controller/api/v1alpha1"
"github.com/redhat-appstudio/image-controller/controllers"
"github.com/redhat-appstudio/image-controller/pkg/quay"
Expand All @@ -66,7 +64,6 @@ func init() {
utilruntime.Must(clientgoscheme.AddToScheme(scheme))

utilruntime.Must(appstudioredhatcomv1alpha1.AddToScheme(scheme))
utilruntime.Must(remotesecretv1beta1.AddToScheme(scheme))
utilruntime.Must(imagerepositoryv1alpha1.AddToScheme(scheme))
//+kubebuilder:scaffold:scheme
}
Expand Down

0 comments on commit ae0550d

Please sign in to comment.