// Exists returns true if given application (appName) exists
Exists returns true if given application (appName) exists
// Exists returns true if given application ( appName ) exists
func Exists(client *occlient.Client, appName string) (bool, error) {
	apps, err := ListInProject(client)
	if err != nil {
		return false, errors.Wrap(err, "unable to list applications")
	}
	for _, app := range apps {
		if app.Name == appName {
			return true, nil
		}
	}
	return false, errors.Errorf("application %v does not exist in project %v", appName, client.Namespace)
}
func Exists ( client * occlient . Client , appName string ) ( bool , error ) { apps , err := ListInProject ( client ) if err != nil { return false , errors . Wrap ( err , " " ) } for _ , app := range apps { if app . Name == appName { return true , nil } } return false , errors . Errorf ( " " , appName , client . Namespace ) }
Exists returns true if given application (appName) exists
Exists returns true if given application ( appName ) exists