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

Commit 523313e

Browse files
authored
Merge pull request #156 from obrienrobert/INTLY-808
Bump Prometheus operator to v0.38.1
2 parents 8e1f542 + 6e8be81 commit 523313e

File tree

100 files changed

+11919
-16293
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+11919
-16293
lines changed

deploy/cluster-roles/prometheus-operator-clusterrole.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ rules:
1414
resources:
1515
- alertmanagers
1616
- prometheuses
17+
- thanosrulers
1718
- prometheuses/finalizers
1819
- alertmanagers/finalizers
20+
- thanosrulers/finalizers
1921
- servicemonitors
2022
- prometheusrules
2123
- podmonitors

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.13
44

55
require (
66
github.com/Masterminds/sprig v2.22.0+incompatible
7-
github.com/coreos/prometheus-operator v0.34.0
7+
github.com/coreos/prometheus-operator v0.38.1
88
github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32
99
github.com/go-openapi/spec v0.19.4
1010
github.com/openshift/api v3.9.1-0.20190924102528-32369d4db2ad+incompatible
@@ -14,10 +14,10 @@ require (
1414
golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073 // indirect
1515
golang.org/x/net v0.0.0-20200301022130-244492dfa37a // indirect
1616
google.golang.org/protobuf v1.21.0 // indirect
17-
k8s.io/api v0.0.0
18-
k8s.io/apimachinery v0.0.0
17+
k8s.io/api v0.17.3
18+
k8s.io/apimachinery v0.17.3
1919
k8s.io/client-go v12.0.0+incompatible
20-
k8s.io/kube-openapi v0.0.0-20190918143330-0270cf2f1c1d
20+
k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a
2121
sigs.k8s.io/controller-runtime v0.4.0
2222
)
2323

go.sum

Lines changed: 279 additions & 0 deletions
Large diffs are not rendered by default.

pkg/controller/applicationmonitoring/templateHelper.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ type Parameters struct {
101101
PrometheusInstanceNamespaces string
102102
AlertmanagerInstanceNamespaces string
103103
Affinity string
104+
PrometheusVersion string
104105
ExtraParams map[string]string
105106
}
106107

@@ -150,15 +151,16 @@ func newTemplateHelper(cr *applicationmonitoring.ApplicationMonitoring, extraPar
150151
ImageGrafanaOperator: "quay.io/integreatly/grafana-operator",
151152
ImageTagGrafanaOperator: "v3.6.0",
152153
ImageConfigMapReloader: "quay.io/openshift/origin-configmap-reloader",
153-
ImageTagConfigMapReloader: "4.2",
154+
ImageTagConfigMapReloader: "4.4",
154155
ImagePrometheusConfigReloader: "quay.io/openshift/origin-prometheus-config-reloader",
155-
ImageTagPrometheusConfigReloader: "4.2",
156+
ImageTagPrometheusConfigReloader: "4.4",
156157
ImagePrometheusOperator: "quay.io/coreos/prometheus-operator",
157-
ImageTagPrometheusOperator: "v0.34.0",
158+
ImageTagPrometheusOperator: "v0.38.1",
158159
ImagePrometheus: "quay.io/openshift/origin-prometheus",
159-
ImageTagPrometheus: "4.2",
160+
ImageTagPrometheus: "4.4",
160161
ImageBlackboxExporter: "quay.io/prometheus/blackbox-exporter",
161162
ImageTagBlackboxExporter: "v0.14.0",
163+
PrometheusVersion: "v2.15.2",
162164
PriorityClassName: cr.Spec.PriorityClassName,
163165
PrometheusRetention: cr.Spec.PrometheusRetention,
164166
PrometheusStorageRequest: cr.Spec.PrometheusStorageRequest,

scripts/install.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ oc apply -f https://raw.githubusercontent.com/integr8ly/grafana-operator/$GRAFAN
2828
# Prometheus CRDs
2929
oc get crd | grep prometheus > /dev/null 2>&1
3030
if [ $? != 0 ]; then
31-
oc apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/$PROMETHEUS_OPERATOR_VERSION/example/prometheus-operator-crd/podmonitor.crd.yaml
32-
oc apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/$PROMETHEUS_OPERATOR_VERSION/example/prometheus-operator-crd/prometheus.crd.yaml
33-
oc apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/$PROMETHEUS_OPERATOR_VERSION/example/prometheus-operator-crd/alertmanager.crd.yaml
34-
oc apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/$PROMETHEUS_OPERATOR_VERSION/example/prometheus-operator-crd/prometheusrule.crd.yaml
35-
oc apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/$PROMETHEUS_OPERATOR_VERSION/example/prometheus-operator-crd/servicemonitor.crd.yaml
31+
oc apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/$PROMETHEUS_OPERATOR_VERSION/example/prometheus-operator-crd/monitoring.coreos.com_podmonitors.yaml
32+
oc apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/$PROMETHEUS_OPERATOR_VERSION/example/prometheus-operator-crd/monitoring.coreos.com_prometheuses.yaml
33+
oc apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/$PROMETHEUS_OPERATOR_VERSION/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagers.yaml
34+
oc apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/$PROMETHEUS_OPERATOR_VERSION/example/prometheus-operator-crd/monitoring.coreos.com_prometheusrules.yaml
35+
oc apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/$PROMETHEUS_OPERATOR_VERSION/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml
36+
oc apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/$PROMETHEUS_OPERATOR_VERSION/example/prometheus-operator-crd/monitoring.coreos.com_thanosrulers.yaml
37+
3638
fi
3739

3840
# AMO Deployment

templates/alertmanager.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ metadata:
66
labels:
77
alertmanager: {{ .ApplicationMonitoringName }}
88
spec:
9-
baseImage: {{ .ImageAlertManager }}
10-
tag: "{{ .ImageTagAlertManager }}"
9+
image: {{ .ImageAlertManager }}:{{ .ImageTagAlertManager }}
1110
externalUrl: https://{{ index .ExtraParams "alertmanagerHost" }}
1211
listenLocal: true
1312
serviceAccountName: {{ .AlertManagerServiceAccountName }}

templates/prometheus.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ metadata:
66
labels:
77
prometheus: {{ .ApplicationMonitoringName }}
88
spec:
9-
baseImage: {{ .ImagePrometheus }}
10-
tag: "{{ .ImageTagPrometheus }}"
9+
image: {{ .ImagePrometheus }}:{{ .ImageTagPrometheus }}
1110
{{- if .Affinity }}
1211
replicas: 3
1312
{{- end }}
@@ -105,3 +104,4 @@ spec:
105104
affinity:
106105
{{ .Affinity | indent 4 }}
107106
{{- end }}
107+
version: {{ .PrometheusVersion }}

vendor/cloud.google.com/go/compute/metadata/.repo-metadata.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/cloud.google.com/go/compute/metadata/metadata.go

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cespare/xxhash/v2/README.md

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)