Skip to content

Commit 93b1d28

Browse files
Remove metadataUpdate calls from bluegreen_strategy_v3 (#526)
* Remove metadataUpdate calls from bluegreen_strategy_v3 * linter --------- Co-authored-by: Sam Leung <[email protected]>
1 parent 4f11552 commit 93b1d28

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

cloudfoundry/managers/v3appdeployers/bluegreen_strategy_v3.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ type metadata struct {
3737
}
3838

3939
const (
40-
appMetadata metadataType = "apps"
4140
stopAppTimeout time.Duration = 20 // CF SHOULD send a SIGKILL if an app is not stopped after 10 seconds
4241
delayBetweenRequests time.Duration = 2
4342
)
@@ -98,19 +97,6 @@ func (s BlueGreen) Deploy(appDeploy AppDeploy) (AppDeployResponse, error) {
9897
return err
9998
},
10099
},
101-
{
102-
Forward: func(ctx Context) (Context, error) {
103-
// copy metadata from original app since they do
104-
// not carry over in the ccv2.Application data structure
105-
appResp := ctx["app_response"].(AppDeployResponse)
106-
107-
metadata, err := metadataRetrieve(appDeploy.App.GUID, appMetadata, s.rawClient)
108-
if err == nil {
109-
_ = metadataUpdate(appResp.App.GUID, appMetadata, s.rawClient, metadata)
110-
}
111-
return ctx, nil
112-
},
113-
},
114100
{
115101
Forward: func(ctx Context) (Context, error) {
116102
// Ask CF to stop application (desired state)

0 commit comments

Comments
 (0)