From 0b17b07bf6dee691bd96902a243aa3f711a4444c Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Wed, 9 Dec 2020 03:49:29 +0500 Subject: [PATCH] Remove prometheus from minio chart --- .../post-install-prometheus-metrics-role.yaml | 36 ------------------- ...nstall-prometheus-metrics-rolebinding.yaml | 18 ---------- ...all-prometheus-metrics-serviceaccount.yaml | 10 ------ test/minio/8.0.5/values.yaml | 8 ----- 4 files changed, 72 deletions(-) delete mode 100644 test/minio/8.0.5/templates/post-install-prometheus-metrics-role.yaml delete mode 100644 test/minio/8.0.5/templates/post-install-prometheus-metrics-rolebinding.yaml delete mode 100644 test/minio/8.0.5/templates/post-install-prometheus-metrics-serviceaccount.yaml diff --git a/test/minio/8.0.5/templates/post-install-prometheus-metrics-role.yaml b/test/minio/8.0.5/templates/post-install-prometheus-metrics-role.yaml deleted file mode 100644 index 31de593cc72..00000000000 --- a/test/minio/8.0.5/templates/post-install-prometheus-metrics-role.yaml +++ /dev/null @@ -1,36 +0,0 @@ -{{- $fullName := include "minio.fullname" . -}} -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: {{ $fullName }}-update-prometheus-secret - labels: - app: {{ template "minio.name" . }}-update-prometheus-secret - chart: {{ template "minio.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -rules: - - apiGroups: - - "" - resources: - - secrets - verbs: - - get - - create - - update - - patch - resourceNames: - - {{ $fullName }}-prometheus - - apiGroups: - - "" - resources: - - secrets - verbs: - - create - - apiGroups: - - monitoring.coreos.com - resources: - - servicemonitors - verbs: - - get - resourceNames: - - {{ $fullName }} diff --git a/test/minio/8.0.5/templates/post-install-prometheus-metrics-rolebinding.yaml b/test/minio/8.0.5/templates/post-install-prometheus-metrics-rolebinding.yaml deleted file mode 100644 index 442a80bfd35..00000000000 --- a/test/minio/8.0.5/templates/post-install-prometheus-metrics-rolebinding.yaml +++ /dev/null @@ -1,18 +0,0 @@ -{{- $fullName := include "minio.fullname" . -}} -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: {{ $fullName }}-update-prometheus-secret - labels: - app: {{ template "minio.name" . }}-update-prometheus-secret - chart: {{ template "minio.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: {{ $fullName }}-update-prometheus-secret -subjects: - - kind: ServiceAccount - name: {{ $fullName }}-update-prometheus-secret - namespace: {{ .Release.Namespace | quote }} \ No newline at end of file diff --git a/test/minio/8.0.5/templates/post-install-prometheus-metrics-serviceaccount.yaml b/test/minio/8.0.5/templates/post-install-prometheus-metrics-serviceaccount.yaml deleted file mode 100644 index 8f9824fe360..00000000000 --- a/test/minio/8.0.5/templates/post-install-prometheus-metrics-serviceaccount.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{{- $fullName := include "minio.fullname" . -}} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ $fullName }}-update-prometheus-secret - labels: - app: {{ template "minio.name" . }}-update-prometheus-secret - chart: {{ template "minio.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} diff --git a/test/minio/8.0.5/values.yaml b/test/minio/8.0.5/values.yaml index c7a74f390cc..5c07fbb2089 100644 --- a/test/minio/8.0.5/values.yaml +++ b/test/minio/8.0.5/values.yaml @@ -5,14 +5,6 @@ image: tag: RELEASE.2020-11-19T23-48-16Z pullPolicy: IfNotPresent -## Set default image, imageTag, and imagePullPolicy for the `jq` (the JSON -## process used to create secret for prometheus ServiceMonitor). -## -helmKubectlJqImage: - repository: bskim45/helm-kubectl-jq - tag: 3.1.0 - pullPolicy: IfNotPresent - ## Additional arguments to pass to minio binary extraArgs: []