Files
troubleshoot/pkg/analyze
danj-replicated e48fa36eaf Add generic kubernetes resource analyzer (#780)
* First draft of a generic cluster-resource analyzer

* Add more resource mappings

* Support some cluster-scoped resources

the structure of this could probably be a bit tidyer, but this now
allows us to target non-namespaced resources simply by not specifying
the namespace in the analyzer.

* General tidy up

* pull resource selection into it's own function

* remove pointless pointer to string

* Export findResource function

This lets other analyzers use it.

* Add tests for cluster resources analyzer

* Update schemas

* Address some of @banjoh's comments

* rework resource selection

thanks @banjoh

* Replace FindFiles with GetFile

Since we already know where we're looking for files,
it doesn't make sense to have to loop over a single item slice.

* Use assert instead of require

* format

* Change default behaviour for no namespace

Now not providing a namespace causes us to default to "default", with an
explicit bool to toggle cluster-scoped resource checking.

This should feel somewhat more intuitive when writing analyzers that use
this function

* Generate schemas

* Value → expectedValue
2022-12-19 11:31:43 -04:00
..
2022-06-28 13:04:10 -04:00
2021-01-28 18:22:48 +00:00
2022-09-08 15:10:53 +12:00
2021-01-28 18:22:48 +00:00
2021-01-28 18:22:48 +00:00
2020-09-23 15:10:54 -03:00
2021-01-28 18:22:48 +00:00
2021-07-06 08:42:12 -05:00
2022-07-18 11:09:23 +02:00
2021-04-09 16:17:15 +00:00
2021-04-09 16:17:15 +00:00