Skip to content

Commit e1dde66

Browse files
committed
Merge tag 'v2.11.0' into os-master
2 parents 8969a07 + 5e4e7d0 commit e1dde66

Some content is hidden

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

68 files changed

+1011
-761
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ If the matter is security related, please disclose it privately see https://gith
1818

1919
**How to reproduce it (as minimally and precisely as possible)**:
2020

21+
```bash
22+
# An example: https://github.com/kubernetes/kube-state-metrics/issues/2223#issuecomment-1792850276
23+
minikube start
24+
...
25+
go run main.go --custom-resource-state-only --custom-resource-state-config-file ksm-2223/custom-resource-config-file.yaml --kubeconfig ~/.kube/config
26+
```
27+
2128
**Anything else we need to know?**:
2229

2330
**Environment**:

.github/dependabot.yml

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

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/checkout@v3
3333

3434
- name: Set up Go 1.x
35-
uses: actions/setup-go@v4
35+
uses: actions/setup-go@v5
3636
with:
3737
go-version: ${{ env.GO_VERSION }}
3838
id: go
@@ -54,7 +54,7 @@ jobs:
5454
uses: actions/checkout@v3
5555

5656
- name: Set up Go 1.x
57-
uses: actions/setup-go@v4
57+
uses: actions/setup-go@v5
5858
with:
5959
go-version: ${{ env.GO_VERSION }}
6060
id: go
@@ -75,7 +75,7 @@ jobs:
7575
uses: actions/checkout@v3
7676

7777
- name: Set up Go 1.x
78-
uses: actions/setup-go@v4
78+
uses: actions/setup-go@v5
7979
with:
8080
go-version: ${{ env.GO_VERSION }}
8181
id: go
@@ -96,7 +96,7 @@ jobs:
9696
uses: actions/checkout@v3
9797

9898
- name: Set up Go 1.x
99-
uses: actions/setup-go@v4
99+
uses: actions/setup-go@v5
100100
with:
101101
go-version: ${{ env.GO_VERSION }}
102102
id: go
@@ -117,7 +117,7 @@ jobs:
117117
uses: actions/checkout@v3
118118

119119
- name: Set up Go 1.x
120-
uses: actions/setup-go@v4
120+
uses: actions/setup-go@v5
121121
with:
122122
go-version: ${{ env.GO_VERSION }}
123123
id: go
@@ -153,7 +153,7 @@ jobs:
153153
uses: actions/checkout@v3
154154

155155
- name: Set up Go 1.x
156-
uses: actions/setup-go@v4
156+
uses: actions/setup-go@v5
157157
with:
158158
go-version: ${{ env.GO_VERSION }}
159159
id: go
@@ -174,7 +174,7 @@ jobs:
174174
uses: actions/checkout@v3
175175

176176
- name: Set up Go 1.x
177-
uses: actions/setup-go@v4
177+
uses: actions/setup-go@v5
178178
with:
179179
go-version: ${{ env.GO_VERSION }}
180180
id: go
@@ -195,7 +195,7 @@ jobs:
195195
uses: actions/checkout@v3
196196

197197
- name: Set up Go 1.x
198-
uses: actions/setup-go@v4
198+
uses: actions/setup-go@v5
199199
with:
200200
go-version: ${{ env.GO_VERSION }}
201201
id: go

.github/workflows/govulncheck.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ on:
88
env:
99
GO_VERSION: "^1.20"
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
ci-security-checks:
1316
runs-on: ubuntu-latest
1417
steps:
1518
- uses: actions/checkout@v3
1619
name: Checkout code
1720
- name: Set up Go 1.x
18-
uses: actions/setup-go@v4
21+
uses: actions/setup-go@v5
1922
with:
2023
go-version: ${{ env.GO_VERSION }}
2124
- name: Install govulncheck binary

.github/workflows/openvex.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: openvex
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [published]
7+
jobs:
8+
vexctl:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
- name: Set environment variables
14+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
15+
- uses: openvex/generate-vex@c59881b41451d7ccba5c3b74cd195382b8971fcd
16+
# Refer: https://github.com/openvex/vexctl#operational-model
17+
name: Run vexctl
18+
with:
19+
product: pkg:golang/k8s.io/kube-state-metrics/v2@${{ env.RELEASE_VERSION }}

.github/workflows/semantic.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ on:
77
- edited
88
- synchronize
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
main:
15+
permissions:
16+
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs
17+
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR
1218
name: Validate PR title for semantic commit message
1319
runs-on: ubuntu-latest
1420
steps:

