From 43e6c84a0bb83612c679ec83dc627a62679b2c08 Mon Sep 17 00:00:00 2001 From: anishakj <43978302+anishakj@users.noreply.github.com> Date: Mon, 30 Mar 2020 10:57:51 +0530 Subject: [PATCH] Removed the readiness probe check from operator (#152) Signed-off-by: anisha.kj --- cmd/manager/main.go | 9 --------- deploy/all_ns/operator.yaml | 8 -------- deploy/default_ns/operator.yaml | 8 -------- 3 files changed, 25 deletions(-) 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: