New 🌊 wave for @helm

Commit 7086cf06

7086cf0699e3Merged

Sviatoslav Dumchenko <[email protected]> · 3 years ago · 9 files · ~9 modified

Description

chore: refactor a bit

Details

Commit
7086cf0699e3
Parent
43239e91a76e

pkg/hooks/run.gomodifiedView file

@@ -84,7 +84,7 @@
8484
8585 // BUILD
8686
87-func (l *Lifecycle) PreBuilding(ctx context.Context) error {
87+func (l *Lifecycle) RunPreBuild(ctx context.Context) error {
8888 ctx = helper.ContextWithLifecycleType(ctx, "pre-build")
8989
9090 if len(l.PreBuild) != 0 {
@@ -96,7 +96,7 @@
9696 return nil
9797 }
9898
99-func (l *Lifecycle) PostBuilding(ctx context.Context) error {
99+func (l *Lifecycle) RunPostBuild(ctx context.Context) error {
100100 ctx = helper.ContextWithLifecycleType(ctx, "post-build")
101101
102102 if len(l.PostBuild) != 0 {
@@ -110,7 +110,7 @@
110110
111111 // UP
112112
113-func (l *Lifecycle) PreUping(ctx context.Context) error {
113+func (l *Lifecycle) RunPreUp(ctx context.Context) error {
114114 ctx = helper.ContextWithLifecycleType(ctx, "pre-up")
115115
116116 if len(l.PreUp) != 0 {
@@ -122,7 +122,7 @@
122122 return nil
123123 }
124124
125-func (l *Lifecycle) PostUping(ctx context.Context) error {
125+func (l *Lifecycle) RunPostUp(ctx context.Context) error {
126126 ctx = helper.ContextWithLifecycleType(ctx, "post-up")
127127
128128 if len(l.PostUp) != 0 {
@@ -136,7 +136,7 @@
136136
137137 // DOWN
138138
139-func (l *Lifecycle) PreDowning(ctx context.Context) error {
139+func (l *Lifecycle) RunPreDown(ctx context.Context) error {
140140 ctx = helper.ContextWithLifecycleType(ctx, "pre-down")
141141
142142 if len(l.PreDown) != 0 {
@@ -148,7 +148,7 @@
148148 return nil
149149 }
150150
151-func (l *Lifecycle) PostDowning(ctx context.Context) error {
151+func (l *Lifecycle) RunPostDown(ctx context.Context) error {
152152 ctx = helper.ContextWithLifecycleType(ctx, "post-down")
153153
154154 if len(l.PostDown) != 0 {
@@ -162,7 +162,7 @@
162162
163163 // ROLLBACK
164164
165-func (l *Lifecycle) PreRollbacking(ctx context.Context) error {
165+func (l *Lifecycle) RunPreRollback(ctx context.Context) error {
166166 ctx = helper.ContextWithLifecycleType(ctx, "pre-rollback")
167167
168168 if len(l.PreRollback) != 0 {
@@ -174,7 +174,7 @@
174174 return nil
175175 }
176176
177-func (l *Lifecycle) PostRollbacking(ctx context.Context) error {
177+func (l *Lifecycle) RunPostRollback(ctx context.Context) error {
178178 ctx = helper.ContextWithLifecycleType(ctx, "post-rollback")
179179
180180 if len(l.PostRollback) != 0 {