Skip to content

Skip kata manager processing#2407

Open
rajatchopra wants to merge 3 commits intoNVIDIA:mainfrom
rajatchopra:deprecatekatamanager
Open

Skip kata manager processing#2407
rajatchopra wants to merge 3 commits intoNVIDIA:mainfrom
rajatchopra:deprecatekatamanager

Conversation

@rajatchopra
Copy link
Copy Markdown
Contributor

@rajatchopra rajatchopra commented Apr 27, 2026

Description

Do not process anything about kata manager. The operand stands deprecated. Any changes to cluster policy with respect to that section must not be responded to. Remove it from state manager.

Checklist

  • No secrets, sensitive information, or unrelated changes
  • Lint checks passing (make lint)
  • Generated assets in-sync (make validate-generated-assets)
  • Go mod artifacts in-sync (make validate-modules)
  • Test cases are added for new code paths

Testing

Manual testing on cluster with kataManager enabled=true manually on the CRD.
Prior to this fix, there is a panic in the logs. After the fix in this PR, it runs clean.

@rajatchopra rajatchopra changed the title do not process any kata manager [Draft][WIP]: do not process any kata manager Apr 27, 2026
@rajatchopra
Copy link
Copy Markdown
Contributor Author

Fixes #2398

@rajatchopra rajatchopra changed the title [Draft][WIP]: do not process any kata manager Skip kata manager processing Apr 28, 2026
Comment thread controllers/state_manager.go Outdated
Comment thread controllers/object_controls.go Outdated
return n.sandboxEnabled && clusterPolicySpec.SandboxDevicePlugin.IsEnabled() && clusterPolicySpec.SandboxWorkloads.Mode == string(gpuv1.KubeVirt)
case "state-kata-device-plugin":
return n.sandboxEnabled && clusterPolicySpec.KataSandboxDevicePlugin.IsEnabled() && clusterPolicySpec.SandboxWorkloads.Mode == string(gpuv1.Kata)
case "state-kata-manager":
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this also be removed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This probably not. Its double checking for enabled or not. Unless we ensure that the state is never created.

Comment thread controllers/object_controls.go Outdated
Comment thread controllers/object_controls.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this code still in use?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

can be removed 👍

Comment thread controllers/object_controls.go Outdated
… enabled=false

Signed-off-by: Rajat Chopra <rajatc@nvidia.com>
Signed-off-by: Rajat Chopra <rajatc@nvidia.com>
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