feat: add duration to affected releases on sync (#773)

* feat: add duration to affected releases on sync

Signed-off-by: Alexandru Axenti <alex.axenti@gmail.com>
This commit is contained in:
AlexAxenti
2023-04-15 08:09:47 +08:00
committed by GitHub
parent 7c72e2ba3e
commit 0012e7e5a1
45 changed files with 406 additions and 202 deletions
@@ -57,11 +57,12 @@ GROUP RELEASES
processing releases in group 1/1: default//foo
UPDATED RELEASES:
NAME CHART VERSION
foo stable/mychart1 3.1.0
NAME CHART VERSION DURATION
foo stable/mychart1 3.1.0 0s
DELETED RELEASES:
NAME
bar
NAME DURATION
bar 0s
changing working directory back to "/path/to"
@@ -57,11 +57,12 @@ GROUP RELEASES
processing releases in group 1/1: default//foo
UPDATED RELEASES:
NAME CHART VERSION
foo stable/mychart1 3.1.0
NAME CHART VERSION DURATION
foo stable/mychart1 3.1.0 0s
DELETED RELEASES:
NAME
bar
NAME DURATION
bar 0s
changing working directory back to "/path/to"
@@ -56,7 +56,8 @@ processing releases in group 1/2: default//bar
processing releases in group 2/2: default//foo
DELETED RELEASES:
NAME
bar
foo
NAME DURATION
bar 0s
foo 0s
changing working directory back to "/path/to"
@@ -56,7 +56,8 @@ processing releases in group 1/2: default//foo
processing releases in group 2/2: default//bar
DELETED RELEASES:
NAME
foo
bar
NAME DURATION
foo 0s
bar 0s
changing working directory back to "/path/to"
@@ -57,11 +57,12 @@ GROUP RELEASES
processing releases in group 1/1: default//bar
UPDATED RELEASES:
NAME CHART VERSION
bar stable/mychart2 3.1.0
NAME CHART VERSION DURATION
bar stable/mychart2 3.1.0 0s
DELETED RELEASES:
NAME
foo
NAME DURATION
foo 0s
changing working directory back to "/path/to"
@@ -57,11 +57,12 @@ GROUP RELEASES
processing releases in group 1/1: default//bar
UPDATED RELEASES:
NAME CHART VERSION
bar stable/mychart2 3.1.0
NAME CHART VERSION DURATION
bar stable/mychart2 3.1.0 0s
DELETED RELEASES:
NAME
foo
NAME DURATION
foo 0s
changing working directory back to "/path/to"
@@ -64,9 +64,9 @@ processing releases in group 2/2: default//foo
getting deployed release version failed: Failed to get the version for: mychart1
UPDATED RELEASES:
NAME CHART VERSION
baz stable/mychart3 3.1.0
bar stable/mychart2 3.1.0
foo stable/mychart1
NAME CHART VERSION DURATION
baz stable/mychart3 3.1.0 0s
bar stable/mychart2 3.1.0 0s
foo stable/mychart1 0s
changing working directory back to "/path/to"
@@ -64,9 +64,9 @@ processing releases in group 2/2: default//foo
getting deployed release version failed: Failed to get the version for: mychart1
UPDATED RELEASES:
NAME CHART VERSION
baz stable/mychart3 3.1.0
bar stable/mychart2 3.1.0
foo stable/mychart1
NAME CHART VERSION DURATION
baz stable/mychart3 3.1.0 0s
bar stable/mychart2 3.1.0 0s
foo stable/mychart1 0s
changing working directory back to "/path/to"
+4 -4
View File
@@ -60,9 +60,9 @@ processing releases in group 2/2: default//foo
getting deployed release version failed: unexpected list key: listkey(filter=^foo$,flags=--kube-contextdefault--uninstalling--deployed--failed--pending) not found in
UPDATED RELEASES:
NAME CHART VERSION
baz stable/mychart3
bar stable/mychart2
foo stable/mychart1
NAME CHART VERSION DURATION
baz stable/mychart3 0s
bar stable/mychart2 0s
foo stable/mychart1 0s
changing working directory back to "/path/to"
+12 -11
View File
@@ -170,18 +170,19 @@ processing releases in group 4/5: default//backend-v2
processing releases in group 5/5: default//frontend-v3
UPDATED RELEASES:
NAME CHART VERSION
logging charts/fluent-bit 3.1.0
front-proxy stable/envoy 3.1.0
database charts/mysql 3.1.0
servicemesh charts/istio 3.1.0
anotherbackend charts/anotherbackend 3.1.0
backend-v2 charts/backend 3.1.0
frontend-v3 charts/frontend 3.1.0
NAME CHART VERSION DURATION
logging charts/fluent-bit 3.1.0 0s
front-proxy stable/envoy 3.1.0 0s
database charts/mysql 3.1.0 0s
servicemesh charts/istio 3.1.0 0s
anotherbackend charts/anotherbackend 3.1.0 0s
backend-v2 charts/backend 3.1.0 0s
frontend-v3 charts/frontend 3.1.0 0s
DELETED RELEASES:
NAME
frontend-v1
backend-v1
NAME DURATION
frontend-v1 0s
backend-v1 0s
changing working directory back to "/path/to"
@@ -54,8 +54,8 @@ processing releases in group 2/2: default/testNamespace/bar
getting deployed release version failed: Failed to get the version for: mychart2
UPDATED RELEASES:
NAME CHART VERSION
foo stable/mychart1
bar stable/mychart2
NAME CHART VERSION DURATION
foo stable/mychart1 0s
bar stable/mychart2 0s
changing working directory back to "/path/to"
+3 -3
View File
@@ -54,8 +54,8 @@ processing releases in group 2/2: default//bar
getting deployed release version failed: Failed to get the version for: mychart2
UPDATED RELEASES:
NAME CHART VERSION
foo stable/mychart1
bar stable/mychart2
NAME CHART VERSION DURATION
foo stable/mychart1 0s
bar stable/mychart2 0s
changing working directory back to "/path/to"
@@ -54,8 +54,8 @@ processing releases in group 2/2: default/testNamespace/foo
getting deployed release version failed: Failed to get the version for: mychart1
UPDATED RELEASES:
NAME CHART VERSION
bar stable/mychart2
foo stable/mychart1
NAME CHART VERSION DURATION
bar stable/mychart2 0s
foo stable/mychart1 0s
changing working directory back to "/path/to"
+3 -3
View File
@@ -54,8 +54,8 @@ processing releases in group 2/2: default//foo
getting deployed release version failed: Failed to get the version for: mychart1
UPDATED RELEASES:
NAME CHART VERSION
bar stable/mychart2
foo stable/mychart1
NAME CHART VERSION DURATION
bar stable/mychart2 0s
foo stable/mychart1 0s
changing working directory back to "/path/to"
@@ -58,8 +58,8 @@ processing releases in group 2/2: default/ns1/foo
getting deployed release version failed: Failed to get the version for: mychart1
UPDATED RELEASES:
NAME CHART VERSION
bar stable/mychart2
foo stable/mychart1
NAME CHART VERSION DURATION
bar stable/mychart2 0s
foo stable/mychart1 0s
changing working directory back to "/path/to"
@@ -58,8 +58,8 @@ processing releases in group 2/2: default/ns2/bar
getting deployed release version failed: Failed to get the version for: mychart2
UPDATED RELEASES:
NAME CHART VERSION
foo stable/mychart1
bar stable/mychart2
NAME CHART VERSION DURATION
foo stable/mychart1 0s
bar stable/mychart2 0s
changing working directory back to "/path/to"
@@ -82,8 +82,8 @@ processing releases in group 1/2: default/default/external-secrets
processing releases in group 2/2: default/default/my-release
UPDATED RELEASES:
NAME CHART VERSION
external-secrets incubator/raw 3.1.0
my-release incubator/raw 3.1.0
NAME CHART VERSION DURATION
external-secrets incubator/raw 3.1.0 0s
my-release incubator/raw 3.1.0 0s
changing working directory back to "/path/to"