|
151 | 151 | {{- range $_ := (list 1) -}} |
152 | 152 | {{- $_is_returning := false -}} |
153 | 153 | {{- if (and (ne (toJson $rr.limits) "null") (ne (toJson $rr.requests) "null")) -}} |
154 | | -{{- $_451_cpuReq_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list ($rr.requests) "cpu" "0")))) "r") -}} |
155 | | -{{- $cpuReq := (index $_451_cpuReq_ok 0) -}} |
156 | | -{{- $ok := (index $_451_cpuReq_ok 1) -}} |
| 154 | +{{- $_450_cpuReq_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list ($rr.requests) "cpu" "0")))) "r") -}} |
| 155 | +{{- $cpuReq := (index $_450_cpuReq_ok 0) -}} |
| 156 | +{{- $ok := (index $_450_cpuReq_ok 1) -}} |
157 | 157 | {{- if (not $ok) -}} |
158 | | -{{- $_453_cpuReq_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list ($rr.limits) "cpu" "0")))) "r") -}} |
159 | | -{{- $cpuReq = (index $_453_cpuReq_ok 0) -}} |
160 | | -{{- $ok = (index $_453_cpuReq_ok 1) -}} |
| 158 | +{{- $_452_cpuReq_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list ($rr.limits) "cpu" "0")))) "r") -}} |
| 159 | +{{- $cpuReq = (index $_452_cpuReq_ok 0) -}} |
| 160 | +{{- $ok = (index $_452_cpuReq_ok 1) -}} |
161 | 161 | {{- end -}} |
162 | 162 | {{- if (and $ok (lt ((get (fromJson (include "_shims.resource_MilliValue" (dict "a" (list $cpuReq)))) "r") | int64) (1000 | int64))) -}} |
163 | 163 | {{- $_is_returning = true -}} |
|
184 | 184 | {{- range $_ := (list 1) -}} |
185 | 185 | {{- $_is_returning := false -}} |
186 | 186 | {{- if (and (ne (toJson $rr.limits) "null") (ne (toJson $rr.requests) "null")) -}} |
187 | | -{{- $_477_cpuReq_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list ($rr.requests) "cpu" "0")))) "r") -}} |
188 | | -{{- $cpuReq := (index $_477_cpuReq_ok 0) -}} |
189 | | -{{- $ok := (index $_477_cpuReq_ok 1) -}} |
| 187 | +{{- $_476_cpuReq_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list ($rr.requests) "cpu" "0")))) "r") -}} |
| 188 | +{{- $cpuReq := (index $_476_cpuReq_ok 0) -}} |
| 189 | +{{- $ok := (index $_476_cpuReq_ok 1) -}} |
190 | 190 | {{- if (not $ok) -}} |
191 | | -{{- $_479_cpuReq_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list ($rr.limits) "cpu" "0")))) "r") -}} |
192 | | -{{- $cpuReq = (index $_479_cpuReq_ok 0) -}} |
193 | | -{{- $ok = (index $_479_cpuReq_ok 1) -}} |
| 191 | +{{- $_478_cpuReq_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list ($rr.limits) "cpu" "0")))) "r") -}} |
| 192 | +{{- $cpuReq = (index $_478_cpuReq_ok 0) -}} |
| 193 | +{{- $ok = (index $_478_cpuReq_ok 1) -}} |
194 | 194 | {{- end -}} |
195 | 195 | {{- if (not $ok) -}} |
196 | 196 | {{- $_is_returning = true -}} |
|
222 | 222 | {{- range $_ := (list 1) -}} |
223 | 223 | {{- $_is_returning := false -}} |
224 | 224 | {{- if (and (ne (toJson $rr.limits) "null") (ne (toJson $rr.requests) "null")) -}} |
225 | | -{{- $_536_memReq_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list ($rr.requests) "memory" "0")))) "r") -}} |
226 | | -{{- $memReq := (index $_536_memReq_ok 0) -}} |
227 | | -{{- $ok := (index $_536_memReq_ok 1) -}} |
| 225 | +{{- $_535_memReq_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list ($rr.requests) "memory" "0")))) "r") -}} |
| 226 | +{{- $memReq := (index $_535_memReq_ok 0) -}} |
| 227 | +{{- $ok := (index $_535_memReq_ok 1) -}} |
228 | 228 | {{- if (not $ok) -}} |
229 | | -{{- $_538_memReq_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list ($rr.limits) "memory" "0")))) "r") -}} |
230 | | -{{- $memReq = (index $_538_memReq_ok 0) -}} |
231 | | -{{- $ok = (index $_538_memReq_ok 1) -}} |
| 229 | +{{- $_537_memReq_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list ($rr.limits) "memory" "0")))) "r") -}} |
| 230 | +{{- $memReq = (index $_537_memReq_ok 0) -}} |
| 231 | +{{- $ok = (index $_537_memReq_ok 1) -}} |
232 | 232 | {{- end -}} |
233 | 233 | {{- if (not $ok) -}} |
234 | 234 | {{- $_is_returning = true -}} |
|
304 | 304 | {{- range $_ := (list 1) -}} |
305 | 305 | {{- $_is_returning := false -}} |
306 | 306 | {{- $conf := (get (fromJson (include "redpanda.Storage.GetTieredStorageConfig" (dict "a" (list $s)))) "r") -}} |
307 | | -{{- $_656_b_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list $conf "cloud_storage_enabled" (coalesce nil))))) "r") -}} |
308 | | -{{- $b := (index $_656_b_ok 0) -}} |
309 | | -{{- $ok := (index $_656_b_ok 1) -}} |
| 307 | +{{- $_655_b_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list $conf "cloud_storage_enabled" (coalesce nil))))) "r") -}} |
| 308 | +{{- $b := (index $_655_b_ok 0) -}} |
| 309 | +{{- $ok := (index $_655_b_ok 1) -}} |
310 | 310 | {{- $_is_returning = true -}} |
311 | 311 | {{- (dict "r" (and $ok (get (fromJson (include "_shims.typeassertion" (dict "a" (list "bool" $b)))) "r"))) | toJson -}} |
312 | 312 | {{- break -}} |
|
351 | 351 | {{- range $_ := (list 1) -}} |
352 | 352 | {{- $_is_returning := false -}} |
353 | 353 | {{- $values := $dot.Values.AsMap -}} |
354 | | -{{- $_685_dir_7_ok_8 := (get (fromJson (include "_shims.typetest" (dict "a" (list "string" (index $values.config.node "cloud_storage_cache_directory") "")))) "r") -}} |
355 | | -{{- $dir_7 := (index $_685_dir_7_ok_8 0) -}} |
356 | | -{{- $ok_8 := (index $_685_dir_7_ok_8 1) -}} |
| 354 | +{{- $_684_dir_7_ok_8 := (get (fromJson (include "_shims.typetest" (dict "a" (list "string" (index $values.config.node "cloud_storage_cache_directory") "")))) "r") -}} |
| 355 | +{{- $dir_7 := (index $_684_dir_7_ok_8 0) -}} |
| 356 | +{{- $ok_8 := (index $_684_dir_7_ok_8 1) -}} |
357 | 357 | {{- if $ok_8 -}} |
358 | 358 | {{- $_is_returning = true -}} |
359 | 359 | {{- (dict "r" $dir_7) | toJson -}} |
360 | 360 | {{- break -}} |
361 | 361 | {{- end -}} |
362 | 362 | {{- $tieredConfig := (get (fromJson (include "redpanda.Storage.GetTieredStorageConfig" (dict "a" (list $values.storage)))) "r") -}} |
363 | | -{{- $_694_dir_9_ok_10 := (get (fromJson (include "_shims.typetest" (dict "a" (list "string" (index $tieredConfig "cloud_storage_cache_directory") "")))) "r") -}} |
364 | | -{{- $dir_9 := (index $_694_dir_9_ok_10 0) -}} |
365 | | -{{- $ok_10 := (index $_694_dir_9_ok_10 1) -}} |
| 363 | +{{- $_693_dir_9_ok_10 := (get (fromJson (include "_shims.typetest" (dict "a" (list "string" (index $tieredConfig "cloud_storage_cache_directory") "")))) "r") -}} |
| 364 | +{{- $dir_9 := (index $_693_dir_9_ok_10 0) -}} |
| 365 | +{{- $ok_10 := (index $_693_dir_9_ok_10 1) -}} |
366 | 366 | {{- if $ok_10 -}} |
367 | 367 | {{- $_is_returning = true -}} |
368 | 368 | {{- (dict "r" $dir_9) | toJson -}} |
|
462 | 462 | {{- $result := (dict) -}} |
463 | 463 | {{- $s := (toJson $t) -}} |
464 | 464 | {{- $tune := (fromJson $s) -}} |
465 | | -{{- $_905_m_ok := (get (fromJson (include "_shims.typetest" (dict "a" (list (printf "map[%s]%s" "string" "interface {}") $tune (coalesce nil))))) "r") -}} |
466 | | -{{- $m := (index $_905_m_ok 0) -}} |
467 | | -{{- $ok := (index $_905_m_ok 1) -}} |
| 465 | +{{- $_904_m_ok := (get (fromJson (include "_shims.typetest" (dict "a" (list (printf "map[%s]%s" "string" "interface {}") $tune (coalesce nil))))) "r") -}} |
| 466 | +{{- $m := (index $_904_m_ok 0) -}} |
| 467 | +{{- $ok := (index $_904_m_ok 1) -}} |
468 | 468 | {{- if (not $ok) -}} |
469 | 469 | {{- $_is_returning = true -}} |
470 | 470 | {{- (dict "r" (dict)) | toJson -}} |
|
620 | 620 | {{- $seen := (dict) -}} |
621 | 621 | {{- $deduped := (coalesce nil) -}} |
622 | 622 | {{- range $_, $item := $items -}} |
623 | | -{{- $_1069___ok_11 := (get (fromJson (include "_shims.dicttest" (dict "a" (list $seen $item.key false)))) "r") -}} |
624 | | -{{- $_ := (index $_1069___ok_11 0) -}} |
625 | | -{{- $ok_11 := (index $_1069___ok_11 1) -}} |
| 623 | +{{- $_1062___ok_11 := (get (fromJson (include "_shims.dicttest" (dict "a" (list $seen $item.key false)))) "r") -}} |
| 624 | +{{- $_ := (index $_1062___ok_11 0) -}} |
| 625 | +{{- $ok_11 := (index $_1062___ok_11 1) -}} |
626 | 626 | {{- if $ok_11 -}} |
627 | 627 | {{- continue -}} |
628 | 628 | {{- end -}} |
|
734 | 734 | {{- $name := (index .a 1) -}} |
735 | 735 | {{- range $_ := (list 1) -}} |
736 | 736 | {{- $_is_returning := false -}} |
737 | | -{{- $_1290_cert_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list $m $name (dict "enabled" (coalesce nil) "caEnabled" false "applyInternalDNSNames" (coalesce nil) "duration" "" "issuerRef" (coalesce nil) "secretRef" (coalesce nil) "clientSecretRef" (coalesce nil)))))) "r") -}} |
738 | | -{{- $cert := (index $_1290_cert_ok 0) -}} |
739 | | -{{- $ok := (index $_1290_cert_ok 1) -}} |
| 737 | +{{- $_1283_cert_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list $m $name (dict "enabled" (coalesce nil) "caEnabled" false "applyInternalDNSNames" (coalesce nil) "duration" "" "issuerRef" (coalesce nil) "secretRef" (coalesce nil) "clientSecretRef" (coalesce nil)))))) "r") -}} |
| 738 | +{{- $cert := (index $_1283_cert_ok 0) -}} |
| 739 | +{{- $ok := (index $_1283_cert_ok 1) -}} |
740 | 740 | {{- if (not $ok) -}} |
741 | 741 | {{- $_ := (fail (printf "Certificate %q referenced, but not found in the tls.certs map" $name)) -}} |
742 | 742 | {{- end -}} |
|
1482 | 1482 | {{- $result := (dict) -}} |
1483 | 1483 | {{- range $k, $v := $c -}} |
1484 | 1484 | {{- if (not (empty $v)) -}} |
1485 | | -{{- $_2126___ok_18 := (get (fromJson (include "_shims.asnumeric" (dict "a" (list $v)))) "r") -}} |
1486 | | -{{- $_ := ((index $_2126___ok_18 0) | float64) -}} |
1487 | | -{{- $ok_18 := (index $_2126___ok_18 1) -}} |
| 1485 | +{{- $_2119___ok_18 := (get (fromJson (include "_shims.asnumeric" (dict "a" (list $v)))) "r") -}} |
| 1486 | +{{- $_ := ((index $_2119___ok_18 0) | float64) -}} |
| 1487 | +{{- $ok_18 := (index $_2119___ok_18 1) -}} |
1488 | 1488 | {{- if $ok_18 -}} |
1489 | 1489 | {{- $_ := (set $result $k $v) -}} |
1490 | 1490 | {{- else -}}{{- if (kindIs "bool" $v) -}} |
|
1510 | 1510 | {{- $_is_returning := false -}} |
1511 | 1511 | {{- $result := (dict) -}} |
1512 | 1512 | {{- range $k, $v := $c -}} |
1513 | | -{{- $_2146_b_19_ok_20 := (get (fromJson (include "_shims.typetest" (dict "a" (list "bool" $v false)))) "r") -}} |
1514 | | -{{- $b_19 := (index $_2146_b_19_ok_20 0) -}} |
1515 | | -{{- $ok_20 := (index $_2146_b_19_ok_20 1) -}} |
| 1513 | +{{- $_2139_b_19_ok_20 := (get (fromJson (include "_shims.typetest" (dict "a" (list "bool" $v false)))) "r") -}} |
| 1514 | +{{- $b_19 := (index $_2139_b_19_ok_20 0) -}} |
| 1515 | +{{- $ok_20 := (index $_2139_b_19_ok_20 1) -}} |
1516 | 1516 | {{- if $ok_20 -}} |
1517 | 1517 | {{- $_ := (set $result $k $b_19) -}} |
1518 | 1518 | {{- continue -}} |
|
1555 | 1555 | {{- $config := (index .a 1) -}} |
1556 | 1556 | {{- range $_ := (list 1) -}} |
1557 | 1557 | {{- $_is_returning := false -}} |
1558 | | -{{- $_2191___hasAccessKey := (get (fromJson (include "_shims.dicttest" (dict "a" (list $config "cloud_storage_access_key" (coalesce nil))))) "r") -}} |
1559 | | -{{- $_ := (index $_2191___hasAccessKey 0) -}} |
1560 | | -{{- $hasAccessKey := (index $_2191___hasAccessKey 1) -}} |
1561 | | -{{- $_2192___hasSecretKey := (get (fromJson (include "_shims.dicttest" (dict "a" (list $config "cloud_storage_secret_key" (coalesce nil))))) "r") -}} |
1562 | | -{{- $_ := (index $_2192___hasSecretKey 0) -}} |
1563 | | -{{- $hasSecretKey := (index $_2192___hasSecretKey 1) -}} |
1564 | | -{{- $_2193___hasSharedKey := (get (fromJson (include "_shims.dicttest" (dict "a" (list $config "cloud_storage_azure_shared_key" (coalesce nil))))) "r") -}} |
1565 | | -{{- $_ := (index $_2193___hasSharedKey 0) -}} |
1566 | | -{{- $hasSharedKey := (index $_2193___hasSharedKey 1) -}} |
| 1558 | +{{- $_2184___hasAccessKey := (get (fromJson (include "_shims.dicttest" (dict "a" (list $config "cloud_storage_access_key" (coalesce nil))))) "r") -}} |
| 1559 | +{{- $_ := (index $_2184___hasAccessKey 0) -}} |
| 1560 | +{{- $hasAccessKey := (index $_2184___hasAccessKey 1) -}} |
| 1561 | +{{- $_2185___hasSecretKey := (get (fromJson (include "_shims.dicttest" (dict "a" (list $config "cloud_storage_secret_key" (coalesce nil))))) "r") -}} |
| 1562 | +{{- $_ := (index $_2185___hasSecretKey 0) -}} |
| 1563 | +{{- $hasSecretKey := (index $_2185___hasSecretKey 1) -}} |
| 1564 | +{{- $_2186___hasSharedKey := (get (fromJson (include "_shims.dicttest" (dict "a" (list $config "cloud_storage_azure_shared_key" (coalesce nil))))) "r") -}} |
| 1565 | +{{- $_ := (index $_2186___hasSharedKey 0) -}} |
| 1566 | +{{- $hasSharedKey := (index $_2186___hasSharedKey 1) -}} |
1567 | 1567 | {{- $envvars := (coalesce nil) -}} |
1568 | 1568 | {{- if (and (not $hasAccessKey) (get (fromJson (include "redpanda.SecretRef.IsValid" (dict "a" (list $tsc.accessKey)))) "r")) -}} |
1569 | 1569 | {{- $envvars = (concat (default (list) $envvars) (list (mustMergeOverwrite (dict "name" "") (dict "name" "REDPANDA_CLOUD_STORAGE_ACCESS_KEY" "valueFrom" (get (fromJson (include "redpanda.SecretRef.AsSource" (dict "a" (list $tsc.accessKey)))) "r"))))) -}} |
|
1586 | 1586 | {{- $c := (index .a 0) -}} |
1587 | 1587 | {{- range $_ := (list 1) -}} |
1588 | 1588 | {{- $_is_returning := false -}} |
1589 | | -{{- $_2229___containerExists := (get (fromJson (include "_shims.dicttest" (dict "a" (list $c "cloud_storage_azure_container" (coalesce nil))))) "r") -}} |
1590 | | -{{- $_ := (index $_2229___containerExists 0) -}} |
1591 | | -{{- $containerExists := (index $_2229___containerExists 1) -}} |
1592 | | -{{- $_2230___accountExists := (get (fromJson (include "_shims.dicttest" (dict "a" (list $c "cloud_storage_azure_storage_account" (coalesce nil))))) "r") -}} |
1593 | | -{{- $_ := (index $_2230___accountExists 0) -}} |
1594 | | -{{- $accountExists := (index $_2230___accountExists 1) -}} |
| 1589 | +{{- $_2222___containerExists := (get (fromJson (include "_shims.dicttest" (dict "a" (list $c "cloud_storage_azure_container" (coalesce nil))))) "r") -}} |
| 1590 | +{{- $_ := (index $_2222___containerExists 0) -}} |
| 1591 | +{{- $containerExists := (index $_2222___containerExists 1) -}} |
| 1592 | +{{- $_2223___accountExists := (get (fromJson (include "_shims.dicttest" (dict "a" (list $c "cloud_storage_azure_storage_account" (coalesce nil))))) "r") -}} |
| 1593 | +{{- $_ := (index $_2223___accountExists 0) -}} |
| 1594 | +{{- $accountExists := (index $_2223___accountExists 1) -}} |
1595 | 1595 | {{- $_is_returning = true -}} |
1596 | 1596 | {{- (dict "r" (and $containerExists $accountExists)) | toJson -}} |
1597 | 1597 | {{- break -}} |
|
1602 | 1602 | {{- $c := (index .a 0) -}} |
1603 | 1603 | {{- range $_ := (list 1) -}} |
1604 | 1604 | {{- $_is_returning := false -}} |
1605 | | -{{- $_2235_value_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list $c `cloud_storage_cache_size` (coalesce nil))))) "r") -}} |
1606 | | -{{- $value := (index $_2235_value_ok 0) -}} |
1607 | | -{{- $ok := (index $_2235_value_ok 1) -}} |
| 1605 | +{{- $_2228_value_ok := (get (fromJson (include "_shims.dicttest" (dict "a" (list $c `cloud_storage_cache_size` (coalesce nil))))) "r") -}} |
| 1606 | +{{- $value := (index $_2228_value_ok 0) -}} |
| 1607 | +{{- $ok := (index $_2228_value_ok 1) -}} |
1608 | 1608 | {{- if (not $ok) -}} |
1609 | 1609 | {{- $_is_returning = true -}} |
1610 | 1610 | {{- (dict "r" (coalesce nil)) | toJson -}} |
|
0 commit comments