workload

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStatus added in v0.6.0

func GetStatus(ctx context.Context, statusCh chan<- *provisionpb.Status, dataCh chan string, client *kubeutil.Client, podName string, namespace string)

Types

type Workload

type Workload struct {
	Name             string
	Namespace        string
	SPIFFEID         string
	Status           string
	Type             string
	NumSecrets       int
	NumSecretsAtRisk int
}

func GetRegisteredWorkloads

func GetRegisteredWorkloads(ctx context.Context, kubeConfig string, kubeContext string) ([]Workload, error)

GetRegisteredWorkloads will find all workloads that are registered

func GetUnregisteredWorkloads

func GetUnregisteredWorkloads(ctx context.Context, kubeCfgFile string, kubeContext string, secretDiscovery bool, checkSpire bool) ([]Workload, error)

GetUnregisteredWorkloads will discover workloads in a Kubernetes cluster that are not (yet) registered

type WorkloadSecretMetadata

type WorkloadSecretMetadata struct {
	AtRisk bool
	Age    time.Duration
}

Jump to

Keyboard shortcuts

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