Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ACM-5438] Upgrade with resolved merge conflict #39

Merged
merged 1,321 commits into from
Jun 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1321 commits
Select commit Hold shift + click to select a range
fad76e4
Merge pull request #1784 from ikarlashov/fix_customresourcestate_doc
k8s-ci-robot Jul 12, 2022
51df8fe
add rolebinding metrics
kaitoii11 Aug 6, 2022
de8b1b4
fix typo
kaitoii11 Aug 6, 2022
2cd6aaa
fix filename and sort order
kaitoii11 Aug 9, 2022
767af98
Merge pull request #1725 from tanguyfalconnet/feat/hpa/status_current…
k8s-ci-robot Aug 9, 2022
df7dafe
Apply suggestions from code review
kaitoii11 Aug 9, 2022
aa01f53
fix metrics name
kaitoii11 Aug 9, 2022
ba904d8
fix typos
kaitoii11 Aug 9, 2022
f406c1a
feat(logging): migrate to structured logging
dmpe Aug 13, 2022
a2ccd75
Apply suggestions from code review
dmpe Aug 13, 2022
62beea0
Apply suggestions from code review
dmpe Aug 13, 2022
d5486a7
Apply suggestions from code review
dmpe Aug 13, 2022
ebb8b10
Apply suggestions from code review
dmpe Aug 13, 2022
2f20203
Replace pkg/errors with stdlib errors
mrueg Aug 15, 2022
9063fa6
Merge pull request #1808 from mrueg/drop-pkg-errors
k8s-ci-robot Aug 16, 2022
4bb1b38
Merge pull request #1807 from dmpe/strcuturedlogging_part1
k8s-ci-robot Aug 16, 2022
52d3ab6
pkg/customresourcestate implement info and stateSet metric type and r…
chrischdi Jun 8, 2022
b314ccb
Merge pull request #1777 from chrischdi/poc-additional-metric-types-2
k8s-ci-robot Aug 18, 2022
3532203
Merge pull request #1799 from kaitoii11/rolebinding
k8s-ci-robot Aug 18, 2022
25f3b8f
Do not expose info metric for nil objects
chrischdi Aug 19, 2022
f1d5653
Merge pull request #1809 from chrischdi/pr-info-nometric-nil
k8s-ci-robot Aug 19, 2022
03906e6
Update dependencies
mrueg Jul 18, 2022
9f7d1af
graduate new endpoint metrics to STABLE
bavarianbidi Aug 23, 2022
a6984e0
feat: Add local storage labels to kube_persistentvolume_info
nabokihms Aug 23, 2022
9939059
Make code inline with the other parts
nabokihms Aug 23, 2022
69cc196
Merge pull request #1812 from bavarianbidi/deprecate_precomputed_endp…
k8s-ci-robot Aug 23, 2022
5b017f7
Merge pull request #1789 from mrueg/update-go
k8s-ci-robot Aug 23, 2022
93e79fc
Remove RBAC resources from default exposed metric set
mrueg Aug 23, 2022
44831f7
Prevent multiple custom resource configurations for the same resource
chrischdi Aug 24, 2022
9e639b2
Add host path metrics, fix table formatting
nabokihms Aug 24, 2022
4c141d5
Merge pull request #1810 from chrischdi/pr-custom-resource-flag-repeat
k8s-ci-robot Aug 24, 2022
6dfeab3
Merge pull request #1816 from mrueg/disable-rbac-metrics
k8s-ci-robot Aug 24, 2022
ebc0e18
Merge pull request #1814 from nabokihms/local-storage-labels
k8s-ci-robot Aug 24, 2022
1b8b443
*: Cut v2.6.0
mrueg Aug 23, 2022
bc3b985
Merge pull request #1817 from mrueg/prep-release-2.6.0
k8s-ci-robot Aug 24, 2022
c9bb453
add exit code
ssabo Jun 8, 2022
1851bfa
fix unitests
ssabo Jun 8, 2022
e31b035
create new metric
ssabo Jun 10, 2022
0859353
unit tests
ssabo Jun 10, 2022
ffb6fe7
remove reason from exitcode
ssabo Jun 13, 2022
eb3c140
fix test
ssabo Aug 24, 2022
5bfe006
documentation
ssabo Aug 24, 2022
acca9b0
Merge pull request #1818 from kubernetes/release-2.6
k8s-ci-robot Aug 26, 2022
ee77b19
Promote two metrics to stable
CatherineF-dev Aug 31, 2022
36c925b
Update ci.yml
sashashura Aug 31, 2022
cf66346
Merge pull request #1821 from CatherineF-dev/promote-metrics
k8s-ci-robot Aug 31, 2022
7343894
Merge pull request #1822 from sashashura/patch-1
k8s-ci-robot Sep 1, 2022
20ef8a7
Merge pull request #1752 from ssabo/master
k8s-ci-robot Sep 5, 2022
386eafd
add ContainerResourceSourceType for hpa metrics and reduce cyclomatic…
whitebear009 Sep 13, 2022
8f293ab
fix/docs: Typo correction in SA metrics
qdupuy Sep 19, 2022
bef31e3
Merge pull request #1838 from qdupuy/patch-1
k8s-ci-robot Sep 21, 2022
d7a079e
Do not expose ingress path metric when service is nil
evir35 Sep 22, 2022
242cea3
Fix return blank string when Service is nil
evir35 Sep 23, 2022
7f453f0
Fix none to blank string
evir35 Sep 23, 2022
12402a5
Merge pull request #1841 from evir35/1660-do-not-expose-ingress-path-…
k8s-ci-robot Sep 23, 2022
052f572
Handle singular labels in allowlist
rexagod Sep 2, 2022
8f883f0
Allow Lease metrics to be exported across all namespaces
lantingchiang Sep 27, 2022
5464a9d
update lease store to export namespace
lantingchiang Sep 28, 2022
a345efe
go.mod: Upgrade to k8s 1.25
mrueg Aug 26, 2022
1123917
Build with go 1.19
mrueg Aug 26, 2022
3eee641
README.md: Replace Kubernetes compat matrix
mrueg Oct 5, 2022
633cbf4
Represent GVK information as labels
rexagod Oct 7, 2022
ceaad61
export Lease.Spec.HolderIdentity
lantingchiang Oct 11, 2022
29e043e
account for nil holderIdentity case
lantingchiang Oct 12, 2022
cb5f88b
Merge pull request #1845 from lantingchiang/lease
k8s-ci-robot Oct 14, 2022
0880c8d
Merge pull request #1819 from mrueg/bump-go-1.19
k8s-ci-robot Oct 14, 2022
37423f4
Import k8s metrics stability framework
CatherineF-dev Sep 27, 2022
75bce1c
Upgrade dependency component-base to v0.25.2 and add TODO
CatherineF-dev Oct 7, 2022
5995c1e
Add all stable metrics
CatherineF-dev Oct 11, 2022
b909c01
Merge pull request #1844 from CatherineF-dev/import-k8s-metrics-stabi…
k8s-ci-robot Oct 14, 2022
563aac0
customresourcestate fix type indentation in example
chrischdi Oct 17, 2022
339b134
Merge pull request #1856 from chrischdi/ksm-cr-fix-docs
k8s-ci-robot Oct 17, 2022
7f906e8
fixup! Represent GVK information as labels
rexagod Oct 18, 2022
762f98b
fixup! fixup! Represent GVK information as labels
rexagod Oct 18, 2022
d4fdcda
Merge pull request #1850 from rexagod/1847
k8s-ci-robot Oct 20, 2022
6b7027f
Harden and add gosec linter
mrueg Oct 16, 2022
470c4fa
.github: Update actions
mrueg Oct 20, 2022
a13c110
add myself to OWNERs
logicalhan Oct 20, 2022
80f0366
Merge pull request #1867 from mrueg/update-gh-actions
k8s-ci-robot Oct 21, 2022
a3a509a
Merge pull request #1865 from mrueg/gosec
k8s-ci-robot Oct 21, 2022
0d55500
Merge pull request #1826 from rexagod/1786
k8s-ci-robot Oct 21, 2022
4c6fff1
Fix typos
timp87 Oct 26, 2022
1ea0ba8
One more typo fix
timp87 Oct 26, 2022
aba1302
Clarify valueFrom comment
timp87 Oct 26, 2022
846222b
Merge pull request #1870 from timp87/fix-customresourcestate-metrics-doc
k8s-ci-robot Oct 27, 2022
3d8abf8
e2e: Test against k8s 1.25.0
mrueg Nov 2, 2022
2c734dc
Makefile: Build with go 1.19.3
mrueg Nov 2, 2022
81cd6ea
go.mod: Bump dependencies
mrueg Nov 2, 2022
086a6fd
Merge pull request #1831 from whitebear009/hpa
k8s-ci-robot Nov 3, 2022
38858e6
Update OWNERS
logicalhan Nov 3, 2022
5d20fd3
Recommend kube-scheduler alternatives
rexagod Nov 3, 2022
1a55a38
Merge pull request #1849 from rexagod/1846
k8s-ci-robot Nov 3, 2022
6d2a555
Allow `labelFromKey` field
rexagod Nov 3, 2022
8a39051
Merge pull request #1874 from mrueg/dep-bump-2.7.0
k8s-ci-robot Nov 4, 2022
a5242f4
Address vulns reported by the security checks
rexagod Nov 4, 2022
2c0c8d2
Sharding per node
CatherineF-dev Oct 14, 2022
3b50fbc
Validate options
CatherineF-dev Oct 25, 2022
87a7793
Clean
CatherineF-dev Oct 26, 2022
d523f8e
Move merging fieldselectors into app/server.go and replace namespaceF…
CatherineF-dev Oct 26, 2022
f9d29ba
Refactoring
CatherineF-dev Oct 27, 2022
2f1da3a
Provide scaling example
CatherineF-dev Nov 1, 2022
1736469
Add `govulncheck` cron
rexagod Nov 4, 2022
32f08e3
Merge pull request #1866 from logicalhan/patch-2
k8s-ci-robot Nov 4, 2022
0f48343
Merge pull request #1878 from rexagod/1858-1857
k8s-ci-robot Nov 4, 2022
813496d
Update README.md
CatherineF-dev Nov 2, 2022
43c6073
Refactoring
CatherineF-dev Nov 4, 2022
53af116
introduce custom-resources-only flag ...
bavarianbidi Aug 23, 2022
d620e43
Merge pull request #1864 from CatherineF-dev/sharding-per-node
k8s-ci-robot Nov 7, 2022
d982bbc
Support filtering label allowlist by "*"
rexagod Sep 1, 2022
d5bd2c8
Merge pull request #1823 from rexagod/1815
k8s-ci-robot Nov 8, 2022
c0a03ad
Merge pull request #1813 from bavarianbidi/crd_only_mode
k8s-ci-robot Nov 8, 2022
b6c5667
Add retention policy metrics for KEP-1847
mattcary Nov 2, 2022
dc1f1f3
Merge pull request #1876 from mattcary/kep1847
k8s-ci-robot Nov 8, 2022
83d68c5
fixup! Allow `labelFromKey` field
rexagod Nov 8, 2022
a1716fa
fixup! fixup! Allow `labelFromKey` field
rexagod Nov 9, 2022
b9f0d8d
fixup! fixup! fixup! Allow `labelFromKey` field
rexagod Nov 9, 2022
2279fb2
Deprecate VPA
rexagod Sep 15, 2022
3072502
fixup! fixup! fixup! fixup! Allow `labelFromKey` field
rexagod Nov 9, 2022
d39f1b1
go.mod: Bump exporter-toolkit to 0.8.1
mrueg Nov 10, 2022
8096b31
Merge pull request #1888 from mrueg/exporter-toolkit-0.8
k8s-ci-robot Nov 10, 2022
b926fd9
Incorporate Cobra
rexagod Sep 14, 2022
e27fb87
Merge pull request #1834 from rexagod/1791-1-incorporate-cobra
k8s-ci-robot Nov 11, 2022
837f747
update kube_node_status_{capacity/allocatable} doc to clarify difference
exitflynn Nov 14, 2022
9edd02b
Merge pull request #1835 from rexagod/1790
k8s-ci-robot Nov 14, 2022
b2c90e8
Merge pull request #1880 from rexagod/1871-1868
k8s-ci-robot Nov 14, 2022
ed551af
Add node deletionTimestamp metric
rexagod Nov 12, 2022
53a0dc6
Merge pull request #1890 from rexagod/1889
k8s-ci-robot Nov 16, 2022
5888a7e
Add --config flag
rexagod Nov 6, 2022
9860f46
Implement hot-reloading based on config changes
rexagod Nov 6, 2022
f8360a8
Add end-to-end testing to verify hot-reloading
rexagod Nov 16, 2022
34b4660
Merge pull request #1827 from rexagod/1738
k8s-ci-robot Nov 17, 2022
3be79d5
Merge pull request #1894 from exitflynn/master
k8s-ci-robot Nov 21, 2022
cc0fd00
Add rexagod as reviewer
dgrisonnet Nov 22, 2022
898345f
Merge pull request #1900 from dgrisonnet/rexagod-reviewer
k8s-ci-robot Nov 23, 2022
4abefe2
add ingress class metrics
kaitoii11 Nov 20, 2022
2784269
add ingress classs as nondefault resource
kaitoii11 Nov 23, 2022
07af191
add stability experimental
kaitoii11 Nov 23, 2022
8f27e70
autoscaling/v2beta2 HorizontalPodAutoscaler is deprecated in v1.23+
JoaoBraveCoding Nov 21, 2022
6e28b18
Merge pull request #1906 from JoaoBraveCoding/1711
k8s-ci-robot Nov 24, 2022
991857c
Update internal/store/builder.go
kaitoii11 Nov 24, 2022
df2d8f1
fix linter error
kaitoii11 Nov 24, 2022
3cf1b16
Merge pull request #1905 from kaitoii11/ingressclass
k8s-ci-robot Nov 24, 2022
820741d
go.mod: Update dependencies
mrueg Nov 21, 2022
095bf79
*: Cut v2.7.0
mrueg Nov 14, 2022
abe3fd3
Merge pull request #1896 from mrueg/prep-release-2.7
k8s-ci-robot Nov 24, 2022
0cbabf9
Merge pull request #1908 from kubernetes/release-2.7
k8s-ci-robot Nov 25, 2022
b4b8c23
Add Metrics for EndpointSlices
mrueg Nov 25, 2022
af833dd
Add CatherineF-dev as reviewer
dgrisonnet Nov 29, 2022
db20a99
Merge pull request #1914 from dgrisonnet/CatherineF-dev-reviewer
k8s-ci-robot Nov 29, 2022
8b10164
Update github.com/prometheus/exporter-toolkit
simonpasquier Nov 30, 2022
a406f23
Merge pull request #1918 from simonpasquier/bump-exporter-toolkit
k8s-ci-robot Nov 30, 2022
44aea58
Merge pull request #1910 from mrueg/add-endpointslices
k8s-ci-robot Dec 1, 2022
ee89176
Add metrics for config file changes
mrueg Nov 29, 2022
2c3ea01
Replace "<none>" with empty string for "owner_kind", "owner_name" and…
pawcykca Dec 3, 2022
0553bf4
Replace special string "<none>" with empty string for "storageclass" …
pawcykca Dec 3, 2022
9858387
Update internal/store/persistentvolumeclaim.go
pawcykca Dec 5, 2022
18d87c2
Merge pull request #1923 from pawcykca/empty-string-for-owner-dimensions
k8s-ci-robot Dec 6, 2022
e355c48
Remove duplicated MetricsWriter implementation
dgrisonnet Dec 2, 2022
fa89bc9
pkg/metrics_store: add error handling to WriteAll
dgrisonnet Dec 6, 2022
4e30f4e
Merge pull request #1921 from dgrisonnet/simplify-metricswriter
k8s-ci-robot Dec 7, 2022
143f94d
Merge pull request #1916 from mrueg/config-change-metrics
k8s-ci-robot Dec 7, 2022
eb3bdbc
Add metrics for CustomResourceConfig file
mrueg Dec 7, 2022
448becb
Merge pull request #1926 from mrueg/crs-config-metrics
k8s-ci-robot Dec 8, 2022
2849d59
docs: add status badge for the periodic cronjob
rexagod Dec 5, 2022
f01ce58
Merge pull request #1924 from rexagod/foo-bar-baz-que
k8s-ci-robot Dec 10, 2022
01062d5
Rename references from master to main branch
mrueg Dec 11, 2022
288718a
Add kube_pod_status_qos_class gauge to pod metrics
frezes Dec 12, 2022
5d6cb39
Merge pull request #1931 from mrueg/update-branch-name
k8s-ci-robot Dec 12, 2022
2805217
Makefile: Bump to go 1.19.4
mrueg Dec 12, 2022
97b7e41
Makefile: Bump to prometheus 2.40.6
mrueg Dec 12, 2022
89403d2
go.mod: Bump to kubernetes 1.26.0
mrueg Dec 12, 2022
0955db8
.github: Bump golangci-lint to 1.50.1
mrueg Dec 12, 2022
4ef2752
Merge pull request #1933 from mrueg/bump-deps-12
k8s-ci-robot Dec 14, 2022
02fd1a9
Make CRS metrics type dynamic
rexagod Dec 11, 2022
d9677c0
Merge pull request #1930 from rexagod/1886
k8s-ci-robot Dec 15, 2022
62f3fc2
Add develop doc on adding new metrics
CatherineF-dev Dec 20, 2022
022fce9
Update docs/developer/guide.md
CatherineF-dev Dec 21, 2022
f1288f9
Merge pull request #1936 from CatherineF-dev/update-develop-doc-2
k8s-ci-robot Dec 21, 2022
c3004c6
Change kube_pod_status_qos_class to experimental metric
frezes Jan 3, 2023
3ca8765
docs: Fix typo in kube_node_deletion_timestamp description
grzesuav Jan 3, 2023
7120063
Merge pull request #1944 from grzesuav/typo
k8s-ci-robot Jan 3, 2023
b2fba10
docs:fix link
yosshi825 Jan 6, 2023
ef627d6
Merge pull request #1945 from yosshi825/fix/typo
k8s-ci-robot Jan 6, 2023
7130bd0
prefix GVK labels in CustomResourceMonitoring
bavarianbidi Jan 3, 2023
06268ab
Reload CustomResourceState Config File on Change
mrueg Dec 8, 2022
b410166
replace kube_crd with kube_customresource in docs
bavarianbidi Jan 10, 2023
771f85c
fix vpa crd metric names
bavarianbidi Jan 10, 2023
488c0bc
update crd monitoring and mention new flags
bavarianbidi Jan 10, 2023
559bb28
Merge pull request #1932 from frezes/feat/addPodStatusQosClass
k8s-ci-robot Jan 10, 2023
4d8c58a
Support pod_ready_time and pod_container_ready_time
liangyuanpeng Oct 18, 2022
0e4e396
Addressed feedback
ryanrolds Dec 29, 2022
dd7202b
Fixing bad merge in rebase
ryanrolds Jan 11, 2023
59b1728
Merge branch 'main' into rolds/pod_ready_time
ryanrolds Jan 11, 2023
b7a7070
Merge pull request #1942 from bavarianbidi/prefix_gvk_labels_in_custo…
k8s-ci-robot Jan 12, 2023
63db483
Merge pull request #1928 from mrueg/hotreloading-crs
k8s-ci-robot Jan 12, 2023
5b6ea71
Update development guide
CatherineF-dev Nov 2, 2022
c752152
Merge pull request #1875 from CatherineF-dev/update-develop-doc
k8s-ci-robot Jan 16, 2023
689a1f5
fix --version flag
bjorand Jan 18, 2023
ad5a7ac
Added a test for kube_pod_status_container_ready_time
ryanrolds Jan 19, 2023
1cda0bf
Merge pull request #1938 from ryanrolds/rolds/pod_ready_time
k8s-ci-robot Jan 19, 2023
482ad31
tools: Use own go.mod
mrueg Jan 20, 2023
ca7bc25
clean broken --version flag
bjorand Jan 23, 2023
d72db69
remove unwanted change
bjorand Jan 23, 2023
57a196b
update doc
bjorand Jan 23, 2023
b41d5ca
Enhance UserAgent with more information
mrueg Jan 23, 2023
bd2ea7a
Handle unit length `valueFrom` values
rexagod Jan 20, 2023
bc7b5b6
Merge pull request #1956 from bjorand/version_flag
k8s-ci-robot Jan 24, 2023
2b5460f
support "True" and "False" as string in custom-resource-state for ope…
jabdoa2 Jan 26, 2023
e26d682
lowercase string and simplify logic
jabdoa2 Jan 26, 2023
5e293b2
Merge pull request #1960 from mrueg/useragent
k8s-ci-robot Jan 26, 2023
db21b96
Improve command to install tools
mrueg Jan 26, 2023
90f58ce
Merge pull request #1957 from mrueg/tools-go-mod
k8s-ci-robot Jan 26, 2023
c0bd852
Document how gauges convert types to float
jabdoa2 Jan 27, 2023
24e2665
Improve formating
jabdoa2 Jan 27, 2023
fa53464
Use structured logging
mrueg Jan 27, 2023
67ed488
Fixing emitting of ready time metrics when condition is false
ryanrolds Jan 31, 2023
5250ea4
Merge pull request #1965 from mrueg/convert-structure-logging
k8s-ci-robot Feb 1, 2023
5da24c2
Merge pull request #1963 from jabdoa2/support_string_bool_in_custom_r…
k8s-ci-robot Feb 2, 2023
49af6b3
Set OpenMetrics content header
mrueg Feb 3, 2023
4342ca7
Migrate all NewFamilyGenerator to NewFamilyGeneratorWithStability
CatherineF-dev Feb 6, 2023
c530a7b
Merge pull request #1976 from CatherineF-dev/force-adding-metric-stab…
k8s-ci-robot Feb 6, 2023
86bf8f2
Merge pull request #1971 from ryanrolds/rolds/bug_fix_pod_container_r…
k8s-ci-robot Feb 6, 2023
4210d50
Clean up NewFamilyGenerator in comments
CatherineF-dev Feb 7, 2023
5ec099b
Merge pull request #1977 from CatherineF-dev/clean-up-NewFamilyGenerator
k8s-ci-robot Feb 7, 2023
77d0935
Merge pull request #1974 from mrueg/openmetrics
k8s-ci-robot Feb 9, 2023
a244030
Update docs/customresourcestate-metrics.md
mrueg Feb 9, 2023
1032430
fixup! Handle unit length `valueFrom` values
rexagod Feb 2, 2023
8e3adcd
Update docs/customresourcestate-metrics.md
mrueg Feb 9, 2023
f27c1ef
Merge pull request #1964 from jabdoa2/patch-1
k8s-ci-robot Feb 9, 2023
757055d
Merge pull request #1958 from rexagod/1947
k8s-ci-robot Feb 9, 2023
5374819
go.mod: Update dependencies
mrueg Jan 30, 2023
61b78ce
*: Cut v2.8.0
mrueg Jan 30, 2023
2fd22c4
Merge pull request #1967 from mrueg/prep-v2.8.0
k8s-ci-robot Feb 9, 2023
b06d352
fix: public Builder compatibility with the BuilderInterface
clamoriniere Feb 15, 2023
63d2138
Don't crash on non-existent path values
rexagod Feb 16, 2023
08c4765
fixup! Don't crash on non-existent path values
rexagod Feb 17, 2023
2d4579e
build: Bump to go 1.19.6
mrueg Feb 17, 2023
f6f119c
*: Cut v2.8.1
mrueg Feb 20, 2023
fb15826
Merge pull request #2005 from mrueg/prep-v2.8.1
k8s-ci-robot Feb 22, 2023
aff27f4
Only use OpenMetrics and Text in contentType
CatherineF-dev Mar 13, 2023
ce79351
Update pkg/metricshandler/metrics_handler.go
CatherineF-dev Mar 14, 2023
5a8d9b7
Update golangci-lint version
arturhoo Mar 13, 2023
2f5775f
Update golang and go deps
mrueg Mar 16, 2023
2812b27
*: Cut v2.8.2
mrueg Mar 16, 2023
3ed7a6c
Merge pull request #2029 from mrueg/prep-v2.8.2
k8s-ci-robot Mar 16, 2023
4c47d9a
checked out upstream upgrade tag and replayed custom changes on top
May 23, 2023
9fcce5f
removed travis CI yaml file
May 23, 2023
6267578
updated Dockerfile.prow to try go1.19
May 24, 2023
ff25838
Merge branch 'upgrade-v2.8.2' of github.com:ngraham20/kube-state-metr…
May 24, 2023
53b1f8f
updated go.mod to specify go1.20
May 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Bug report
about: Report a bug encountered while running kube-state-metrics
title: ''
labels: kind/bug
assignees: ''

