Commit Graph

94 Commits

Author SHA1 Message Date
Lili Cosic 752e03c138 tests/e2e.sh: Test against v1.20 kubernetes 2020-12-17 14:10:50 +01:00
Lili Cosic 165e2a0d5a tests/e2e.sh: Adjust current image name
Because we switched to default registry to gcr, but we are still using
quay for testing, we need to change default image name.
2020-12-04 11:51:44 +01:00
Lili Cosic e637a2f23f tests/manifests/csr.yaml: Migrate to v1 2020-10-13 14:22:48 +02:00
Lili Cosic 9d3ebb6022 tests: Adjust ingress manifest 2020-10-13 11:55:35 +02:00
Quentin Bisson 7250bc2b5c
Update go module path to k8s.io/kube-state-metrics/v2
Signed-off-by: Quentin Bisson <quentin@giantswarm.io>
2020-09-21 10:58:08 +02:00
Manuel Rüger 9c487adc16 e2e.sh: Update kind to 0.9.0 2020-09-18 14:02:40 +02:00
Lili Cosic 9882bdd708 tests/e2e.sh: Test against v1.19 kubernetes 2020-09-16 14:57:17 +02:00
Tariq Ibrahim 3112a7d6c8
use github actions for CI checks 2020-08-10 12:50:17 -07:00
Manuel Rüger 15582fef09 e2e.sh: Replace amd64 with $ARCH 2020-08-09 00:37:22 +02:00
Tariq Ibrahim 827c8aa85a
migrate to KIND for e2e testing 2020-08-03 00:30:56 -07:00
Kubernetes Prow Robot a3762c82fb
Merge pull request #1190 from mrueg/push-multi-arch
Makefile: Push a single multi-arch image
2020-07-31 01:43:07 -07:00
Manuel Rüger c9d367c97f tests/e2e.sh: Adjust to new Makefile target
* DRY on image name

* Enable e2e testing possibility on other architectures as well

* Replace correct image name in manifest

* Don't build binary anymore, it's now included in the image build
  process

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2020-07-30 13:10:49 +02:00
Prabhakar Mishra 0ff5482079 update client-go, k/api, k/apimachinery to v1.18.6 and vertical-pod-autoscaler to commit b7922d74509c
use clientgofix library

add context parameter in verticalpodautoscaler

rename PodDisruptionsAllowed to DisruptionsAllowed because of PR 85863 in k8s repo

lint fixes and rename PodDisruptionsAllowed to DisruptionsAllowed in test file

run go mod tidy
2020-07-30 01:54:34 +02:00
qw1mb0 59e0e0cf05 switch mutatingwebhookconfiguration to v1 2020-05-16 20:41:16 +03:00
Damien Grisonnet 2a9f37a1df e2e: fix minikube profile
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-04-15 10:53:46 +02:00
Kubernetes Prow Robot eaad19897e
Merge pull request #1119 from Prabhakar-17/fix-e2e-test-run
fix e2e test run when the minikube_driver is not none
2020-04-14 09:24:13 -07:00
Prabhakar Mishra 7087ac672c bump kubernetes version to latest 2020-04-11 14:39:38 +02:00
Prabhakar Mishra 2965c3284e bump kubernetes version in tests 2020-04-10 23:22:57 +02:00
Prabhakar Mishra 14522fb789 fix e2e test run when the minikube_driver is not none 2020-04-10 17:46:57 +02:00
Frederic Branczyk f2cf68958d
tests/e2e.sh: Fix shellcheck lint errors 2020-04-08 10:59:22 +02:00
Olivier Lemasle 47f507d252 [e2e] Check errors in kube-state-metrics own metrics 2020-03-17 11:31:51 +01:00
Olivier Lemasle f52c0d44e6 [e2e] Remove redundant bash test + upgrade Minikube 2020-03-12 20:57:20 +01:00
Olivier Lemasle 181ebd0e31 e2e: check labels documentation 2020-02-27 20:37:53 +01:00
Olivier Lemasle 5c30e78506 Remove Lease from test manifests
The coordination.k8s.io/Lease used in e2e tests had an ownerReference,
referencing non-existing node "kube-master" (non-existing in default
Minikube deployments), so the lease was never created, and there was
an (ignored) error during deletion.

But, as a lease is automatically created for each node, there will always
be leases in e2e, so there's no need to add one.
2020-02-24 23:00:31 +01:00
Lili Cosic 608a1786a5 Merge remote-tracking branch 'upstream/release-1.9' into bring-releases-1.9 2020-02-20 16:27:18 +01:00
Olivier Lemasle ab6e1c0658 Fix e2e tests
- `make container` now uses already built `kube-state-metrics`
  binary, if exists
- make it possible to use another CLI tool instead of docker (e.g. podman)
- use a separate profile for Minikube, when possible
2020-02-18 17:31:56 +01:00
Lili Cosic 7c28c43c24 tests/e2e.sh: Switch to test with kubernetes version 1.17.3 2020-02-13 09:54:39 +01:00
Lili Cosic 97678462aa internal/store/validatingwebhookconfiguration.go: Switch to v1
As we are expecting v1 we should also create a watch on v1. Otherwise
see the following error in the logs:

