Skip to content

Commit 5a7f60d

Browse files
committed
server: preserve extended resources on shutdown for sandbox persistence
When CAA shuts down (e.g., pod restart during rolling update), RemoveExtendedResources() removes the kata.peerpods.io/vm capacity from the node. This causes the kubelet to consider existing peerpod pods as unschedulable and evict them, defeating sandbox persistence across CAA restarts. Remove the RemoveExtendedResources() call from Shutdown() so that the node retains its peerpod capacity. The extended resources are re-advertised on startup via AdvertiseExtendedResources(), making the removal on shutdown unnecessary. Signed-off-by: Thejas N <thn@redhat.com>
1 parent bf0c548 commit 5a7f60d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/cloud-api-adaptor/pkg/adaptor/server.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,6 @@ func (s *server) Shutdown() error {
160160
close(s.stopCh)
161161
})
162162

163-
_ = k8sops.RemoveExtendedResources()
164-
165163
return s.cloudService.Teardown()
166164
}
167165

0 commit comments

Comments
 (0)