Closed maxbrunet closed 2 years ago
On an afterthought, hiding keys could potentially annoy some people like Tanka users which extracts Kubernetes resources from any level as long as they are not hidden, so I am just going to fix the example by looping and filtering out these keys.
Changes
~Hide
hashrings
andshards
fields inthanos-receive-hashrings
andstore-shards
. This allows to loop through them like the others instead of hand-picking resources and risking missing them (like the service accounts) or having a condition in the loop (e.g.if name != 'shards'
).~ Loop throughcompact-shards
,receive-hashrings
andstore-shards
common resources and conditionally skip non-resource fields.Verification
Generated manifests are still the same and service accounts are now here