From 10011da35e0de7a80d0007403a5873bc50bfcc97 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Sun, 9 Jul 2023 02:02:44 -0500 Subject: [PATCH] :sparkles: (generic-device-plugin): Add ServiceMonitor values --- charts/generic-device-plugin/Chart.yaml | 6 +++--- charts/generic-device-plugin/README.md | 6 ++++-- charts/generic-device-plugin/values.yaml | 13 +++++++++++++ 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/charts/generic-device-plugin/Chart.yaml b/charts/generic-device-plugin/Chart.yaml index 541e7d323..4a42f97fa 100644 --- a/charts/generic-device-plugin/Chart.yaml +++ b/charts/generic-device-plugin/Chart.yaml @@ -3,7 +3,7 @@ name: generic-device-plugin description: The generic-device-plugin enables allocating generic Linux devices, such as serial devices, the FUSE device, or video cameras, to Kubernetes Pods home: https://charts.gabe565.com/charts/generic-device-plugin/ type: application -version: 0.1.0 +version: 0.1.1 # renovate datasource=docker depName=ghcr.io/squat/generic-device-plugin appVersion: latest kubeVersion: ">=1.22.0-0" @@ -17,8 +17,8 @@ sources: - https://github.com/squat/generic-device-plugin annotations: artifacthub.io/changes: |- - - kind: changed - description: Update common Helm release to v1.5.0 + - kind: added + description: Add ServiceMonitor values artifacthub.io/links: |- - name: App Source url: https://github.com/squat/generic-device-plugin diff --git a/charts/generic-device-plugin/README.md b/charts/generic-device-plugin/README.md index 12c679c4f..59dd8395b 100644 --- a/charts/generic-device-plugin/README.md +++ b/charts/generic-device-plugin/README.md @@ -1,6 +1,6 @@ # Generic Device Plugin -![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat) +![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat) @@ -9,7 +9,7 @@ The generic-device-plugin enables allocating generic Linux devices, such as seri **Homepage:** **This chart is not maintained by the upstream project and any issues with the chart should be raised -[here](https://github.com/gabe565/charts/issues/new?assignees=gabe565&labels=bug&template=bug_report.yaml&name=generic-device-plugin&version=0.1.0)** +[here](https://github.com/gabe565/charts/issues/new?assignees=gabe565&labels=bug&template=bug_report.yaml&name=generic-device-plugin&version=0.1.1)** ## Source Code @@ -169,6 +169,8 @@ See [values.yaml](./values.yaml) for an example configuration file. | probes.startup | object | `{"path":"/health","type":"HTTP"}` | Configures startup probe | | securityContext.privileged | bool | `true` | Privileged mode is required to access devices | | service.main | object | See [values.yaml](./values.yaml) | Configures health/metrics service settings for the chart. | +| serviceMonitor.main.enabled | bool | `false` | Enables or disables the serviceMonitor. | +| serviceMonitor.main.endpoints | list | See values.yaml | Configures the endpoints for the serviceMonitor. | --- Autogenerated from chart metadata using [helm-docs](https://github.com/norwoodj/helm-docs) diff --git a/charts/generic-device-plugin/values.yaml b/charts/generic-device-plugin/values.yaml index 730f2f4f1..9d3cb710c 100644 --- a/charts/generic-device-plugin/values.yaml +++ b/charts/generic-device-plugin/values.yaml @@ -118,3 +118,16 @@ probes: startup: type: HTTP path: /health + +serviceMonitor: + main: + # -- Enables or disables the serviceMonitor. + enabled: false + # -- Configures the endpoints for the serviceMonitor. + # @default -- See values.yaml + endpoints: + - port: http + scheme: http + path: /metrics + interval: 30s + scrapeTimeout: 10s