Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! Add support for variable VKs in CR…
Browse files Browse the repository at this point in the history
…S config
  • Loading branch information
rexagod committed May 4, 2023
1 parent 9602762 commit 6efd148
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/customresourcestate-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ Examples:
[status, conditions, "[value=66]", name] # status.conditions[1].name = "b"
```

### [Variable VKs](https://github.com/kubernetes/kube-state-metrics/pull/1851)
### Wildcard VKs

The CRS configuration allows you to monitor all versions and/or kinds that come under a group.
Taking the `Foo` object as reference the configuration below allows you to monitor all objects under all versions and all kinds that come under the `myteam.io` group.
Expand All @@ -494,7 +494,7 @@ spec:
- groupVersionKind:
group: "myteam.io"
version: "*" # Set to `v1 to monitor all kinds under `myteam.io/v1`. Wildcard matches all versions based on the installed CRDs.
kind: "*" # TODO: Set to `Foo` to monitor all `Foo` objects under the `myteam.io` group (under all versions). Wildcard matches all installed kinds in the CR group.
kind: "*" # Set to `Foo` to monitor all `Foo` objects under the `myteam.io` group (under all versions). Wildcard matches all installed kinds in the CR group.
metrics:
- name: "myobject_info"
help: "Foo Bar Baz"
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/utils.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2019 The Kubernetes Authors All rights reserved.
Copyright 2023 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/discovery_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2022 The Kubernetes Authors All rights reserved.
Copyright 2023 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 6efd148

Please sign in to comment.