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