sandwich-contexts-kubernetes
Safe HaskellNone
LanguageHaskell2010

Test.Sandwich.Contexts.Kubernetes.Namespace

Description

Helper module for working with Kubernetes namespaces.

Synopsis

Documentation

withKubernetesNamespace Source #

Arguments

:: forall context (m :: Type -> Type). KubectlBasicWithoutReader context m 
=> Text

Namespace to create

-> SpecFree context m () 
-> SpecFree context m () 

Around-style node to create a Kubernetes namespace, and destroy it at the end.

If you're installing something via Helm 3, you may not need this as you can just pass --create-namespace.

withKubernetesNamespace' Source #

Arguments

:: KubectlBasic context m 
=> Text

Namespace to create

-> m a 
-> m a 

Same as withKubernetesNamespace, but works in an arbitrary monad with reader context.

withKubernetesNamespace'' Source #

Arguments

:: KubernetesClusterBasic context m 
=> FilePath

Path to kubectl binary

-> Text

Namespace to create

-> m a 
-> m a 

Same as withKubernetesNamespace', but allows you to pass in the path to the kubectl binary.

withKubernetesNamespace''' Source #

Arguments

:: KubernetesClusterBasic context m 
=> KubernetesClusterContext

Cluster context

-> FilePath

Path to kubectl binary

-> Text

Namespace to create

-> m a 
-> m a 

Same as withKubernetesNamespace'', but allows you to pass in the cluster context.

Create a namespace

createKubernetesNamespace Source #

Arguments

:: KubectlBasic context m 
=> Text

Namespace name

-> m () 

Create a Kubernetes namespace.

createKubernetesNamespace' Source #

Arguments

:: KubernetesClusterBasic context m 
=> FilePath

Path to kubectl binary

-> Text

Namespace name

-> m () 

Create a Kubernetes namespace.

createKubernetesNamespace'' Source #

Arguments

:: KubernetesClusterBasic context m 
=> KubernetesClusterContext

Cluster context

-> FilePath

Path to kubectl binary

-> Text

Namespace name

-> m () 

Create a Kubernetes namespace.

Destroy a namespace

destroyKubernetesNamespace Source #

Arguments

:: KubectlBasic context m 
=> Bool

Whether to pass --force

-> Text

Namespace name

-> m () 

Destroy a Kubernetes namespace.

destroyKubernetesNamespace' Source #

Arguments

:: KubernetesClusterBasic context m 
=> FilePath

Path to kubectl binary

-> Bool

Whether to pass --force

-> Text

Namespace name

-> m () 

Destroy a Kubernetes namespace.

destroyKubernetesNamespace'' Source #

Arguments

:: KubernetesClusterBasic context m 
=> KubernetesClusterContext

Cluster context

-> FilePath

Path to kubectl binary

-> Bool

Whether to pass --force

-> Text

Namespace name

-> m () 

Destroy a Kubernetes namespace.