...

Package namespace

import "github.com/chaos-mesh/chaos-mesh/pkg/selector/generic/namespace"
Overview
Index

Overview ▾

Constants

const Name = "namespace"

func CheckNamespace

func CheckNamespace(ctx context.Context, c client.Client, namespace string, logger logr.Logger) bool

func IsAllowedNamespaces

func IsAllowedNamespaces(ctx context.Context, c client.Client, namespace string) (bool, error)

func New

func New(spec v1alpha1.GenericSelectorSpec, option generic.Option) (generic.Selector, error)