pfpstatus

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

README

PFPStatus

PFPStatus offer facilities to store and expose podfingerprint status info.

The status info is exposed read-only; external actors cannot alter the PFP status. The PFP status exposes the namespace/name pairs of the pods whose container have exclusive resources assigned and which are detected by the system. While the information discolosure is minimal, this may be undesirable, so caution is advised.

Exposing status info

The status info can be exposed by

  • dumping the content as JSON files, one per node, in the filesystem. We recommend to use a fixed size tmpfs to avoid unbounded storage consumption. The writer dumps the status content atomically and intentionally ignores write errors because assumes fixed size storage.

Documentation

Index

Constants

View Source
const (
	DefaultDumpDirectory string = "/run/pfpstatus"
)
View Source
const (
	PFPStatusDumpEnvVar string = "PFP_STATUS_DUMP"
)

Variables

This section is empty.

Functions

func ParamsFromEnv added in v0.2.4

func ParamsFromEnv(lh logr.Logger, params *Params)

func Setup added in v0.2.4

func Setup(logh logr.Logger, params Params)

Types

type Params added in v0.2.4

type Params struct {
	Storage StorageParams
}

func DefaultParams added in v0.2.4

func DefaultParams() Params

type StorageParams added in v0.2.4

type StorageParams struct {
	Enabled   bool
	Directory string
	Period    time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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