Documentation ¶
Index ¶
Constants ¶
View Source
const LabelSelector = "app.kubernetes.io/managed-by=churn"
Variables ¶
View Source
var DefaultDeleteCandidates = []schema.GroupVersionResource{
{Group: "projectcontour.io", Version: "v1", Resource: "httpproxies"},
{Group: "extensions", Version: "v1beta1", Resource: "ingresses"},
{Group: "", Version: "v1", Resource: "services"},
{Group: "", Version: "v1", Resource: "pods"},
}
DefaultDeleteResources is the default list of resources to consider as deletion candidates.
Functions ¶
Types ¶
type Policy ¶
type Policy struct { // Resources is the resource types to operate on. Resources []schema.GroupVersionResource // Interval is the time to wait between operations. Interval time.Duration // Limit is the max number of operations per interval. Limit int }
Policy configures a Task.
type PolicySpec ¶
func ParsePolicySpec ¶
func ParsePolicySpec(specString string) (PolicySpec, error)
ParsePolicySpec parses a policy specification string. A policy specification string is of the form:
OPERATION[:RESOURCE|PARAM=VALUE[,RESOURCE|PARAM=VALUE]...]
Click to show internal directories.
Click to hide internal directories.