Skip to content

Skip kata manager processing#2407

Open
rajatchopra wants to merge 4 commits into
NVIDIA:mainfrom
rajatchopra:deprecatekatamanager
Open

Skip kata manager processing#2407
rajatchopra wants to merge 4 commits into
NVIDIA:mainfrom
rajatchopra:deprecatekatamanager

Conversation

@rajatchopra

@rajatchopra rajatchopra commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

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
Comment thread controllers/object_controls.go
Comment thread controllers/state_manager.go
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>
@rajatchopra rajatchopra force-pushed the deprecatekatamanager branch from 87a65f9 to 72a6f85 Compare June 15, 2026 19:42
Signed-off-by: Rajat Chopra <rajatc@nvidia.com>
@rajatchopra rajatchopra force-pushed the deprecatekatamanager branch from 72a6f85 to 7419b11 Compare June 15, 2026 19:47

if n.stateNames[state] == "state-kata-manager" {
return transformKataRuntimeClasses(n)
// Kata Manager is deprecated, no need to process anything

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.

We will need to cleanup kata RuntimeClasses as well. So we can list them and delete here.

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.

Only if we are sure we created them. Because they now get created by kata-deploy helm chart. Can't mess with runtimeclasses on a system. Probably okay to leave them as is. No harm.

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.

3 participants