Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha committed Jun 11, 2021
1 parent bdf4169 commit 5f86f7e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions pkg/deploy/dev-workspace/dev_workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,20 +386,6 @@ func syncObject(deployContext *deploy.DeployContext, obj2sync *Object2Sync, name
return true, nil
}

func readAndDeleteObject(deployContext *deploy.DeployContext, yamlFile string, obj interface{}, namespace string) (bool, error) {
obj2sync, err := readK8SObject(yamlFile, obj)
if err != nil {
return false, err
}
return deleteObject(deployContext, obj2sync, namespace)
}

func deleteObject(deployContext *deploy.DeployContext, obj2sync *Object2Sync, namespace string) (bool, error) {
obj2sync.obj.SetNamespace(namespace)
key := types.NamespacedName{Name: obj2sync.obj.GetName(), Namespace: obj2sync.obj.GetNamespace()}
return deploy.Delete(deployContext, key, obj2sync.obj.(metav1.Object))
}

func setAnnotations(deployContext *deploy.DeployContext, obj2sync *Object2Sync) {
annotations := obj2sync.obj.GetAnnotations()
if annotations == nil {
Expand Down

0 comments on commit 5f86f7e

Please sign in to comment.