Skip to content

feat: add tolerations support#820

Open
preko-p wants to merge 1 commit into
k8sgpt-ai:mainfrom
preko-p:767-support-tolerations
Open

feat: add tolerations support#820
preko-p wants to merge 1 commit into
k8sgpt-ai:mainfrom
preko-p:767-support-tolerations

Conversation

@preko-p

@preko-p preko-p commented Jun 8, 2026

Copy link
Copy Markdown

Summary

  • add optional spec.tolerations support to K8sGPT custom resources
  • propagate CR tolerations to the managed K8sGPT Deployment pod spec
  • add controllerManager.tolerations to the operator Helm chart and render it in the controller-manager Deployment
  • update CRD schemas, chart docs, sample config, deepcopy code, and focused deployment scheduling coverage

Fixes #767.

Tests

  • go test ./api/v1alpha1 ./pkg/resources
  • helm template release chart/operator
  • helm template release chart/operator --set 'controllerManager.tolerations[0].key=dedicated' --set 'controllerManager.tolerations[0].operator=Equal' --set 'controllerManager.tolerations[0].value=ai' --set 'controllerManager.tolerations[0].effect=NoSchedule'
  • helm lint chart/operator
  • git diff --check

make generate and make manifests could not complete in my local macOS environment because the locally built controller-gen binary aborts with dyld: missing LC_UUID load command. The corresponding deepcopy and CRD schema updates are included in this patch.

@preko-p preko-p requested review from a team as code owners June 8, 2026 12:20
@linux-foundation-easycla

linux-foundation-easycla Bot commented Jun 8, 2026

Copy link
Copy Markdown

CLA Not Signed

@preko-p preko-p force-pushed the 767-support-tolerations branch from 4080ef3 to ab6a788 Compare June 9, 2026 19:04
Signed-off-by: preko06 <istvan.orban@workl.com>
Signed-off-by: preko-p <278021202+preko-p@users.noreply.github.com>
@preko-p preko-p force-pushed the 767-support-tolerations branch from ab6a788 to d3ccaf0 Compare June 9, 2026 19:05
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.

[Feature]: Support tolerations in K8sGPT spec and operator deployment

1 participant