Kubernetes: add option to fetch additional objectTypes which are not present in DEFAULT_OBJECTS (#28150)

* Fixed lack of secrets

Signed-off-by: Florian Fl Bauer <florian.fl.bauer@deutschebahn.com>

* add tests

Signed-off-by: Florian Fl Bauer <florian.fl.bauer@deutschebahn.com>

* remove log

Signed-off-by: Florian Fl Bauer <florian.fl.bauer@deutschebahn.com>

---------

Signed-off-by: Florian Fl Bauer <florian.fl.bauer@deutschebahn.com>
This commit is contained in:
Florian Bauer
2025-01-17 14:15:39 +01:00
committed by GitHub
parent a5cd0a268f
commit ac0e1acf78
9 changed files with 130 additions and 10 deletions
+3 -3
View File
@@ -592,9 +592,8 @@ Overrides for the Kubernetes object types fetched from the cluster. The default
- `statefulsets`
- `daemonsets`
You may use this config to override the default object types if you only want a subset of
the default ones. However, it's currently not supported to fetch object types other
than the ones specified in the default types.
You may use this config to override the default object types if you only want specific ones.
However, the only additional object type to fetch at the moment is `secrets`.
Example:
@@ -608,6 +607,7 @@ kubernetes:
- pods
- services
- statefulsets
- secrets
```
### Role Based Access Control