Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix status reporting when the source is not found #141

Merged
merged 2 commits into from
Oct 15, 2020
Merged

Conversation

stefanprodan
Copy link
Member

When the source is not found the status wasn't updated accordingly.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan added area/kustomize Kustomize related issues and pull requests bug Something isn't working labels Oct 14, 2020

// check source readiness
if source.GetArtifact() == nil {
if err != nil || source.GetArtifact() == nil {
Copy link
Member

@hiddeco hiddeco Oct 14, 2020

Choose a reason for hiding this comment

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

Looking at the logic of getSource, the result of this is that a "not found" or transient error (they are both the same there, instead of relying on apierrors.IsNotFound()) is equal to the source not being ready (in messaging). I am not sure if this is what you are after.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point 👍 Please check the latest push.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan merged commit 40b4f9e into main Oct 15, 2020
@stefanprodan stefanprodan deleted the fix-source-404 branch October 15, 2020 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kustomize Kustomize related issues and pull requests bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants