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

Check app nullish in livestatestore before use #2418

Merged
merged 2 commits into from
Sep 3, 2021
Merged

Conversation

khanhtc1202
Copy link
Member

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 32.41%. This pull request decreases coverage by -0.01%.

File Function Base Head Diff
pkg/app/piped/livestatestore/kubernetes/store.go store.initialize 0.00% 0.00% +0.00%

@@ -69,6 +69,11 @@ func (s *store) initialize() {
continue
}

// Ignore in case appNodes with appID not existed in store.
if s.apps[appID] == nil {
Copy link
Member

Choose a reason for hiding this comment

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

Because this is an unexpected situation so can you add a log here to help us figure out what resource is causing this problem?

@nghialv nghialv changed the title [WIP] Check app nullish in livestatestore before use Check app nullish in livestatestore before use Sep 3, 2021
@nghialv
Copy link
Member

nghialv commented Sep 3, 2021

/approve

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is APPROVED by nghialv.

Approvers can cancel the approval by writing /approve cancel in a comment. Any additional commits also will change this pull request to be not-approved.

@pipecd-bot pipecd-bot merged commit 1bbf2b0 into master Sep 3, 2021
@pipecd-bot pipecd-bot deleted the avoid-nil-app branch September 3, 2021 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants