Skip to content

support probe pod's toleration - #193

Merged
peng225 merged 1 commit into
mainfrom
pie-probe-toleration-support
Aug 31, 2026
Merged

peng225 merged 1 commit into
mainfrom
pie-probe-toleration-support

Conversation

@peng225

@peng225 peng225 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Signed-off-by: Shinya Hayashi shinya-hayashi@cybozu.co.jp

Signed-off-by: Shinya Hayashi <shinya-hayashi@cybozu.co.jp>

Copilot AI left a comment

Copy link
Copy Markdown

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 adds support for configuring Kubernetes pod tolerations for PieProbe “probe” CronJob pods, allowing them to schedule onto tainted nodes when required.

Changes:

  • Adds spec.tolerations to the PieProbe API type and regenerates deepcopy code.
  • Applies pieProbe.Spec.Tolerations onto the CronJob pod template spec in the controller.
  • Extends controller tests to verify tolerations propagate to all generated probe CronJobs.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
internal/controller/pie/pieprobe_controller.go Propagates PieProbe.spec.tolerations into the CronJob pod template.
internal/controller/pie/pieprobe_controller_test.go Adds an envtest verifying tolerations are set on all probe CronJobs after updating the CR.
config/crd/bases/pie.topolvm.io_pieprobes.yaml Updates the generated CRD schema to include spec.tolerations.
charts/pie/templates/pie.topolvm.io_pieprobes.yaml Mirrors the CRD schema change in the Helm chart CRD template.
api/pie/v1alpha1/zz_generated.deepcopy.go Regenerates deepcopy logic to include the new Tolerations slice.
api/pie/v1alpha1/pieprobe_types.go Adds Tolerations []corev1.Toleration to the PieProbe spec.
Files not reviewed (1)
  • api/pie/v1alpha1/zz_generated.deepcopy.go: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@peng225
peng225 marked this pull request as ready for review August 31, 2026 00:46
@peng225
peng225 requested a review from a team as a code owner August 31, 2026 00:46
@peng225
peng225 merged commit a51a56b into main Aug 31, 2026
8 checks passed
@peng225
peng225 deleted the pie-probe-toleration-support branch August 31, 2026 08:23
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.

4 participants