---

<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!

If the matter is security related, please disclose it privately see https://github.com/kubernetes/kube-state-metrics/blob/main/SECURITY.md
-->

**What happened**:

**What you expected to happen**:

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

**Anything else we need to know?**:

**Environment**:
- kube-state-metrics version:
- Kubernetes version (use `kubectl version`):
- Cloud provider or hardware configuration:
- Other info:
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Feature request
about: Suggest a new feature
title: ''
labels: kind/feature
assignees: ''

---

<!-- Please only use this template for submitting feature requests -->

**What would you like to be added**:

**Why is this needed**:

**Describe the solution you'd like**

**Additional context**
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

**What this PR does / why we need it**:

**How does this change affect the cardinality of KSM**: *(increases, decreases or does not change cardinality)*

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

209 changes: 209 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
name: continuous-integration

on:
push:
branches:
- main
- release*
tags:
- v1.*
- v2.*
pull_request:
branches:
- main
- release*

permissions:
contents: read

env:
E2E_SETUP_KIND: yes
E2E_SETUP_KUBECTL: yes
SUDO: sudo
GO_VERSION: "^1.19"
GOLANGCI_LINT_VERSION: "v1.51.2"

jobs:
ci-go-lint:
name: ci-go-lint
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Setup environment
run: |
make install-tools

