2425 Commits

Author SHA1 Message Date
Dmitry Dunaev
430f22b94a [WIFI-11450] Chg: enable pod exitcode metric
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
2022-11-08 14:46:45 +03:00
Kubernetes Prow Robot
c0a03ad6bb Merge pull request #1813 from bavarianbidi/crd_only_mode
introduce custom-resources-only flag ...
2022-11-08 03:44:20 -08:00
Kubernetes Prow Robot
d5bd2c8274 Merge pull request #1823 from rexagod/1815
Support filtering label allowlist by "*"
2022-11-08 03:42:22 -08:00
Pranshu Srivastava
d982bbc9c9 Support filtering label allowlist by "*"
Support filtering label allowlist by "*", which will expand to the
enabled resources, while infering their values based on its value(s).

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2022-11-07 23:59:36 +05:30
Kubernetes Prow Robot
d620e43c38 Merge pull request #1864 from CatherineF-dev/sharding-per-node
Sharding metrics per node via fieldSelector
2022-11-07 03:34:18 -08:00
Mario Constanti
53af11625c introduce custom-resources-only flag ...
... to only monitor all known custom-resource configurations instead of
listing each of them explicitly

Signed-off-by: Mario Constanti <mario@constanti.de>
2022-11-07 07:31:41 +01:00
Catherine Fang
43c6073234 Refactoring 2022-11-04 15:07:37 -04:00
CatherineF-dev
813496de4f Update README.md
Co-authored-by: Manuel Rüger <manuel@rueg.eu>
2022-11-04 13:12:53 -04:00
Kubernetes Prow Robot
0f483430c4 Merge pull request #1878 from rexagod/1858-1857
Detect vulns actually used by KSM
2022-11-04 10:04:15 -07:00
Kubernetes Prow Robot
32f08e3842 Merge pull request #1866 from logicalhan/patch-2
add myself to OWNERs
2022-11-04 08:54:14 -07:00
Pranshu Srivastava
1736469dd4 Add govulncheck cron
Add `govulncheck` cron configuration.

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2022-11-04 18:27:07 +05:30
Catherine Fang
2f1da3af9b Provide scaling example 2022-11-04 08:44:00 -04:00
Catherine Fang
f9d29ba761 Refactoring 2022-11-04 08:44:00 -04:00
Catherine Fang
d523f8e0e4 Move merging fieldselectors into app/server.go and replace namespaceFitler with fieldSelectorFilter 2022-11-04 08:44:00 -04:00
Catherine Fang
87a7793c7f Clean 2022-11-04 08:44:00 -04:00
Catherine Fang
3b50fbcd16 Validate options 2022-11-04 08:44:00 -04:00
Catherine Fang
2c0c8d2e51 Sharding per node 2022-11-04 08:44:00 -04:00
Pranshu Srivastava
a5242f4ddb Address vulns reported by the security checks
As of this moment, there are 2 vulns in the codebase.
* GO-2022-1095: os/exec@go1.19.2
* GO-2022-1095: syscall@go1.19.2

