Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #139 from Rajagopalan-Ranganathan/INTLY-8046
Browse files Browse the repository at this point in the history
Fix for a second pod during upgrade.
  • Loading branch information
openshift-merge-robot authored Jun 30, 2020
2 parents 29b6a60 + 9a8722b commit 31c1cff
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COMPILE_TARGET=./tmp/_output/bin/$(PROJECT)
# You can delete this comment afterwards.
PROMETHEUS_OPERATOR_VERSION=v0.34.0
LOCAL=local
GRAFANA_OPERATOR_VERSION=v3.2.0
GRAFANA_OPERATOR_VERSION=v3.4.0
AMO_VERSION=1.2.0
PREV_AMO_VERSION=1.1.6

Expand Down
9 changes: 0 additions & 9 deletions cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
"github.com/operator-framework/operator-sdk/pkg/leader"
"github.com/operator-framework/operator-sdk/pkg/log/zap"
"github.com/operator-framework/operator-sdk/pkg/metrics"
"github.com/operator-framework/operator-sdk/pkg/ready"
sdkVersion "github.com/operator-framework/operator-sdk/version"
"github.com/spf13/pflag"
v1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -85,14 +84,6 @@ func main() {
ctx := context.TODO()
leader.Become(ctx, "application-monitoring-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,
Expand Down
8 changes: 0 additions & 8 deletions deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ spec:
command:
- application-monitoring-operator
imagePullPolicy: Always
readinessProbe:
exec:
command:
- stat
- /tmp/operator-sdk-ready
initialDelaySeconds: 4
periodSeconds: 10
failureThreshold: 1
env:
- name: TEMPLATE_PATH
value: /usr/local/bin/templates
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/applicationmonitoring/templateHelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func newTemplateHelper(cr *applicationmonitoring.ApplicationMonitoring, extraPar
ImageGrafana: "quay.io/openshift/origin-grafana",
ImageTagGrafana: "4.2",
ImageGrafanaOperator: "quay.io/integreatly/grafana-operator",
ImageTagGrafanaOperator: "v3.3.0",
ImageTagGrafanaOperator: "v3.4.0",
ImageConfigMapReloader: "quay.io/openshift/origin-configmap-reloader",
ImageTagConfigMapReloader: "4.2",
ImagePrometheusConfigReloader: "quay.io/openshift/origin-prometheus-config-reloader",
Expand Down

0 comments on commit 31c1cff

Please sign in to comment.