mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-27 10:18:39 +00:00
fix flatten with rabbit recomendation
Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>
This commit is contained in:
@@ -174,6 +174,16 @@ resource maps.
|
||||
{{- end }}
|
||||
|
||||
{{- define "cozy-lib.resources.flatten" -}}
|
||||
{{- /*
|
||||
This helper either outputs raw ResourceQuota fields (e.g., services.loadbalancers)
|
||||
as-is, or flattens sanitized resource maps into limits.* / requests.* keys.
|
||||
|
||||
If ALL keys in the input are recognized quota keys (pods, services.*, etc.),
|
||||
the input is output directly as YAML. Otherwise, the input is treated as a
|
||||
resource map and processed through sanitize + flatten.
|
||||
|
||||
Do not mix quota keys and resource keys in a single call.
|
||||
*/ -}}
|
||||
{{- $input := index . 0 -}}
|
||||
{{- $ctx := index . 1 -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user