// Dispose deletes deployment and service
Dispose deletes deployment and service
// Dispose deletes deployment and service
func (m *AppManager) Dispose() error {
	if err := m.DeleteDeployment(true); err != nil {
		return err
	}
	if _, err := m.WaitUntilDeploymentState(m.IsDeploymentDeleted); err != nil {
		return err
	}
	if err := m.DeleteService(true); err != nil {
		return err
	}
	if _, err := m.WaitUntilServiceState(m.IsServiceDeleted); err != nil {
		return err
	}
	if m.stopChannel != nil {
		close(m.stopChannel)
	}
	return nil
}
func ( m * AppManager ) Dispose ( ) error { if err := m . DeleteDeployment ( true ) ; err != nil { return err } if _ , err := m . WaitUntilDeploymentState ( m . IsDeploymentDeleted ) ; err != nil { return err } if err := m . DeleteService ( true ) ; err != nil { return err } if _ , err := m . WaitUntilServiceState ( m . IsServiceDeleted ) ; err != nil { return err } if m . stopChannel != nil { close ( m . stopChannel ) } return nil }
Dispose deletes deployment and service
Dispose deletes deployment and service
// stop the port forwrding channel