Skip to content

Comments

feat: add persistent volume claim trackability#1066

Closed
britaniar wants to merge 1 commit intoAzure:mainfrom
britaniar:pvcTrackability
Closed

feat: add persistent volume claim trackability#1066
britaniar wants to merge 1 commit intoAzure:mainfrom
britaniar:pvcTrackability

Conversation

@britaniar
Copy link
Contributor

Description of your changes

Fixes #

I have: added pvc health check

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

@britaniar britaniar marked this pull request as ready for review March 4, 2025 23:08
if err := runtime.DefaultUnstructuredConverter.FromUnstructured(curObj.Object, &pvc); err != nil {
return ManifestProcessingAvailabilityResultTypeFailed, controller.NewUnexpectedBehaviorError(err)
}
if pvc.Status.Phase == corev1.ClaimBound {
Copy link
Contributor

Choose a reason for hiding this comment

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

actually a PVC does not need to be bound to be healthy. For example, if a PVC uses a storage class that is "bound on first use" then it won't be bound until some pod uses it.

@britaniar britaniar closed this Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants