Skip to content

Commit 83a2faf

Browse files
committed
Force replacement on restart strategy
1 parent 112cb91 commit 83a2faf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

util/commands.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ const deployment = {
1818
replaceConfig (config) {
1919
return executeCommand('kubectl', ['replace', '-f', '-'], {input: config})
2020
},
21+
forceReplaceConfig (config) {
22+
return executeCommand('kubectl', ['replace', '--force', '-f', '-'], {input: config})
23+
},
2124
delete (deploymentName) {
2225
return executeCommand('kubectl', ['delete', 'deployment', deploymentName])
2326
},
@@ -45,7 +48,7 @@ const deployment = {
4548
},
4649
restart (deploymentName) {
4750
return this.getConfig(deploymentName).then(config => {
48-
return this.replaceConfig(config)
51+
return this.forceReplaceConfig(config)
4952
})
5053
},
5154
rollout (deploymentName) {

0 commit comments

Comments
 (0)