Skip to content

feat: support config hash annotation for StatefulSets and DaemonSets#7025

Open
Parthtiw710 wants to merge 1 commit into
pipe-cd:masterfrom
Parthtiw710:feat/annotate-statefulset-daemonset
Open

feat: support config hash annotation for StatefulSets and DaemonSets#7025
Parthtiw710 wants to merge 1 commit into
pipe-cd:masterfrom
Parthtiw710:feat/annotate-statefulset-daemonset

Conversation

@Parthtiw710

Copy link
Copy Markdown

What this PR does / why we need it:

This PR adds support for automatically annotating configuration hash changes to StatefulSet and DaemonSet workloads in the new pipedv1 Kubernetes plugin.

Prior to this PR, config map and secret hash annotation triggers for automatic pod restarts were only applied to Deployment workloads, leaving a placeholder TODO.

Key Changes:

  1. Workload support expansion: Updated the annotateConfigHash function in pkg/app/pipedv1/plugin/kubernetes/deployment/annotate.go to process StatefulSet and DaemonSet manifests.
  2. Comprehensive tests: Added new unit tests in annotate_test.go verifying that config-hashes are calculated and injected correctly on both workload types.

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.

1 participant