Skip to content

KubernetesWorkloadDetails

Structure Class

KubernetesWorkloadDetails dataclass

Bases: _SerdeShape

Details about the Kubernetes workload involved in a Kubernetes finding.

Attributes

containers class-attribute instance-attribute
containers: list[Container] | None = ...

Containers running as part of the Kubernetes workload.

host_ipc class-attribute instance-attribute
host_ipc: bool | None = ...

Whether the host IPC flag is enabled for the pods in the workload.

host_network class-attribute instance-attribute
host_network: bool | None = ...

Whether the hostNetwork flag is enabled for the pods included in the workload.

host_pid class-attribute instance-attribute
host_pid: bool | None = ...

Whether the host PID flag is enabled for the pods in the workload.

name class-attribute instance-attribute
name: str | None = ...

Kubernetes workload name.

namespace class-attribute instance-attribute
namespace: str | None = ...

Kubernetes namespace that the workload is part of.

service_account_name class-attribute instance-attribute
service_account_name: str | None = ...

The service account name that is associated with a Kubernetes workload.

type class-attribute instance-attribute
type: str | None = ...

Kubernetes workload type (e.g. Pod, Deployment, etc.).

uid class-attribute instance-attribute
uid: str | None = ...

Kubernetes workload ID.

volumes class-attribute instance-attribute
volumes: list[Volume] | None = ...

Volumes used by the Kubernetes workload.