Skip to content

Commit 80d41fa

Browse files
Merge pull request #106 from dgrisonnet/bump-2.10.1
MON-3548: Merge tag v2.10.1
2 parents 3653218 + 8539a09 commit 80d41fa

File tree

175 files changed

+2622
-1372
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+2622
-1372
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gomod"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@ env:
2121
E2E_SETUP_KUBECTL: yes
2222
SUDO: sudo
2323
GO_VERSION: "^1.20"
24-
GOLANGCI_LINT_VERSION: "v1.51.2"
24+
GOLANGCI_LINT_VERSION: "v1.54.2"
2525

2626
jobs:
2727
ci-go-lint:
2828
name: ci-go-lint
2929
runs-on: ubuntu-latest
3030
steps:
31+
- name: Check out code into the Go module directory
32+
uses: actions/checkout@v3
33+
3134
- name: Set up Go 1.x
3235
uses: actions/setup-go@v4
3336
with:
3437
go-version: ${{ env.GO_VERSION }}
3538
id: go
3639

37-
- name: Check out code into the Go module directory
38-
uses: actions/checkout@v3
39-
4040
- name: Setup environment
4141
run: |
4242
make install-tools
@@ -50,15 +50,15 @@ jobs:
5050
name: ci-validate-manifests
5151
runs-on: ubuntu-latest
5252
steps:
53+
- name: Check out code into the Go module directory
54+
uses: actions/checkout@v3
55+
5356
- name: Set up Go 1.x
5457
uses: actions/setup-go@v4
5558
with:
5659
go-version: ${{ env.GO_VERSION }}
5760
id: go
5861

59-
- name: Check out code into the Go module directory
60-
uses: actions/checkout@v3
61-
6262
- name: Setup environment
6363
run: |
6464
make install-tools
@@ -71,15 +71,15 @@ jobs:
7171
name: ci-validate-go-modules
7272
runs-on: ubuntu-latest
7373
steps:
74+
- name: Check out code into the Go module directory
75+
uses: actions/checkout@v3
76+
7477
- name: Set up Go 1.x
7578
uses: actions/setup-go@v4
7679
with:
7780
go-version: ${{ env.GO_VERSION }}
7881
id: go
7982

80-
- name: Check out code into the Go module directory
81-
uses: actions/checkout@v3
82-
8383
- name: Setup environment
8484
run: |
8585
make install-tools
@@ -92,15 +92,15 @@ jobs:
9292
name: ci-validate-docs
9393
runs-on: ubuntu-latest
9494
steps:
95+
- name: Check out code into the Go module directory
96+
uses: actions/checkout@v3
97+
9598
- name: Set up Go 1.x
9699
uses: actions/setup-go@v4
97100
with:
98101
go-version: ${{ env.GO_VERSION }}
99102
id: go
100103

101-
- name: Check out code into the Go module directory
102-
uses: actions/checkout@v3
103-
104104
- name: Setup environment
105105
run: |
106106
make install-tools
@@ -113,15 +113,15 @@ jobs:
113113
name: ci-unit-tests
114114
runs-on: ubuntu-latest
115115
steps:
116+
- name: Check out code into the Go module directory
117+
uses: actions/checkout@v3
118+
116119
- name: Set up Go 1.x
117120
uses: actions/setup-go@v4
118121
with:
119122
go-version: ${{ env.GO_VERSION }}
120123
id: go
121124

122-
- name: Check out code into the Go module directory
123-
uses: actions/checkout@v3
124-
125125
- name: Setup environment
126126
run: |
127127
make install-tools
@@ -149,15 +149,15 @@ jobs:
149149
name: ci-benchmark-tests
150150
runs-on: ubuntu-latest
151151
steps:
152+
- name: Check out code into the Go module directory
153+
uses: actions/checkout@v3
154+
152155
- name: Set up Go 1.x
153156
uses: actions/setup-go@v4
154157
with:
155158
go-version: ${{ env.GO_VERSION }}
156159
id: go
157160

158-
- name: Check out code into the Go module directory
159-
uses: actions/checkout@v3
160-
161161
- name: Setup environment
162162
run: |
163163
make install-tools
@@ -170,15 +170,15 @@ jobs:
170170
name: ci-build-kube-state-metrics
171171
runs-on: ubuntu-latest
172172
steps:
173+
- name: Check out code into the Go module directory
174+
uses: actions/checkout@v3
175+
173176
- name: Set up Go 1.x
174177
uses: actions/setup-go@v4
175178
with:
176179
go-version: ${{ env.GO_VERSION }}
177180
id: go
178181

179-
- name: Check out code into the Go module directory
180-
uses: actions/checkout@v3
181-
182182
- name: Setup environment
183183
run: |
184184
make install-tools
@@ -191,15 +191,15 @@ jobs:
191191
name: ci-e2e-tests
192192
runs-on: ubuntu-latest
193193
steps:
194+
- name: Check out code into the Go module directory
195+
uses: actions/checkout@v3
196+
194197
- name: Set up Go 1.x
195198
uses: actions/setup-go@v4
196199
with:
197200
go-version: ${{ env.GO_VERSION }}
198201
id: go
199202

200-
- name: Check out code into the Go module directory
201-
uses: actions/checkout@v3
202-
203203
- name: Setup environment
204204
run: |
205205
make install-tools

.github/workflows/govulncheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
go install golang.org/x/vuln/cmd/govulncheck@latest
2424
- name: Run security checks
2525
run: |
26-
govulncheck -v ./...
26+
govulncheck ./...

.github/workflows/semantic.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "Lint pull request title"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
main:
12+
name: Validate PR title for semantic commit message
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: amannn/action-semantic-pull-request@v5
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
## v2.10.1 / 2023-10-09
2+
3+
### Note
4+
- This release addresses a regression introduced in https://github.com/kubernetes/kube-state-metrics/pull/2105.
5+
6+
* [BUGFIX] Remove FieldSelector from non-namespaced resources by @mrueg and @dgrisonnet in https://github.com/kubernetes/kube-state-metrics/pull/2190
7+
* [ENHANCEMENT] Bump Go to v1.20.8
8+
9+
## v2.10.0 / 2023-08-31
10+
11+
### Note
12+
- Label and annotation metrics aren't exposed by default anymore to reduce the memory usage of the default configuration of kube-state-metrics. Before this change, they used to only include the name and namespace of the objects which is not relevant to users not opting in these metrics.
13+
14+
* [BUGFIX] Log no _info suffix in name only once per reading the configuration for custommetrics by @chrischdi in https://github.com/kubernetes/kube-state-metrics/pull/2157
15+
* [BUGFIX] Don't crash on non-existent valueFrom path values by @chihshenghuang in https://github.com/kubernetes/kube-state-metrics/pull/2140
16+
* [BUGFIX] Index out of range in metrics_store.SanitizeHeaders by @mrueg in https://github.com/kubernetes/kube-state-metrics/pull/2166
17+
* [BUGFIX] Always extract the headers but only write it when we have custommetrics by @chrischdi in https://github.com/kubernetes/kube-state-metrics/pull/2154
18+
* [BUGFIX] Add filtering for Lease metrics by @ntoofu in https://github.com/kubernetes/kube-state-metrics/pull/2122
19+
* [FEATURE] Implement kube_pod_status_initialized_time by @opeco17 in https://github.com/kubernetes/kube-state-metrics/pull/2148
20+
* [FEATURE] Disable labels and annotations metrics when metric-annotations-… by @opeco17 in https://github.com/kubernetes/kube-state-metrics/pull/2145
21+
* [FEATURE] Add webhooks client config service metrics by @dgrisonnet in https://github.com/kubernetes/kube-state-metrics/pull/2114
22+
* [FEATURE] Support kube_persistentvolumeclaim_deletion_timestamp by @maxime1907 in https://github.com/kubernetes/kube-state-metrics/pull/2074
23+
* [FEATURE] Support kube_persistentvolume_deletion_timestamp by @maxime1907 in https://github.com/kubernetes/kube-state-metrics/pull/2075
24+
* [FEATURE] Adds new metric `kube_pod_service_account` by @swarup-stripe in https://github.com/kubernetes/kube-state-metrics/pull/2096
25+
* [FEATURE] Add volumemode to PVC info metric by @machadovilaca in https://github.com/kubernetes/kube-state-metrics/pull/2134
26+
* [FEATURE] Enable metric-annotations-allowlist and metric-labels-allowlist for ResourceQuota by @opeco17 in https://github.com/kubernetes/kube-state-metrics/pull/2175
27+
* [FEATURE] Allow field KV general matching by @rexagod in https://github.com/kubernetes/kube-state-metrics/pull/2067
28+
* [FEATURE] Support hot reload for kubeconfig by @opeco17 in https://github.com/kubernetes/kube-state-metrics/pull/2144
29+
* [FEATURE] Add support for endpoint topology routing hints by @MarkSRobinson in https://github.com/kubernetes/kube-state-metrics/pull/2090
30+
131
## v2.9.2 / 2023-05-30
232

333
This release does not incorporate any user-facing changes. Re-running release procedures as the process for the previous release failed. Changes are listed in v2.9.0.

CONTRIBUTING.md

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,40 @@ _As contributors and maintainers of this project, and in the interest of fosteri
66

77
## Getting Started
88

9-
We have full documentation on how to get started contributing here:
9+
We have full documentation on how to get started contributing here:
1010

11-
<!---
12-
If your repo has certain guidelines for contribution, put them here ahead of the general k8s resources
13-
-->
11+
### Semantic Commit Messages
12+
13+
We use [semantic commit messages](https://www.conventionalcommits.org/en/v1.0.0/) in this repository.
14+
15+
They follow this format: `<type>[optional scope]: <description>`
16+
17+
Examples for commit messages following this are:
18+
19+
`feat: allow provided config object to extend other configs`
20+
21+
You can also include a scope within parenthesis:
22+
23+
`fix(scope): Prevent wrong calculation of storage`
24+
25+
Here's a list of types that we use:
26+
27+
| Type | Explanation |
28+
|---|---|
29+
| feat | A new feature |
30+
| fix | A bug fix |
31+
| docs | Documentation only changes |
32+
| style | Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) |
33+
| refactor | A code change that neither fixes a bug nor adds a feature |
34+
| perf | A code change that improves performance |
35+
| test | Adding missing tests or correcting existing tests |
36+
| build |Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) |
37+
| ci | Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs) |
38+
| chore | Other changes that don't modify src or test files |
39+
| revert | Reverts a previous commit |
40+
41+
42+
### Further Information
1443

1544
- [Contributor License Agreement](https://git.k8s.io/community/CLA.md) Kubernetes projects require that you sign a Contributor License Agreement (CLA) before we can accept your pull requests
1645
- [Kubernetes Contributor Guide](http://git.k8s.io/community/contributors/guide) - Main contributor documentation, or you can just jump directly to the [contributing section](http://git.k8s.io/community/contributors/guide#contributing)

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ GIT_COMMIT ?= $(shell git rev-parse --short HEAD)
1515
OS ?= $(shell uname -s | tr A-Z a-z)
1616
ALL_ARCH = amd64 arm arm64 ppc64le s390x
1717
PKG = github.com/prometheus/common
18-
PROMETHEUS_VERSION = 2.44.0
19-
GO_VERSION = 1.20.4
18+
PROMETHEUS_VERSION = 2.46.0
19+
GO_VERSION = 1.20.10
2020
IMAGE = $(REGISTRY)/kube-state-metrics
2121
MULTI_ARCH_IMG = $(IMAGE)-$(ARCH)
2222
USER ?= $(shell id -u -n)

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ Generally, it is recommended to use the latest release of kube-state-metrics. If
7373

7474
| kube-state-metrics | Kubernetes client-go Version |
7575
|--------------------|:----------------------------:|
76-
| **v2.5.0** | v1.24 |
7776
| **v2.6.0** | v1.24 |
7877
| **v2.7.0** | v1.25 |
7978
| **v2.8.2** | v1.26 |
8079
| **v2.9.2** | v1.26 |
81-
| **main** | v1.26 |
80+
| **v2.10.1** | v1.27 |
81+
| **main** | v1.28 |
8282

8383

8484
#### Resource group version compatibility
@@ -90,8 +90,8 @@ release.
9090
#### Container Image
9191

9292
The latest container image can be found at:
93-
* `registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.9.2` (arch: `amd64`, `arm`, `arm64`, `ppc64le` and `s390x`)
94-
* View all multi-architecture images at [here](https://explore.ggcr.dev/?image=registry.k8s.io%2Fkube-state-metrics%2Fkube-state-metrics:v2.9.1)
93+
* `registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.10.1` (arch: `amd64`, `arm`, `arm64`, `ppc64le` and `s390x`)
94+
* View all multi-architecture images at [here](https://explore.ggcr.dev/?image=registry.k8s.io%2Fkube-state-metrics%2Fkube-state-metrics:v2.10.1)
9595

9696
### Metrics Documentation
9797

SECURITY_CONTACTS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
# INSTRUCTIONS AT https://kubernetes.io/security/
1212

1313
dgrisonnet
14-
fpetkovski
1514
mrueg
15+
rexagod

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.9.2
1+
2.10.1

0 commit comments

Comments
 (0)