fix: resource lifecycle

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2020-07-09 15:12:20 +08:00
parent 7516019be5
commit ed8bb437e8
9 changed files with 335 additions and 123 deletions

View File

@@ -28,12 +28,3 @@ func IsControlledBy(reference []metav1.OwnerReference, kind string, name string)
}
return false
}
func GetControlledWorkspace(reference []metav1.OwnerReference) string {
for _, ref := range reference {
if ref.Kind == "Workspace" {
return ref.Name
}
}
return ""
}