-
Notifications
You must be signed in to change notification settings - Fork 717
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebase Monitoring to 14.5.0 and update all dependencies (#1072)
* Switch rancher-monitoring to Git-based package Signed-off-by: Arvind Iyengar <arvind.iyengar@rancher.com> * Move Monitoring dependencies to separate packages * Switch rancher-grafana to Git-based and add annotations * Switch rancher-kube-state-metrics to Git-based and add annotations * Switch rancher-prometheus-adapter to Git-based and add annotations * Switch rancher-node-exporter to Git-based and add annotations * Rebase to kube-prometheus-stack-10.0.0 * Update rancher-monitoring to new base kube-prometheus-stack-10.0.0 * Rebase to kube-prometheus-stack-11.0.0 * Update rancher-monitoring to new base kube-prometheus-stack-11.0.0 * Rebase to kube-prometheus-stack-12.0.0 * Update rancher-monitoring to new base kube-prometheus-stack-12.0.0 * Rebase to kube-prometheus-stack-13.0.0 * Update rancher-monitoring to new base kube-prometheus-stack-13.0.0 * Rebase to kube-prometheus-stack-14.0.0 * Update rancher-monitoring to new base kube-prometheus-stack-14.0.0 * Rebase to kube-prometheus-stack-14.5.0 * Update rancher-monitoring to new base kube-prometheus-stack-14.5.0 * fixup rancher-monitoring * Switch nginx port for Prometheus to 8081 This is necessary since prometheusConfigReloaderImage now takes port 8080 in the Prometheus pod due to a change introduced in Prometheus Operator v0.43.0 in prometheus-operator/prometheus-operator@dcf34c5. This value is hard-coded in the operator in https://github.com/prometheus-operator/prometheus-operator/blob/bcf61aacda782d6c8ffc79f55ea1def9cfd97933/pkg/operator/statefulset.go#L25. * Rebase to grafana-5.7.7 * Update rancher-grafana to new base grafana-5.7.7 * Rebase to grafana-6.0.0 * Update rancher-grafana to new base grafana-6.0.0 * Rebase to grafana-6.6.4 * Update rancher-grafana to new base grafana-6.6.4 * fixup rancher-grafana * Add linux annotations to image-renderer * Use default grafana serviceAccount if unavailable for image-renderer * Rebase to kube-state-metrics-helm-chart-2.13.1 * Update rancher-kube-state-metrics to new base kube-state-metrics-helm-chart-2.13.1 * fixup kube-state-metrics * Rebase to prometheus-node-exporter-1.16.2 * Update rancher-node-exporter to new base prometheus-node-exporter-1.16.2 * fixup node-exporter * Rebase to prometheus-adapter-2.12.1 * Update rancher-prometheus-adapter to new base prometheus-adapter-2.12.1 * fixup prometheus-adapter * Update CRD chart version * Add original chart before all commits were made * Add chart after all commits were made * Delete charts * Patch the chart version to 1 and reset packageVersion to 00 * Patch CRD chart version
- Loading branch information
Showing
83 changed files
with
1,602 additions
and
699 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
packages/rancher-grafana/generated-changes/exclude/ci/default-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Leave this file empty to ensure that CI runs builds against the default configuration in values.yaml. |
53 changes: 53 additions & 0 deletions
53
packages/rancher-grafana/generated-changes/exclude/ci/with-dashboard-json-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
dashboards: | ||
my-provider: | ||
my-awesome-dashboard: | ||
# An empty but valid dashboard | ||
json: | | ||
{ | ||
"__inputs": [], | ||
"__requires": [ | ||
{ | ||
"type": "grafana", | ||
"id": "grafana", | ||
"name": "Grafana", | ||
"version": "6.3.5" | ||
} | ||
], | ||
"annotations": { | ||
"list": [ | ||
{ | ||
"builtIn": 1, | ||
"datasource": "-- Grafana --", | ||
"enable": true, | ||
"hide": true, | ||
"iconColor": "rgba(0, 211, 255, 1)", | ||
"name": "Annotations & Alerts", | ||
"type": "dashboard" | ||
} | ||
] | ||
}, | ||
"editable": true, | ||
"gnetId": null, | ||
"graphTooltip": 0, | ||
"id": null, | ||
"links": [], | ||
"panels": [], | ||
"schemaVersion": 19, | ||
"style": "dark", | ||
"tags": [], | ||
"templating": { | ||
"list": [] | ||
}, | ||
"time": { | ||
"from": "now-6h", | ||
"to": "now" | ||
}, | ||
"timepicker": { | ||
"refresh_intervals": ["5s"] | ||
}, | ||
"timezone": "", | ||
"title": "Dummy Dashboard", | ||
"uid": "IdcYQooWk", | ||
"version": 1 | ||
} | ||
datasource: Prometheus |
19 changes: 19 additions & 0 deletions
19
packages/rancher-grafana/generated-changes/exclude/ci/with-dashboard-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
dashboards: | ||
my-provider: | ||
my-awesome-dashboard: | ||
gnetId: 10000 | ||
revision: 1 | ||
datasource: Prometheus | ||
dashboardProviders: | ||
dashboardproviders.yaml: | ||
apiVersion: 1 | ||
providers: | ||
- name: 'my-provider' | ||
orgId: 1 | ||
folder: '' | ||
type: file | ||
updateIntervalSeconds: 10 | ||
disableDeletion: true | ||
editable: true | ||
options: | ||
path: /var/lib/grafana/dashboards/my-provider |
19 changes: 19 additions & 0 deletions
19
packages/rancher-grafana/generated-changes/exclude/ci/with-image-renderer-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
podLabels: | ||
customLableA: Aaaaa | ||
imageRenderer: | ||
enabled: true | ||
env: | ||
RENDERING_ARGS: --disable-gpu,--window-size=1280x758 | ||
RENDERING_MODE: clustered | ||
podLabels: | ||
customLableB: Bbbbb | ||
networkPolicy: | ||
limitIngress: true | ||
limitEgress: true | ||
resources: | ||
limits: | ||
cpu: 1000m | ||
memory: 1000Mi | ||
requests: | ||
cpu: 500m | ||
memory: 50Mi |
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
packages/rancher-grafana/generated-changes/patch/Chart.yaml.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- charts-original/Chart.yaml | ||
+++ charts/Chart.yaml | ||
@@ -1,5 +1,11 @@ | ||
+annotations: | ||
+ catalog.rancher.io/certified: rancher | ||
+ catalog.rancher.io/namespace: cattle-monitoring-system | ||
+ catalog.rancher.io/release-name: rancher-grafana | ||
+ catalog.cattle.io/hidden: "true" | ||
+ catalog.cattle.io/os: linux | ||
apiVersion: v2 | ||
-name: grafana | ||
+name: rancher-grafana | ||
version: 6.6.4 | ||
appVersion: 7.4.5 | ||
kubeVersion: '^1.8.0-0' |
35 changes: 35 additions & 0 deletions
35
packages/rancher-grafana/generated-changes/patch/templates/_helpers.tpl.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- charts-original/templates/_helpers.tpl | ||
+++ charts/templates/_helpers.tpl | ||
@@ -1,3 +1,32 @@ | ||
+# Rancher | ||
+{{- define "system_default_registry" -}} | ||
+{{- if .Values.global.cattle.systemDefaultRegistry -}} | ||
+{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} | ||
+{{- end -}} | ||
+{{- end -}} | ||
+ | ||
+# Windows Support | ||
+ | ||
+{{/* | ||
+Windows cluster will add default taint for linux nodes, | ||
+add below linux tolerations to workloads could be scheduled to those linux nodes | ||
+*/}} | ||
+ | ||
+{{- define "linux-node-tolerations" -}} | ||
+- key: "cattle.io/os" | ||
+ value: "linux" | ||
+ effect: "NoSchedule" | ||
+ operator: "Equal" | ||
+{{- end -}} | ||
+ | ||
+{{- define "linux-node-selector" -}} | ||
+{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}} | ||
+beta.kubernetes.io/os: linux | ||
+{{- else -}} | ||
+kubernetes.io/os: linux | ||
+{{- end -}} | ||
+{{- end -}} | ||
+ | ||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Expand the name of the chart. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
...es/rancher-grafana/generated-changes/patch/templates/image-renderer-deployment.yaml.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- charts-original/templates/image-renderer-deployment.yaml | ||
+++ charts/templates/image-renderer-deployment.yaml | ||
@@ -42,6 +42,8 @@ | ||
{{- end }} | ||
{{- if .Values.imageRenderer.serviceAccountName }} | ||
serviceAccountName: "{{ .Values.imageRenderer.serviceAccountName }}" | ||
+ {{- else }} | ||
+ serviceAccountName: {{ template "grafana.serviceAccountName" . }} | ||
{{- end }} | ||
{{- if .Values.imageRenderer.securityContext }} | ||
securityContext: | ||
@@ -63,9 +65,9 @@ | ||
containers: | ||
- name: {{ .Chart.Name }}-image-renderer | ||
{{- if .Values.imageRenderer.image.sha }} | ||
- image: "{{ .Values.imageRenderer.image.repository }}:{{ .Values.imageRenderer.image.tag }}@sha256:{{ .Values.imageRenderer.image.sha }}" | ||
+ image: "{{ template "system_default_registry" . }}{{ .Values.imageRenderer.image.repository }}:{{ .Values.imageRenderer.image.tag }}@sha256:{{ .Values.imageRenderer.image.sha }}" | ||
{{- else }} | ||
- image: "{{ .Values.imageRenderer.image.repository }}:{{ .Values.imageRenderer.image.tag }}" | ||
+ image: "{{ template "system_default_registry" . }}{{ .Values.imageRenderer.image.repository }}:{{ .Values.imageRenderer.image.tag }}" | ||
{{- end }} | ||
imagePullPolicy: {{ .Values.imageRenderer.image.pullPolicy }} | ||
{{- if .Values.imageRenderer.command }} | ||
@@ -97,16 +99,16 @@ | ||
resources: | ||
{{ toYaml . | indent 12 }} | ||
{{- end }} | ||
- {{- with .Values.imageRenderer.nodeSelector }} | ||
- nodeSelector: | ||
+ nodeSelector: {{ include "linux-node-selector" . | nindent 8 }} | ||
+ {{- if .Values.imageRenderer.nodeSelector }} | ||
{{ toYaml . | indent 8 }} | ||
{{- end }} | ||
{{- with .Values.imageRenderer.affinity }} | ||
affinity: | ||
{{ toYaml . | indent 8 }} | ||
{{- end }} | ||
- {{- with .Values.imageRenderer.tolerations }} | ||
- tolerations: | ||
+ tolerations: {{ include "linux-node-tolerations" . | nindent 8 }} | ||
+ {{- if .Values.imageRenderer.tolerations }} | ||
{{ toYaml . | indent 8 }} | ||
{{- end }} | ||
volumes: |
6 changes: 3 additions & 3 deletions
6
...na/templates/podsecuritypolicy.yaml.patch → ...ch/templates/podsecuritypolicy.yaml.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.