- name: Lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${{ env.GOLANGCI_LINT_VERSION }}
make lint

ci-validate-manifests:
name: ci-validate-manifests
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Setup environment
run: |
make install-tools

- name: Validate generated manifests
run: |
make validate-manifests

ci-validate-go-modules:
name: ci-validate-go-modules
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Setup environment
run: |
make install-tools

- name: Validate go modules
run: |
make validate-modules

ci-validate-docs:
name: ci-validate-docs
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Setup environment
run: |
make install-tools

- name: Check that all metrics are documented
run: |
make doccheck

ci-unit-tests:
name: ci-unit-tests
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Setup environment
run: |
make install-tools

- name: Unit tests
run: |
make test-unit

ci-rule-tests:
name: ci-rule-tests
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Setup promtool
run: |
make install-promtool

- name: Rule tests
run: |
PROMTOOL_CLI=./promtool make test-rules

ci-benchmark-tests:
name: ci-benchmark-tests
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Setup environment
run: |
make install-tools

- name: Benchmark tests
run: |
make test-benchmark-compare

ci-build-kube-state-metrics:
name: ci-build-kube-state-metrics
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Setup environment
run: |
make install-tools

- name: Build
run: |
make build

ci-e2e-tests:
name: ci-e2e-tests
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Setup environment
run: |
make install-tools

- name: End-to-end tests
run: |
make e2e
26 changes: 26 additions & 0 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: govulncheck

on:
schedule:
# Run every Monday
- cron: '0 0 * * 1'

env:
GO_VERSION: "^1.19"

jobs:
ci-security-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout code
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Install govulncheck binary
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run security checks
run: |
govulncheck -v ./...
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
documented_metrics
code_metrics

# E2e tests output
/log
*.bak

# Created by https://www.gitignore.io/api/go

### Go ###
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so
vendor

# Folders
_obj
Expand Down
32 changes: 25 additions & 7 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,38 @@
run:
deadline: 2m
deadline: 5m

linters:
disable-all: true
enable:
- gocritic
- gocyclo
- gofmt
- goimports
- golint
- staticcheck
- gocyclo
- gosec
- gosimple
- govet
- ineffassign
- misspell
- gocritic
- govet
- promlinter
- revive
- staticcheck
- unconvert

linters-settings:
goimports:
local-prefixes: k8s.io/kube-state-metrics
local-prefixes: k8s.io/kube-state-metrics,k8s.io/kube-state-metrics/v2

issues:
exclude-use-default: false
exclude-rules:
# We don't check metrics naming in the tests.
- path: _test\.go
linters:
- promlinter
# TODO(mrueg) Improve error handling
- text: "G104:"
linters:
- gosec
- text: "package-comments:"
linters:
- revive
Loading