Skip to content
This repository has been archived by the owner on Oct 5, 2020. It is now read-only.

CLOUD-2093 Abort if Argo app is found #171

Merged
merged 1 commit into from Nov 4, 2019
Merged

Conversation

der-eismann
Copy link
Member

No description provided.

@der-eismann der-eismann requested a review from a team November 1, 2019 16:39
pkg/api/apply.go Outdated
appsClient := argoClient.Applications("")
_, err = appsClient.Get(project, v1.GetOptions{})
if err != nil {
log.Warnf("failed to get argo app '%s' - legacy project", project)
Copy link
Member

@svenwltr svenwltr Nov 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't that mean that we get this error message on every legacy deployment?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it to a debug message, I just want to make sure we notice any errors in the logs.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case you should examine the error type and check if it is a not found error or something other.

@der-eismann der-eismann merged commit 9522af4 into master Nov 4, 2019
@der-eismann der-eismann deleted the abort-argo-apps branch November 4, 2019 14:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants