Documentation
¶
Overview ¶
Package namespace tells whether the namespace of a new preview is free for badil to deploy into: absent, or already a preview namespace of that slug. A preview's slug is its namespace, and Argo CD adopts a namespace that already exists, so badil refuses a new preview whose namespace exists and was not made for it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InCluster ¶
func InCluster(ctx context.Context) lifecycle.NamespaceChecker
InCluster returns a Checker reading namespaces through the in-cluster configuration. Outside a cluster, it returns a Checker for which no namespace is foreign, and logs why, once. Inside a cluster, when the client cannot be built, such as without a readable ServiceAccount token, it returns a Checker for which every check fails with that error.
func New ¶
func New(kube kubernetes.Interface) lifecycle.NamespaceChecker
New returns a lifecycle.NamespaceChecker reading namespaces through kube.
Types ¶
This section is empty.