Skip to content

Commit

Permalink
Removed the readiness probe check from operator (#152)
Browse files Browse the repository at this point in the history
Signed-off-by: anisha.kj <[email protected]>
  • Loading branch information
anishakj authored Mar 30, 2020
1 parent 20106e8 commit 43e6c84
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
9 changes: 0 additions & 9 deletions cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down
8 changes: 0 additions & 8 deletions deploy/all_ns/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
Expand Down
8 changes: 0 additions & 8 deletions deploy/default_ns/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 43e6c84

Please sign in to comment.