...

Source file src/edge-infra.dev/pkg/k8s/meta/types.go

Documentation: edge-infra.dev/pkg/k8s/meta

     1  package meta
     2  
     3  // IsWorkload determines if a provided Kind corresponds to a K8s resource that
     4  // represents a workload (i.e., runs a container).
     5  func IsWorkload(kind string) bool {
     6  	return kind == "StatefulSet" || kind == "DaemonSet" || kind == "Deployment" ||
     7  		kind == "Job" || kind == "CronJob" || kind == "ReplicaSet"
     8  }
     9  

View as plain text