File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
lib/interface/cli/commands/hybrid Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,10 @@ const deleteCmd = new Command({
124
124
. option ( 'kube-config-path' , {
125
125
describe : 'Path to kubeconfig file (default is $HOME/.kube/config)' ,
126
126
} )
127
+ . option ( 'keep-cluster-integration' , {
128
+ describe : 'If true, will not delete dangling cluster integrations from Codefresh' ,
129
+ type : Boolean ,
130
+ } )
127
131
. option ( 'values' , {
128
132
describe : 'specify values in a YAML file' ,
129
133
} )
@@ -142,6 +146,7 @@ const deleteCmd = new Command({
142
146
verbose,
143
147
force,
144
148
'kube-config-path' : kubeConfigPath ,
149
+ 'keep-cluster-integration' : keepClusterIntegration ,
145
150
} = _argv ;
146
151
let {
147
152
url,
@@ -249,7 +254,7 @@ const deleteCmd = new Command({
249
254
const runtimesToDelete = _ . filter ( runtimes , re => attachedRuntimes . includes ( _ . get ( re , 'metadata.name' ) ) ) ;
250
255
const defaultRuntime = _ . get ( _ . find ( runtimes , re => re . default ) , 'metadata.name' ) ;
251
256
252
- const clustersToDelete = getClustersToDelete ( clusters , runtimes , runtimesToDelete ) ;
257
+ const clustersToDelete = keepClusterIntegration ? [ ] : getClustersToDelete ( clusters , runtimes , runtimesToDelete ) ;
253
258
const appProxyToDelete = getAppProxyToDelete ( runtimesToDelete ) ;
254
259
255
260
if ( ! force ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.81.4 " ,
3
+ "version" : " 0.81.5 " ,
4
4
"description" : " Codefresh command line utility" ,
5
5
"main" : " index.js" ,
6
6
"preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments