mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-01 19:00:08 +02:00
The '========== Updated Releases ==========' header was a fixed 38 chars regardless of the table width below it. Now the divider line is extended to match the table's visual width, with the title text centered within the '=' borders. - Add TableVisualWidth() to measure table width via runewidth - Add HeaderDividerCentered() and HeaderDividerCenteredStyled() for centered dividers with optional bold+blue ANSI styling - Refactor DisplayAffectedReleases to build the table first, then compute its width before logging the header - Update all test snapshots and integration test output files Signed-off-by: yxxhero <aiopsclub@163.com>
57 lines
1.6 KiB
Plaintext
57 lines
1.6 KiB
Plaintext
rendering starting for "helmfile.yaml.gotmpl.part.0": inherited=&{default map[] map[] map[]}, overrode=<nil>
|
|
rendering result of "helmfile.yaml.gotmpl.part.0":
|
|
0:
|
|
1:
|
|
2:
|
|
3: releases:
|
|
4: - name: serviceA
|
|
5: chart: my/chart
|
|
6: needs:
|
|
7: - serviceB
|
|
8:
|
|
9: - name: serviceB
|
|
10: chart: my/chart
|
|
11: needs:
|
|
12: - serviceC
|
|
13:
|
|
14: - name: serviceC
|
|
15: chart: my/chart
|
|
16:
|
|
17: - name: serviceD
|
|
18: chart: my/chart
|
|
19:
|
|
|
|
merged environment: &{default map[] map[] map[]}
|
|
3 release(s) matching name=serviceA found in helmfile.yaml.gotmpl
|
|
|
|
Affected releases are:
|
|
serviceA (my/chart) UPDATED
|
|
serviceB (my/chart) UPDATED
|
|
serviceC (my/chart) UPDATED
|
|
|
|
invoking preapply hooks for 3 groups of releases in this order:
|
|
GROUP RELEASES
|
|
1 default//serviceA
|
|
2 default//serviceB
|
|
3 default//serviceC
|
|
|
|
invoking preapply hooks for releases in group 1/3: default//serviceA
|
|
invoking preapply hooks for releases in group 2/3: default//serviceB
|
|
invoking preapply hooks for releases in group 3/3: default//serviceC
|
|
processing 3 groups of releases in this order:
|
|
GROUP RELEASES
|
|
1 default//serviceC
|
|
2 default//serviceB
|
|
3 default//serviceA
|
|
|
|
processing releases in group 1/3: default//serviceC
|
|
processing releases in group 2/3: default//serviceB
|
|
processing releases in group 3/3: default//serviceA
|
|
|
|
[1m[34m================= Updated Releases =================[0m
|
|
NAME NAMESPACE CHART VERSION DURATION
|
|
serviceC my/chart 3.1.0 0s
|
|
serviceB my/chart 3.1.0 0s
|
|
serviceA my/chart 3.1.0 0s
|
|
|