diff --git a/cmd/manager/main.go b/cmd/manager/main.go index 7aca56435..6a0d390d2 100644 --- a/cmd/manager/main.go +++ b/cmd/manager/main.go @@ -19,7 +19,6 @@ import ( "github.com/operator-framework/operator-sdk/pkg/k8sutil" "github.com/operator-framework/operator-sdk/pkg/leader" - "github.com/operator-framework/operator-sdk/pkg/ready" sdkVersion "github.com/operator-framework/operator-sdk/version" "github.com/pravega/zookeeper-operator/pkg/apis" "github.com/pravega/zookeeper-operator/pkg/controller" @@ -80,14 +79,6 @@ func main() { // Become the leader before proceeding leader.Become(context.TODO(), "zookeeper-operator-lock") - r := ready.NewFileReady() - err = r.Set() - if err != nil { - log.Error(err, "") - os.Exit(1) - } - defer r.Unset() - // Create a new Cmd to provide shared dependencies and start components mgr, err := manager.New(cfg, manager.Options{Namespace: namespace}) if err != nil { diff --git a/deploy/all_ns/operator.yaml b/deploy/all_ns/operator.yaml index c773d6cde..957c7b1f3 100644 --- a/deploy/all_ns/operator.yaml +++ b/deploy/all_ns/operator.yaml @@ -23,14 +23,6 @@ spec: command: - zookeeper-operator imagePullPolicy: Always - readinessProbe: - exec: - command: - - stat - - /tmp/operator-sdk-ready - initialDelaySeconds: 4 - periodSeconds: 10 - failureThreshold: 1 env: - name: WATCH_NAMESPACE value: "" diff --git a/deploy/default_ns/operator.yaml b/deploy/default_ns/operator.yaml index 2222e2df8..261878104 100644 --- a/deploy/default_ns/operator.yaml +++ b/deploy/default_ns/operator.yaml @@ -23,14 +23,6 @@ spec: command: - zookeeper-operator imagePullPolicy: Always - readinessProbe: - exec: - command: - - stat - - /tmp/operator-sdk-ready - initialDelaySeconds: 4 - periodSeconds: 10 - failureThreshold: 1 env: - name: WATCH_NAMESPACE valueFrom: