podresolver

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodInfo

type PodInfo struct {
	Name      string
	Namespace string
	UID       string
	Node      string
}

func Resolve

func Resolve(corefilePath string, enableLookup bool) PodInfo

Resolve extracts pod info from corefile path injected by webhook Webhook injects volumes with hostPath: /data/coredog-system/dumps/<namespace>/<podname>/ Mounted to container at: /corefile (or custom path) Core dump file: /corefile/core.xxx (container view) Watcher sees: /corefile/core.xxx (because watcher mounts the parent hostPath)

Wait, watcher needs to see the full path structure to parse namespace/podname! So watcher should mount: /data/coredog-system/dumps -> /corefile Then it will see: /corefile/<namespace>/<podname>/core.xxx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL