kuberhealthy
kuberhealthy copied to clipboard
Custom Metadata inside health state
Add custom Metadata to Health State (solves #1071)
You did a lot of great stuff here, and thank you for that! I feel like a prefixed environment variable might be a little messy and confusing to implement. What do you think about implementing these variables instead as a map in the configmap
?
The configmap
is here. We could put a map[string]string
in here that gets placed in the status page output if present. That would avoid all the prefix parsing and the slightly confusing pattern of prefixing your metadata as environment variables.
Thoughts?
@integrii I think it is indeed better, I updated the PR :)
@povils there were build fixes in master. Can you merge the latest master and push it to your branch please? That should make builds pass on this branch...
How about report by /externalCheckStatus
:
https://github.com/kuberhealthy/kuberhealthy/blob/b489fb6fba14ec054fddc1cf18d0f29658cec6cd/pkg/checks/external/status/main.go#L1-L26
Should we support to add metadata there?
Merged in #1158