Skip to content

Fix/primitive grace status bug#99

Merged
sourcehawk merged 9 commits into
mainfrom
fix/primitive-grace-status-bug
Mar 31, 2026
Merged

Fix/primitive grace status bug#99
sourcehawk merged 9 commits into
mainfrom
fix/primitive-grace-status-bug

Conversation

@sourcehawk
Copy link
Copy Markdown
Owner

@sourcehawk sourcehawk commented Mar 31, 2026

  • Fix primitive grace status handling bugs in alive primitives
  • Refactor component code to better manage data
  • Add inconsistency warning supression option to resource options
  • Add better ai instructions
  • Add blog post reference into documentation

Copilot AI review requested due to automatic review settings March 31, 2026 16:32
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts grace-period health reporting for “alive” workload primitives (Deployment/ReplicaSet/StatefulSet/DaemonSet) so they can report GraceStatusHealthy when readiness meets the desired target, updates related unit/E2E tests, and adds “Further Reading” links plus expanded AI contribution instructions.

Changes:

  • Update default grace status handlers for Deployment/ReplicaSet/StatefulSet/DaemonSet to treat “desired ready” as GraceStatusHealthy.
  • Extend unit tests for the new healthy grace cases and adjust the DaemonSet E2E “Degraded after grace” scenario to use a custom grace handler.
  • Add “Further Reading” references and expand Copilot/AI instruction docs.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
README.md Adds a “Further Reading” link to a related blog post.
pkg/primitives/deployment/handlers.go Changes Deployment grace health classification to include a Healthy branch when ready meets/exceeds desired.
pkg/primitives/deployment/handlers_test.go Adds unit tests for newly introduced Healthy grace behavior.
pkg/primitives/replicaset/handlers.go Changes ReplicaSet grace health classification to include a Healthy branch when ready meets/exceeds desired.
pkg/primitives/replicaset/handlers_test.go Adds unit tests for newly introduced Healthy grace behavior.
pkg/primitives/statefulset/handlers.go Changes StatefulSet grace health classification to include a Healthy branch when ready meets/exceeds desired.
pkg/primitives/statefulset/handlers_test.go Adds unit tests for newly introduced Healthy grace behavior.
pkg/primitives/daemonset/handlers.go Updates DaemonSet grace health classification to include a Healthy branch when all desired pods are ready.
pkg/primitives/daemonset/handlers_test.go Adds a unit test for the “all ready => Healthy” grace behavior.
e2e/primitives/daemonset_test.go Updates grace-period Degraded E2E test to use a custom grace handler now that the default grace handler can return Healthy.
docs/guidelines.md Adds “Further Reading” link.
.github/copilot-instructions.md Expands docs/package references and adds E2E testing guidance.
.ai/base.md Mirrors the Copilot instruction updates for the AI base instructions.

Comment thread pkg/primitives/deployment/handlers.go
Comment thread pkg/primitives/deployment/handlers.go
Comment thread pkg/primitives/deployment/handlers_test.go
Comment thread pkg/primitives/replicaset/handlers.go
Comment thread pkg/primitives/replicaset/handlers.go
Comment thread pkg/primitives/statefulset/handlers.go
Comment thread pkg/primitives/statefulset/handlers.go
Comment thread pkg/primitives/statefulset/handlers_test.go
Comment thread pkg/primitives/daemonset/handlers.go Outdated
Comment thread pkg/primitives/daemonset/handlers_test.go
Copilot AI review requested due to automatic review settings March 31, 2026 17:27
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.

Comment thread pkg/primitives/cronjob/handlers.go Outdated
Comment thread pkg/primitives/daemonset/handlers.go
Copilot AI review requested due to automatic review settings March 31, 2026 19:31
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 31 out of 31 changed files in this pull request and generated 1 comment.

Comment thread pkg/component/converge.go
@sourcehawk sourcehawk merged commit 122b7b1 into main Mar 31, 2026
3 checks passed
@sourcehawk sourcehawk deleted the fix/primitive-grace-status-bug branch March 31, 2026 20:00
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