// DeleteDeployment deletes deployment for the test app
DeleteDeployment deletes deployment for the test app
// DeleteDeployment deletes deployment for the test app
func (m *AppManager) DeleteDeployment(ignoreNotFound bool) error {
	deploymentsClient := m.client.Deployments(m.namespace)
	deletePolicy := metav1.DeletePropagationForeground
	if err := deploymentsClient.Delete(m.app.AppName, &metav1.DeleteOptions{
		PropagationPolicy: &deletePolicy,
	}); err != nil && (ignoreNotFound && !errors.IsNotFound(err)) {
		return err
	}
	return nil
}
func ( m * AppManager ) DeleteDeployment ( ignoreNotFound bool ) error { deploymentsClient := m . client . Deployments ( m . namespace ) deletePolicy := metav1 . DeletePropagationForeground if err := deploymentsClient . Delete ( m . app . AppName , & metav1 . DeleteOptions { PropagationPolicy : & deletePolicy , } ) ; err != nil && ( ignoreNotFound && ! errors . IsNotFound ( err ) ) { return err } return nil }
DeleteDeployment deletes deployment for the test app
DeleteDeployment deletes deployment for the test app