We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39a2b94 commit 835ee09Copy full SHA for 835ee09
packages/orchestrator/internal/sharedstate/tracker.go
@@ -36,7 +36,14 @@ func New(selfWriteInterval time.Duration) (*Manager, error) {
36
}
37
38
func (t *Manager) OnInsert(sandbox *sandbox.Sandbox) {
39
- t.selfSandboxResources.Insert(sandbox.Metadata.Runtime.SandboxID, sandbox.Config)
+ metadata := sandbox.Metadata
40
+ if metadata == nil {
41
+ zap.L().Warn("Ignoring sandbox without metadata")
42
+
43
+ return
44
+ }
45
46
+ t.selfSandboxResources.Insert(metadata.Runtime.SandboxID, metadata.Config)
47
48
49
func (t *Manager) OnRemove(sandboxID string) {
0 commit comments