This commit aims to fix that.

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2022-11-04 17:52:20 +05:30
Kubernetes Prow Robot
8a390513f8 Merge pull request #1874 from mrueg/dep-bump-2.7.0
Bump dependencies
2022-11-04 03:32:15 -07:00
Kubernetes Prow Robot
1a55a38d89 Merge pull request #1849 from rexagod/1846
Recommend kube-scheduler's metrics
2022-11-03 11:25:36 -07:00
Pranshu Srivastava
5d20fd3454 Recommend kube-scheduler alternatives
Recommend metrics exposed by the kube-scheduler, in case of the ones below:
* `kube_pod_container_resource_limits`
* `kube_pod_container_resource_requests`

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2022-11-03 23:46:20 +05:30
Han Kang
38858e6002 Update OWNERS 2022-11-03 09:21:31 -07:00
Kubernetes Prow Robot
086a6fd2b2 Merge pull request #1831 from whitebear009/hpa
add ContainerResourceSourceType for hpa metrics
2022-11-03 07:19:36 -07:00
Manuel Rüger
81cd6ea2c3 go.mod: Bump dependencies
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-11-02 11:27:23 +01:00
Manuel Rüger
2c734dca81 Makefile: Build with go 1.19.3
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-11-02 11:26:42 +01:00
Manuel Rüger
3d8abf894b e2e: Test against k8s 1.25.0
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-11-02 11:26:42 +01:00
Kubernetes Prow Robot
846222b455 Merge pull request #1870 from timp87/fix-customresourcestate-metrics-doc
Fix typos in customresourcestate-metrics doc
2022-10-27 10:08:33 -07:00
Pavel Timofeev
aba1302f28 Clarify valueFrom comment 2022-10-26 13:56:41 -06:00
Pavel Timofeev
1ea0ba87a3 One more typo fix 2022-10-26 13:53:02 -06:00
Pavel Timofeev
4c6fff1478 Fix typos 2022-10-25 22:48:27 -06:00
Kubernetes Prow Robot
0d55500068 Merge pull request #1826 from rexagod/1786
Handle singular labels in allowlist
2022-10-21 09:27:51 -07:00
Kubernetes Prow Robot
a3a509acdf Merge pull request #1865 from mrueg/gosec
Harden and add gosec linter
2022-10-21 00:37:51 -07:00
Kubernetes Prow Robot
80f0366b76 Merge pull request #1867 from mrueg/update-gh-actions
.github: Update actions
2022-10-20 23:13:52 -07:00
Han Kang
a13c1107ac add myself to OWNERs 2022-10-20 12:47:06 -07:00
Manuel Rüger
470c4fa6fb .github: Update actions
Context: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-10-20 21:36:01 +02:00
Manuel Rüger
6b7027ff41 Harden and add gosec linter
Remediate:
G104: Errors unhandled.
G109: Potential Integer overflow made by strconv.Atoi result conversion to int16/32
G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server
G304: Potential file inclusion via variable
G601: Implicit memory aliasing in for loop.

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-10-20 20:44:46 +02:00
Kubernetes Prow Robot
d4fdcda6f5 Merge pull request #1850 from rexagod/1847
Represent GVK information as labels
2022-10-20 09:47:01 -07:00
Pranshu Srivastava
762f98bb70 fixup! fixup! Represent GVK information as labels 2022-10-18 21:37:58 +05:30
Pranshu Srivastava
7f906e87b6 fixup! Represent GVK information as labels 2022-10-18 21:16:56 +05:30
Kubernetes Prow Robot
339b134791 Merge pull request #1856 from chrischdi/ksm-cr-fix-docs
customresourcestate fix type indentation in example
2022-10-17 00:23:07 -07:00
Christian Schlotter
563aac0398 customresourcestate fix type indentation in example 2022-10-17 09:11:59 +02:00
Kubernetes Prow Robot
b909c01c64 Merge pull request #1844 from CatherineF-dev/import-k8s-metrics-stability
Import k8s metrics stability framework
2022-10-14 05:36:47 -07:00
Catherine Fang
5995c1e2cf Add all stable metrics 2022-10-14 08:25:39 -04:00
Catherine Fang
75bce1c552 Upgrade dependency component-base to v0.25.2 and add TODO 2022-10-14 08:25:39 -04:00
Catherine Fang
37423f462f Import k8s metrics stability framework 2022-10-14 08:19:06 -04:00
Kubernetes Prow Robot
0880c8d275 Merge pull request #1819 from mrueg/bump-go-1.19
Build with go 1.19 / update to k8s 1.25
2022-10-14 03:28:46 -07:00
Kubernetes Prow Robot
cb5f88ba27 Merge pull request #1845 from lantingchiang/lease
Allow Lease metrics to be exported across all namespaces
2022-10-14 02:40:47 -07:00
Lanting Chiang
29e043ed1d account for nil holderIdentity case 2022-10-13 11:31:11 -04:00
Lanting Chiang
ceaad61c45 export Lease.Spec.HolderIdentity 2022-10-12 09:52:39 -04:00
Pranshu Srivastava
633cbf49d0 Represent GVK information as labels
Represent GVK information as labels in the metrics, instead of appending
them to the metric name itself. This would allow users to aggregate
varying GVKs of a CR under the same metric, making operations much more
easier.
2022-10-08 00:24:16 +05:30