-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Description
This is mostly for convenience, as it is much easier to edit a multiline file (e.g. delete a whole section) than a single line file.
For instance currently a discovery file would look like that:
{"DiscoveredImages":[{"PodName":"synapse-operator-controller-manager-74568cc478-kmkql","ContainerName":"kube-rbac-proxy","Image":"gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0"},{"PodName":"synapse-operator-controller-manager-74568cc478-kmkql","ContainerName":"manager","Image":"quay.io/opdev/synapse-operator:v0.6.1"}]}
I'd suggest to have it directly formatted like this:
{
"DiscoveredImages": [
{
"PodName": "synapse-operator-controller-manager-74568cc478-kmkql",
"ContainerName": "kube-rbac-proxy",
"Image": "gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0"
},
{
"PodName": "synapse-operator-controller-manager-74568cc478-kmkql",
"ContainerName": "manager",
"Image": "quay.io/opdev/synapse-operator:v0.6.1"
}
]
}
Of course you can use an online formatter, or use your favorite IDE to format the file, or even run jq inside of vim, but it's not super user-friendly / convenient.
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.