Skip to content

Conversation

@khanhtc1202
Copy link
Member

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #1413

Does this PR introduce a user-facing change?:

NONE

func (s *stopSignal) Terminated() bool {
value := s.signal.Load()
return StopSignalType(value) != StopSignalNone
return StopSignalType(value) != StopSignalTerminate
Copy link
Member

Choose a reason for hiding this comment

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

==

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks 🙏

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 34.00%. This pull request decreases coverage by -0.06%.

File Function Base Head Diff
pkg/app/piped/cloudprovider/kubernetes/state.go determineRoleHealth -- 0.00% +0.00%
pkg/app/piped/cloudprovider/kubernetes/state.go determineRoleBindingHealth -- 0.00% +0.00%
pkg/app/piped/cloudprovider/kubernetes/state.go determineClusterRoleHealth -- 0.00% +0.00%
pkg/app/piped/cloudprovider/kubernetes/state.go determineClusterRoleBindingHealth -- 0.00% +0.00%
pkg/app/piped/cloudprovider/kubernetes/state.go determineResourceHealth 0.00% 0.00% +0.00%

@nakabonne
Copy link
Member

/lgtm

@nghialv
Copy link
Member

nghialv commented Jan 13, 2021

Nice catch! Thank you.
/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
Copy link
Collaborator

COVERAGE

Code coverage for golang is 34.00%. This pull request decreases coverage by -0.06%.

File Function Base Head Diff
pkg/app/piped/cloudprovider/kubernetes/state.go determineRoleHealth -- 0.00% +0.00%
pkg/app/piped/cloudprovider/kubernetes/state.go determineRoleBindingHealth -- 0.00% +0.00%
pkg/app/piped/cloudprovider/kubernetes/state.go determineClusterRoleHealth -- 0.00% +0.00%
pkg/app/piped/cloudprovider/kubernetes/state.go determineClusterRoleBindingHealth -- 0.00% +0.00%
pkg/app/piped/cloudprovider/kubernetes/state.go determineResourceHealth 0.00% 0.00% +0.00%

@pipecd-bot pipecd-bot merged commit c623a1a into master Jan 13, 2021
@pipecd-bot pipecd-bot deleted the fix-bug-update-state-status branch January 13, 2021 05:22
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.

State applied status does not reflect the view in case deployment failed caused by some reasons other than piped process got killed

5 participants