Skip to content

Fix status reporting when the source is not found#141

Merged
stefanprodan merged 2 commits intomainfrom
fix-source-404
Oct 15, 2020
Merged

Fix status reporting when the source is not found#141
stefanprodan merged 2 commits intomainfrom
fix-source-404

Conversation

@stefanprodan
Copy link
Copy Markdown
Member

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

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan requested a review from hiddeco October 14, 2020 16:58
@stefanprodan stefanprodan added area/kustomize Kustomize related issues and pull requests bug Something isn't working labels Oct 14, 2020
Comment thread controllers/kustomization_controller.go Outdated

// check source readiness
if source.GetArtifact() == nil {
if err != nil || source.GetArtifact() == nil {
Copy link
Copy Markdown
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
Copy Markdown
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