Skip to content

Commit 025328e

Browse files
author
robot
committed
robot: project kube-state-metrics chart upgrades from 4.22.* to 7.1.0
Signed-off-by: robot <robot@example.com>
1 parent 6dc1c43 commit 025328e

24 files changed

+1092
-237
lines changed

charts/kube-state-metrics/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export USE_OPENSOURCE_CHART=false
44
export REPO_URL=https://prometheus-community.github.io/helm-charts
55
export REPO_NAME=kube-state-metrics
66
export CHART_NAME=kube-state-metrics
7-
export VERSION=4.22.*
7+
export VERSION=7.1.0
88

99
# pr, issue, none
1010
export UPGRADE_METHOD=pr
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
annotations:
2+
artifacthub.io/license: Apache-2.0
3+
artifacthub.io/links: |
4+
- name: Chart Source
5+
url: https://github.com/prometheus-community/helm-charts
16
apiVersion: v2
2-
appVersion: 2.6.0
7+
appVersion: 2.18.0
38
description: Install kube-state-metrics to generate and expose cluster-level metrics
49
home: https://github.com/kubernetes/kube-state-metrics/
510
keywords:
@@ -10,16 +15,19 @@ keywords:
1015
maintainers:
1116
- email: tariq.ibrahim@mulesoft.com
1217
name: tariq1890
18+
url: https://github.com/tariq1890
1319
- email: manuel@rueg.eu
1420
name: mrueg
21+
url: https://github.com/mrueg
1522
- email: david@0xdc.me
1623
name: dotdc
24+
url: https://github.com/dotdc
1725
name: kube-state-metrics
1826
sources:
1927
- https://github.com/kubernetes/kube-state-metrics/
2028
type: application
21-
version: 4.22.3
29+
version: 7.1.0
2230
dependencies:
2331
- name: kube-state-metrics
24-
version: "4.22.*"
32+
version: "7.1.0"
2533
repository: "https://prometheus-community.github.io/helm-charts"

charts/kube-state-metrics/kube-state-metrics/README.md

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@
22

33
Installs the [kube-state-metrics agent](https://github.com/kubernetes/kube-state-metrics).
44

5-
## Get Repo Info
5+
## Usage
66

7-
```console
8-
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
9-
helm repo update
10-
```
7+
The chart is distributed as an [OCI Artifact](https://helm.sh/docs/topics/registries/) as well as via a traditional [Helm Repository](https://helm.sh/docs/topics/chart_repository/).
8+
9+
- OCI Artifact: `oci://ghcr.io/prometheus-community/charts/kube-state-metrics`
10+
- Helm Repository: `https://prometheus-community.github.io/helm-charts` with chart `kube-state-metrics`
1111

12-
_See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command documentation._
12+
The installation instructions use the OCI registry. Refer to the [`helm repo`]([`helm repo`](https://helm.sh/docs/helm/helm_repo/)) command documentation for information on installing charts via the traditional repository.
1313

14-
## Install Chart
14+
### Install Chart
1515

1616
```console
17-
helm install [RELEASE_NAME] prometheus-community/kube-state-metrics [flags]
17+
helm install [RELEASE_NAME] oci://ghcr.io/prometheus-community/charts/kube-state-metrics [flags]
1818
```
1919

2020
_See [configuration](#configuration) below._
2121

2222
_See [helm install](https://helm.sh/docs/helm/helm_install/) for command documentation._
2323

24-
## Uninstall Chart
24+
### Uninstall Chart
2525

2626
```console
2727
helm uninstall [RELEASE_NAME]
@@ -31,38 +31,57 @@ This removes all the Kubernetes components associated with the chart and deletes
3131

3232
_See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall/) for command documentation._
3333

34-
## Upgrading Chart
34+
### Upgrading Chart
3535

3636
```console
37-
helm upgrade [RELEASE_NAME] prometheus-community/kube-state-metrics [flags]
37+
helm upgrade [RELEASE_NAME] oci://ghcr.io/prometheus-community/charts/kube-state-metrics [flags]
3838
```
3939

4040
_See [helm upgrade](https://helm.sh/docs/helm/helm_upgrade/) for command documentation._
4141

42-
### Migrating from stable/kube-state-metrics and kubernetes/kube-state-metrics
42+
#### Migrating from stable/kube-state-metrics and kubernetes/kube-state-metrics
4343

4444
You can upgrade in-place:
4545

46-
1. [get repo info](#get-repo-info)
47-
1. [upgrade](#upgrading-chart) your existing release name using the new chart repo
46+
1. [upgrade](#upgrading-chart) your existing release name using the new chart repository
4847

48+
## Upgrading to v6.0.0
49+
50+
This version drops support for deprecated Pod Security Policy resources.
4951

5052
## Upgrading to v3.0.0
5153

5254
v3.0.0 includes kube-state-metrics v2.0, see the [changelog](https://github.com/kubernetes/kube-state-metrics/blob/release-2.0/CHANGELOG.md) for major changes on the application-side.
5355

5456
The upgraded chart now the following changes:
55-
* Dropped support for helm v2 (helm v3 or later is required)
56-
* collectors key was renamed to resources
57-
* namespace key was renamed to namespaces
5857

58+
- Dropped support for helm v2 (helm v3 or later is required)
59+
- collectors key was renamed to resources
60+
- namespace key was renamed to namespaces
5961

6062
## Configuration
6163

6264
See [Customizing the Chart Before Installing](https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing). To see all configurable options with detailed comments:
6365

6466
```console
65-
helm show values prometheus-community/kube-state-metrics
67+
helm show values oci://ghcr.io/prometheus-community/charts/kube-state-metrics
68+
```
69+
70+
### kube-rbac-proxy
71+
72+
You can enable `kube-state-metrics` endpoint protection using `kube-rbac-proxy`. By setting `kubeRBACProxy.enabled: true`, this chart will deploy one RBAC proxy container per endpoint (metrics & telemetry).
73+
To authorize access, authenticate your requests (via a `ServiceAccount` for example) with a `ClusterRole` attached such as:
74+
75+
```yaml
76+
apiVersion: rbac.authorization.k8s.io/v1
77+
kind: ClusterRole
78+
metadata:
79+
name: kube-state-metrics-read
80+
rules:
81+
- apiGroups: [ "" ]
82+
resources: ["services/kube-state-metrics"]
83+
verbs:
84+
- get
6685
```
6786
68-
You may also run `helm show values` on this chart's [dependencies](#dependencies) for additional options.
87+
See [kube-rbac-proxy examples](https://github.com/brancz/kube-rbac-proxy/tree/master/examples/resource-attributes) for more details.

charts/kube-state-metrics/kube-state-metrics/charts/kube-state-metrics/Chart.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
annotations:
2+
artifacthub.io/license: Apache-2.0
3+
artifacthub.io/links: |
4+
- name: Chart Source
5+
url: https://github.com/prometheus-community/helm-charts
16
apiVersion: v2
2-
appVersion: 2.6.0
7+
appVersion: 2.18.0
38
description: Install kube-state-metrics to generate and expose cluster-level metrics
49
home: https://github.com/kubernetes/kube-state-metrics/
510
keywords:
@@ -10,12 +15,15 @@ keywords:
1015
maintainers:
1116
- email: tariq.ibrahim@mulesoft.com
1217
name: tariq1890
18+
url: https://github.com/tariq1890
1319
- email: manuel@rueg.eu
1420
name: mrueg
21+
url: https://github.com/mrueg
1522
- email: david@0xdc.me
1623
name: dotdc
24+
url: https://github.com/dotdc
1725
name: kube-state-metrics
1826
sources:
1927
- https://github.com/kubernetes/kube-state-metrics/
2028
type: application
21-
version: 4.22.3
29+
version: 7.1.0

charts/kube-state-metrics/kube-state-metrics/charts/kube-state-metrics/README.md

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@
22

33
Installs the [kube-state-metrics agent](https://github.com/kubernetes/kube-state-metrics).
44

5-
## Get Repo Info
5+
## Usage
66

7-
```console
8-
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
9-
helm repo update
10-
```
7+
The chart is distributed as an [OCI Artifact](https://helm.sh/docs/topics/registries/) as well as via a traditional [Helm Repository](https://helm.sh/docs/topics/chart_repository/).
8+
9+
- OCI Artifact: `oci://ghcr.io/prometheus-community/charts/kube-state-metrics`
10+
- Helm Repository: `https://prometheus-community.github.io/helm-charts` with chart `kube-state-metrics`
1111

12-
_See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command documentation._
12+
The installation instructions use the OCI registry. Refer to the [`helm repo`]([`helm repo`](https://helm.sh/docs/helm/helm_repo/)) command documentation for information on installing charts via the traditional repository.
1313

14-
## Install Chart
14+
### Install Chart
1515

1616
```console
17-
helm install [RELEASE_NAME] prometheus-community/kube-state-metrics [flags]
17+
helm install [RELEASE_NAME] oci://ghcr.io/prometheus-community/charts/kube-state-metrics [flags]
1818
```
1919

2020
_See [configuration](#configuration) below._
2121

2222
_See [helm install](https://helm.sh/docs/helm/helm_install/) for command documentation._
2323

24-
## Uninstall Chart
24+
### Uninstall Chart
2525

2626
```console
2727
helm uninstall [RELEASE_NAME]
@@ -31,38 +31,57 @@ This removes all the Kubernetes components associated with the chart and deletes
3131

3232
_See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall/) for command documentation._
3333

34-
## Upgrading Chart
34+
### Upgrading Chart
3535

3636
```console
37-
helm upgrade [RELEASE_NAME] prometheus-community/kube-state-metrics [flags]
37+
helm upgrade [RELEASE_NAME] oci://ghcr.io/prometheus-community/charts/kube-state-metrics [flags]
3838
```
3939

4040
_See [helm upgrade](https://helm.sh/docs/helm/helm_upgrade/) for command documentation._
4141

42-
### Migrating from stable/kube-state-metrics and kubernetes/kube-state-metrics
42+
#### Migrating from stable/kube-state-metrics and kubernetes/kube-state-metrics
4343

4444
You can upgrade in-place:
4545

46-
1. [get repo info](#get-repo-info)
47-
1. [upgrade](#upgrading-chart) your existing release name using the new chart repo
46+
1. [upgrade](#upgrading-chart) your existing release name using the new chart repository
4847

48+
## Upgrading to v6.0.0
49+
50+
This version drops support for deprecated Pod Security Policy resources.
4951

5052
## Upgrading to v3.0.0
5153

5254
v3.0.0 includes kube-state-metrics v2.0, see the [changelog](https://github.com/kubernetes/kube-state-metrics/blob/release-2.0/CHANGELOG.md) for major changes on the application-side.
5355

5456
The upgraded chart now the following changes:
55-
* Dropped support for helm v2 (helm v3 or later is required)
56-
* collectors key was renamed to resources
57-
* namespace key was renamed to namespaces
5857

58+
- Dropped support for helm v2 (helm v3 or later is required)
59+
- collectors key was renamed to resources
60+
- namespace key was renamed to namespaces
5961

6062
## Configuration
6163

6264
See [Customizing the Chart Before Installing](https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing). To see all configurable options with detailed comments:
6365

6466
```console
65-
helm show values prometheus-community/kube-state-metrics
67+
helm show values oci://ghcr.io/prometheus-community/charts/kube-state-metrics
68+
```
69+
70+
### kube-rbac-proxy
71+
72+
You can enable `kube-state-metrics` endpoint protection using `kube-rbac-proxy`. By setting `kubeRBACProxy.enabled: true`, this chart will deploy one RBAC proxy container per endpoint (metrics & telemetry).
73+
To authorize access, authenticate your requests (via a `ServiceAccount` for example) with a `ClusterRole` attached such as:
74+
75+
```yaml
76+
apiVersion: rbac.authorization.k8s.io/v1
77+
kind: ClusterRole
78+
metadata:
79+
name: kube-state-metrics-read
80+
rules:
81+
- apiGroups: [ "" ]
82+
resources: ["services/kube-state-metrics"]
83+
verbs:
84+
- get
6685
```
6786
68-
You may also run `helm show values` on this chart's [dependencies](#dependencies) for additional options.
87+
See [kube-rbac-proxy examples](https://github.com/brancz/kube-rbac-proxy/tree/master/examples/resource-attributes) for more details.

charts/kube-state-metrics/kube-state-metrics/charts/kube-state-metrics/templates/NOTES.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,16 @@ In your case, {{ template "kube-state-metrics.fullname" . }}.{{ template "kube-s
88
They are served either as plaintext or protobuf depending on the Accept header.
99
They are designed to be consumed either by Prometheus itself or by a scraper that is compatible with scraping a Prometheus client endpoint.
1010

11+
{{- if .Values.kubeRBACProxy.enabled}}
12+
13+
kube-rbac-proxy endpoint protections is enabled:
14+
- Metrics endpoints are now HTTPS
15+
- Ensure that the client authenticates the requests (e.g. via service account) with the following role permissions:
16+
```
17+
rules:
18+
- apiGroups: [ "" ]
19+
resources: ["services/{{ template "kube-state-metrics.fullname" . }}"]
20+
verbs:
21+
- get
22+
```
23+
{{- end }}

0 commit comments

Comments
 (0)