.openvex/templates/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# OpenVEX Templates Directory
2+
3+
This directory contains the OpenVEX data for this repository.
4+
The files stored in this directory are used as templates by
5+
`vexctl generate` when generating VEX data for a release or
6+
a specific artifact.
7+
8+
To add new statements to publish data about a vulnerability,
9+
download [vexctl](https://github.com/openvex/vexctl)
10+
and append new statements using `vexctl add`. For example:
11+
12+
```
13+
vexctl add --in-place main.openvex.json pkg:oci/test CVE-2014-1234567 fixed
14+
```
15+
16+
That will add a new VEX statement expressing that the impact of
17+
CVE-2014-1234567 is under investigation in the test image. When
18+
cutting a new release, for `pkg:oci/test` the new file will be
19+
incorporated to the relase's VEX data.
20+
21+
## Read more about OpenVEX
22+
23+
To know more about generating, publishing and using VEX data
24+
in your project, please check out the [vexctl repository and
25+
documentation](https://github.com/openvex/vexctl).
26+
27+
OpenVEX also has an [examples repository](https://github.com/openvex/examples)
28+
with samples and docs.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"@context": "https://openvex.dev/ns/v0.2.0",
3+
"@id": "https://openvex.dev/docs/public/vex-2912204db7d51d98234a931d600f7cc2dd0bf24a5b5b326de138d64b30c22911",
4+
"author": "vexctl (automated template)",
5+
"timestamp": "2023-12-15T22:55:18.754525+05:30",
6+
"version": 1,
7+
"statements": []
8+
}

CHANGELOG.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,28 @@
1+
## v2.11.0 / 2024-03-04
2+
3+
### Note
4+
5+
This release builds with Golang `v1.21.8`.
6+
7+
* [ENHANCEMENT] Add OpenSSF Scorecard to README by @dalehenries in <https://github.com/kubernetes/kube-state-metrics/pull/2277>
8+
* [ENHANCEMENT] Generate OpenVX data for every release by @shafeeqes in <https://github.com/kubernetes/kube-state-metrics/pull/2276>
9+
* [ENHANCEMENT] Add restartPolicy to `kube_pod_init_container_info` metric by @changhyuni in <https://github.com/kubernetes/kube-state-metrics/pull/2240>
10+
* [FEATURE] Add `kube_node_status_addresses` metric by @stonith in <https://github.com/kubernetes/kube-state-metrics/pull/2252>
11+
* [FEATURE] Add namespace label to `endpointslice` metrics by @mrueg in <https://github.com/kubernetes/kube-state-metrics/pull/2266>
12+
* [FEATURE] Add opt-in `kube_persistentvolume_csi_attributes` metric by @machadovilaca in <https://github.com/kubernetes/kube-state-metrics/pull/2133>
13+
* [FEATURE] Add new metric `kube_pod_scheduler` metric by @adinhodovic in <https://github.com/kubernetes/kube-state-metrics/pull/2222>
14+
* [FEATURE] Support filtering annotations allow-list by `*` by @xonvanetta in <https://github.com/kubernetes/kube-state-metrics/pull/2234>
15+
* [ENHANCEMENT] Support scraping pod metrics that are still in scheduling status and have no assigned nodes by @mickeyzzc in <https://github.com/kubernetes/kube-state-metrics/pull/2217>
16+
* [FEATURE] Add backend resource info for `kube_ingress_path` by @rohitphatak in <https://github.com/kubernetes/kube-state-metrics/pull/2109>
17+
* [FEATURE] Add `kube_secret_owner` by @jrcichra in <https://github.com/kubernetes/kube-state-metrics/pull/2298>
18+
119
## v2.10.1 / 2023-10-09
220

321
### Note
4-
- This release addresses a regression introduced in https://github.com/kubernetes/kube-state-metrics/pull/2105.
522

6-
* [BUGFIX] Remove FieldSelector from non-namespaced resources by @mrueg and @dgrisonnet in https://github.com/kubernetes/kube-state-metrics/pull/2190
23+
* This release addresses a regression introduced in [#2105](https://github.com/kubernetes/kube-state-metrics/pull/2105).
24+
25+
* [BUGFIX] Remove FieldSelector from non-namespaced resources by @mrueg and @dgrisonnet in [#2190](https://github.com/kubernetes/kube-state-metrics/pull/2190)
726
* [ENHANCEMENT] Bump Go to v1.20.8
827

928
## v2.10.0 / 2023-08-31

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ OS ?= $(shell uname -s | tr A-Z a-z)
1616
ALL_ARCH = amd64 arm arm64 ppc64le s390x
1717
PKG = github.com/prometheus/common
1818
PROMETHEUS_VERSION = 2.46.0
19-
GO_VERSION = 1.20.10
19+
GO_VERSION = 1.21.8
2020
IMAGE = $(REGISTRY)/kube-state-metrics
2121
MULTI_ARCH_IMG = $(IMAGE)-$(ARCH)
2222
USER ?= $(shell id -u -n)

0 commit comments

Comments
 (0)