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

Add todo for health state checks #354

Merged
merged 1 commit into from
Jul 9, 2020
Merged

Add todo for health state checks #354

merged 1 commit into from
Jul 9, 2020

Conversation

nakabonne
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

TODO

The following ISSUES will be created once got merged. If you want me to skip creating the issue, you can use /todo skip command.

Details

1. Check health state of CronJob resource

https://github.com/pipe-cd/pipe/blob/285525ca8c9340d12b0a6dfcaf81ecad6e502ea6/pkg/app/piped/cloudprovider/kubernetes/state.go#L293-L296

This was created by todo plugin since "TODO:" was found in 285525c when #354 was merged. cc: @nakabonne.

2. Check health state of PersistentVolume resource

https://github.com/pipe-cd/pipe/blob/285525ca8c9340d12b0a6dfcaf81ecad6e502ea6/pkg/app/piped/cloudprovider/kubernetes/state.go#L447-L450

This was created by todo plugin since "TODO:" was found in 285525c when #354 was merged. cc: @nakabonne.

Copy link
Collaborator

@pipecd-bot pipecd-bot left a comment

Choose a reason for hiding this comment

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

GO_LINTER

Some issues were detected while linting go source files in your changes.

@@ -286,6 +290,12 @@ func determineReplicaSetHealth(obj *unstructured.Unstructured) (status model.Kub
return
}

// TODO: Check health state of CronJob resource
func determineCronJobHealth(obj *unstructured.Unstructured) (status model.KubernetesResourceState_HealthStatus, desc string) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

obj is unused in determineCronJobHealth

@@ -434,6 +444,12 @@ func determineSecretHealth(obj *unstructured.Unstructured) (status model.Kuberne
return
}

// TODO: Check health state of PersistentVolume resource
func determinePersistentVolumeHealth(obj *unstructured.Unstructured) (status model.KubernetesResourceState_HealthStatus, desc string) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

obj is unused in determinePersistentVolumeHealth

@nghialv
Copy link
Member

nghialv commented Jul 9, 2020

/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 24.14%. This pull request decreases coverage by -0.03%.

File Function Base Head Diff
pkg/app/piped/cloudprovider/kubernetes/state.go determineCronJobHealth -- 0.00% +0.00%
pkg/app/piped/cloudprovider/kubernetes/state.go determinePersistentVolumeHealth -- 0.00% +0.00%
pkg/app/piped/cloudprovider/kubernetes/state.go determineResourceHealth 0.00% 0.00% +0.00%

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