Skip to content

fix(chart): remove kustomize-adopt hook that fails on tainted clusters#34

Merged
ian-flores merged 1 commit intomainfrom
remove-kustomize-adopt-hook
Jan 13, 2026
Merged

fix(chart): remove kustomize-adopt hook that fails on tainted clusters#34
ian-flores merged 1 commit intomainfrom
remove-kustomize-adopt-hook

Conversation

@ian-flores
Copy link
Contributor

Summary

  • Remove the kustomize-adopt Helm hook Job that runs on pre-install/pre-upgrade
  • This hook cannot be scheduled on clusters with taints (e.g., workload-type=session:NoSchedule, nvidia.com/gpu=true:NoSchedule)
  • PTD has its own migration job that handles CRD adoption, making this hook redundant

Removed Resources

  • Job: {{ .Release.Name }}-kustomize-adopt
  • ServiceAccount: {{ .Release.Name }}-cleanup
  • ClusterRole: {{ .Release.Name }}-cleanup
  • ClusterRoleBinding: {{ .Release.Name }}-cleanup

Chart Version

Bumped from 1.0.3 → 1.0.4

Test Plan

  • helm lint passes
  • helm template renders successfully
  • Deploy to test cluster and verify operator installs without the hook

Remove the pre-install/pre-upgrade hook Job that adopts kustomize-managed
resources into Helm. This hook cannot be scheduled on clusters with taints
(e.g., workload-type=session:NoSchedule, nvidia.com/gpu=true:NoSchedule).

PTD has its own migration job that handles CRD adoption, making this
hook redundant.

Removed resources:
- Job: kustomize-adopt
- ServiceAccount: cleanup
- ClusterRole: cleanup
- ClusterRoleBinding: cleanup
@claude
Copy link

claude bot commented Jan 13, 2026

Claude finished @ian-flores's task —— View job


PR Review Complete

  • Read review guidelines
  • Get PR diff
  • Analyze changes
  • Create and submit review

Reviewed as a non-blocking comment. The PR cleanly removes redundant migration functionality that was causing scheduling failures on tainted clusters. No issues found.

@ian-flores ian-flores marked this pull request as ready for review January 13, 2026 18:14
Copy link

@claude claude bot left a comment

Choose a reason for hiding this comment

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

Review Summary

LGTM - This is a clean removal of redundant functionality that was causing scheduling failures.

Helm Chart Checklist

  • Chart version bump appropriate (patch version for removing unused feature)
  • No orphaned references to removed resources
  • RBAC removal reduces attack surface (removed ServiceAccount, ClusterRole, ClusterRoleBinding)
  • Migration directory cleaned up (was the only file in it)

Security (Elevated Scrutiny - RBAC Changes)

The removal of the {{ .Release.Name }}-cleanup ClusterRole is a security improvement:

  • Removed broad get, list, patch permissions on CRDs, Deployments, RBAC resources
  • These permissions were only needed for the migration job which is no longer required

Notes

  • The hook's purpose (adopting kustomize-managed resources into Helm) is now handled by PTD's migration job
  • The scheduling issue on tainted clusters (NoSchedule taints) is resolved by removing the Job entirely
  • No documentation references to kustomize migration found that would need updating

Ship it.

@ian-flores ian-flores merged commit f5cebef into main Jan 13, 2026
3 checks passed
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.

1 participant