"expected type *v1.ValidatingWebhookConfiguration, but watch
event object had type *v1beta1.ValidatingWebhookConfiguration"
2020-02-13 09:54:39 +01:00
Kubernetes Prow Robot 30c152b805
Merge pull request #923 from sebach1/master
Fix golint issues reported by goreportcard #919
2020-02-10 18:02:00 -08:00
sebach1 cb625b1dfc Fix golint issues reported by goreportcard 2020-02-10 22:04:49 -03:00
asidorovj f5729a5ccb add leases collector 2020-01-30 08:31:01 +03:00
cedric lamoriniere ae822f3a2c update code after review
* fix typo
* update copyright date in new files

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2019-12-17 22:37:23 +01:00
cedric lamoriniere c83e410d37 tmp: add back interface for perf 2019-12-13 10:50:19 +01:00
cedric lamoriniere 72ad3cb412 Remove FamilyByteSlicer interface
- To allow other external Stores, remove the `FamilyByteSlicer` interface
  and give access directly to `metric.Family`.
- Move functions present in `pkg/metric/generator.go` to a dedicated package
  `generator` in `pkg/metric_generator/generator.go`.

Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2019-12-13 10:50:19 +01:00
Tariq Ibrahim ea4c2eb764
Merge branch 'master' into networkpolicy-collector 2019-10-17 10:10:45 -07:00
Miles Bryant e780fc34f3
store: export NetworkPolicy objects 2019-10-17 11:49:29 +01:00
Jens Erat 4e637854a2
add VolumeAttachment collector
Kubernetes has a new resource type: `VolumeAttachments`. They provide
helpful information on where a volume is attached and to alert on
unexpected attachment status (for example, differences between
information scraped from node-exporter and kube-state-metrics).

The collector adds a bunch of new metrics. Each VolumeAttachment (ie.,
each CSI-attached volume) will have one of each, so we do not overly
pollute the metrics space. Most metrics are rather unsurprising.

- `kube_volumeattachment_status_attachment_metadata`: provides a
  label-like export of the attachment metadata map. Generalizing the
  label-conversion function slightly helps at providing this metric.
- `kube_volumeattachment_created`: as VolumeAttachments are
  automatically created and we already suffered from duplicate
  `VolumeAttachments`, this can be invaluable for debugging
  misattachments.
- `kube_volumeattachment_spec_source_persistentvolume`: will only be
  generated when the volume source is of `PersistentVolume` type. The
  other type `inlineVolumeSpec` is still alpha-level and hard to map to
  metrics.

No end-to-end test manifest was added, as `VolumeAttachment`s are
automatically generated when mounting volumes.

Signed-off-by: Jens Erat <email@jenserat.de>
2019-10-13 21:36:50 +02:00
Srinidhi Kaushik 7b5fafe99e
Add defaults to ReclaimPolicy and VolumeBindingMode. 2019-10-04 22:36:45 +05:30
Nataly Sheinin 99623defbe
add mutatingwebhookconfiguration, validatingwebhookconfiguration metrics 2019-10-03 14:23:18 -04:00
Frederic Branczyk 994772a2e4
*: Generate all manifests
Sharding and autosharding introduced a number of manifests that are
very similar, but not identical to the standard manifests. This
introduces generating all manifests using jsonnet and moves them to
the explicit `/examples` directory.
2019-10-02 10:35:06 +02:00
YaoZengzeng d283147719 [e2e] lint the metrics of ksm
Signed-off-by: YaoZengzeng <yaozengzeng@huawei.com>
2019-09-30 17:17:28 +08:00
YaoZengzeng 126b63377b framework for e2e test implemented in golang
Signed-off-by: YaoZengzeng <yaozengzeng@huawei.com>
2019-09-25 09:12:31 +08:00
Philip Gough bdbff48012
Add support for Darwin OS in e2e test 2019-09-10 13:53:05 +01:00
Frederic Branczyk f3d41de450
Add auto detecting of sharding
main_test.go: Add model based test for sharding

In order to ensure a sharded system behaves equal to an unsharded
system, a model based test has been introduced. It scrapes an unsharded
setup and compares its output with the union of a sharded setup
therefore ensuring semantic equality.
2019-08-30 22:45:35 +02:00
Frederic Branczyk 84d61f9a93
Introduce sharding 2019-08-30 13:51:30 +02:00
Manuel Rüger 8a96896eaf tests/e2e.sh: Bump Prometheus to 1.12.0, Kubernetes to 1.15.3
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2019-08-26 19:17:39 +02:00
Tariq Ibrahim 1b42e7c450
lint: enforce goimports local prefixes 2019-08-20 10:33:05 -07:00
Tariq Ibrahim 96eefd08f6
chore: update dependencies and tool versions 2019-08-16 20:27:21 -07:00
Frederic Branczyk 4be05a0e62
tests/e2e.sh: Bump minikube, Kubernetes, Prometheus versions 2019-07-22 20:03:30 -07:00
tariqibrahim 44319dbb0d vendor: remove unnecessary dependencies from the project. 2019-07-21 14:59:22 -07:00