From 320ec203dd91109ec16da793964272223f848782 Mon Sep 17 00:00:00 2001 From: Jijin Puthuvakkattil <95418857+jijinp@users.noreply.github.com> Date: Wed, 8 Nov 2023 10:34:07 +0100 Subject: [PATCH] [stable/field-exporter]: fixes rbac permissions and image version (#542) * Update field exporter image tag * Update rbac permission for field exporter --- README.md | 1 + stable/field-exporter/Chart.yaml | 4 ++-- stable/field-exporter/README.md | 4 ++-- stable/field-exporter/templates/manager-rbac.yaml | 10 ++++++++++ stable/field-exporter/values.yaml | 2 +- 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bbfbc608..7836c599 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ helm install my-release deliveryhero/ - [cortex-gateway](stable/cortex-gateway) - [datadog-controller](stable/datadog-controller) - [dregsy](stable/dregsy) +- [field-exporter](stable/field-exporter) - [gripmock](stable/gripmock) - [hoppscotch](stable/hoppscotch) - [k8s-cloudwatch-adapter](stable/k8s-cloudwatch-adapter) diff --git a/stable/field-exporter/Chart.yaml b/stable/field-exporter/Chart.yaml index affcb954..8600164c 100644 --- a/stable/field-exporter/Chart.yaml +++ b/stable/field-exporter/Chart.yaml @@ -4,8 +4,8 @@ description: | A chart to install [field-exporter](https://github.com/deliveryhero/field-exporter). This controller is used to fill the gap in [k8s-config-connector](https://github.com/GoogleCloudPlatform/k8s-config-connector) for exporting value from Config Connector managed resources into Secrets and ConfigMaps. type: application -version: 1.0.0 -appVersion: "v1.0.0" +version: 1.0.2 +appVersion: "v1.0.2" maintainers: - name: vzholudev email: no-reply@deliveryhero.com diff --git a/stable/field-exporter/README.md b/stable/field-exporter/README.md index c0aa6252..aa59ea7c 100644 --- a/stable/field-exporter/README.md +++ b/stable/field-exporter/README.md @@ -1,6 +1,6 @@ # field-exporter -![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.0.0](https://img.shields.io/badge/AppVersion-v1.0.0-informational?style=flat-square) +![Version: 1.0.2](https://img.shields.io/badge/Version-1.0.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.0.2](https://img.shields.io/badge/AppVersion-v1.0.2-informational?style=flat-square) A chart to install [field-exporter](https://github.com/deliveryhero/field-exporter). This controller is used to fill the gap in [k8s-config-connector](https://github.com/GoogleCloudPlatform/k8s-config-connector) for exporting value from Config Connector managed resources into Secrets and ConfigMaps. @@ -46,7 +46,7 @@ helm install my-release deliveryhero/field-exporter -f values.yaml | controllerManager.manager.containerSecurityContext.allowPrivilegeEscalation | bool | `false` | | | controllerManager.manager.containerSecurityContext.capabilities.drop[0] | string | `"ALL"` | | | controllerManager.manager.image.repository | string | `"europe-docker.pkg.dev/dp-common-infra-5780/developer-platform-public/deliveryhero/field-exporter"` | | -| controllerManager.manager.image.tag | string | `"v1.0.0"` | | +| controllerManager.manager.image.tag | string | `"v1.0.2"` | | | controllerManager.manager.resources.limits.cpu | string | `"500m"` | | | controllerManager.manager.resources.limits.memory | string | `"128Mi"` | | | controllerManager.manager.resources.requests.cpu | string | `"10m"` | | diff --git a/stable/field-exporter/templates/manager-rbac.yaml b/stable/field-exporter/templates/manager-rbac.yaml index 56dc50d0..72c48e97 100644 --- a/stable/field-exporter/templates/manager-rbac.yaml +++ b/stable/field-exporter/templates/manager-rbac.yaml @@ -5,6 +5,16 @@ metadata: labels: {{- include "field-exporter.labels" . | nindent 4 }} rules: +- apiGroups: + - "" + resources: + - configmaps + - secrets + verbs: + - get + - list + - patch + - update - apiGroups: - alloydb.cnrm.cloud.google.com resources: diff --git a/stable/field-exporter/values.yaml b/stable/field-exporter/values.yaml index 9ba7e4c6..afd62af5 100644 --- a/stable/field-exporter/values.yaml +++ b/stable/field-exporter/values.yaml @@ -11,7 +11,7 @@ controllerManager: - ALL image: repository: europe-docker.pkg.dev/dp-common-infra-5780/developer-platform-public/deliveryhero/field-exporter - tag: v1.0.0 + tag: v1.0.2 resources: limits: cpu: 500m