[Feature] Force spec apply even if conflicting resources exist with different deployment ID (#2338)

* Added allowconflicts flag to specs
* Made changes for all resources
* Added help for allowconflicts flag
* Changed function isObjectMetaEqual
This commit is contained in:
Ankit Chawla
2022-02-02 12:28:41 +05:30
committed by GitHub
parent 590eefaa52
commit 3ac188124e
6 changed files with 85 additions and 72 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ func (opts *DestroySubCommand) run(input cli.Input) error {
emptyFr.DeploymentConfig = fr.DeploymentConfig
// "apply" the empty state
_, _, err = applyResources(opts.Client(), specDir, &emptyFr, true)
_, _, err = applyResources(opts.Client(), specDir, &emptyFr, true, false)
if err != nil {
return errors.Wrap(err, "error deleting resources")
}