Skip to content

Commit

Permalink
Switch ansible/helm to use operator-lib predicate. (operator-framewor…
Browse files Browse the repository at this point in the history
…k#3481)

We are bringing in operator-lib and using its predicate code. Then
removing its implementation from the SDK repo.
  • Loading branch information
jmrodri authored Jul 22, 2020
1 parent 0d4ba1b commit 0c7d59b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 103 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ require (
github.com/onsi/ginkgo v1.12.0
github.com/onsi/gomega v1.9.0
github.com/operator-framework/api v0.3.8
github.com/operator-framework/operator-lib v0.0.0-20200722145423-0ffd6fc49593
github.com/operator-framework/operator-registry v1.12.6-0.20200611222234-275301b779f8
github.com/prometheus/client_golang v1.5.1
github.com/rogpeppe/go-internal v1.5.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,8 @@ github.com/operator-framework/api v0.3.7-0.20200602203552-431198de9fc2 h1:2KtDe3
github.com/operator-framework/api v0.3.7-0.20200602203552-431198de9fc2/go.mod h1:Xbje9x0SHmh0nihE21kpesB38vk3cyxnE6JdDS8Jo1Q=
github.com/operator-framework/api v0.3.8 h1:tJykTCmwGKZBsPVTCfxbwz6nTF6dzmKydWJtC40erc8=
github.com/operator-framework/api v0.3.8/go.mod h1:Xbje9x0SHmh0nihE21kpesB38vk3cyxnE6JdDS8Jo1Q=
github.com/operator-framework/operator-lib v0.0.0-20200722145423-0ffd6fc49593 h1:HO4u9RmDgd026bOmMCAqYXhFDVPaZoo/gbZGb61+Dzg=
github.com/operator-framework/operator-lib v0.0.0-20200722145423-0ffd6fc49593/go.mod h1:ECCXhumm5v45hOPC/7Y9drfL1akeoyDHT8GsoJ7/Xc0=
github.com/operator-framework/operator-registry v1.12.6-0.20200611222234-275301b779f8 h1:F3zzxoBJJANdKMxmSOi5z/HWiVT+gwOdhROkEwDWD2M=
github.com/operator-framework/operator-registry v1.12.6-0.20200611222234-275301b779f8/go.mod h1:loVINznYhgBIkmv83kU4yee88RS0BBk+hqOw9r4bhJk=
github.com/otiai10/copy v1.2.0 h1:HvG945u96iNadPoG2/Ja2+AUJeW5YuFQMixq9yirC+k=
Expand Down
2 changes: 1 addition & 1 deletion pkg/ansible/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ import (
"sigs.k8s.io/controller-runtime/pkg/handler"
"sigs.k8s.io/controller-runtime/pkg/source"

"github.com/operator-framework/operator-lib/predicate"
"github.com/operator-framework/operator-sdk/pkg/ansible/proxy/controllermap"
"github.com/operator-framework/operator-sdk/pkg/ansible/proxy/kubeconfig"
k8sRequest "github.com/operator-framework/operator-sdk/pkg/ansible/proxy/requestfactory"
osdkHandler "github.com/operator-framework/operator-sdk/pkg/handler"
"github.com/operator-framework/operator-sdk/pkg/internal/predicate"
)

// This is the default timeout to wait for the cache to respond
Expand Down
2 changes: 1 addition & 1 deletion pkg/helm/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ import (
"sigs.k8s.io/controller-runtime/pkg/source"
"sigs.k8s.io/yaml"

"github.com/operator-framework/operator-lib/predicate"
"github.com/operator-framework/operator-sdk/internal/util/k8sutil"
"github.com/operator-framework/operator-sdk/pkg/handler"
"github.com/operator-framework/operator-sdk/pkg/helm/release"
"github.com/operator-framework/operator-sdk/pkg/internal/predicate"
)

var log = logf.Log.WithName("helm.controller")
Expand Down
101 changes: 0 additions & 101 deletions pkg/internal/predicate/dependent.go

This file was deleted.

0 comments on commit 0c7d59b

Please sign in to comment.