Safe Haskell | None |
---|---|
Language | Haskell2010 |
Test.Sandwich.Contexts.Kubernetes.Namespace
Description
Helper module for working with Kubernetes namespaces.
Synopsis
- withKubernetesNamespace :: forall context (m :: Type -> Type). KubectlBasicWithoutReader context m => Text -> SpecFree context m () -> SpecFree context m ()
- withKubernetesNamespace' :: KubectlBasic context m => Text -> m a -> m a
- withKubernetesNamespace'' :: KubernetesClusterBasic context m => FilePath -> Text -> m a -> m a
- withKubernetesNamespace''' :: KubernetesClusterBasic context m => KubernetesClusterContext -> FilePath -> Text -> m a -> m a
- createKubernetesNamespace :: KubectlBasic context m => Text -> m ()
- createKubernetesNamespace' :: KubernetesClusterBasic context m => FilePath -> Text -> m ()
- createKubernetesNamespace'' :: KubernetesClusterBasic context m => KubernetesClusterContext -> FilePath -> Text -> m ()
- destroyKubernetesNamespace :: KubectlBasic context m => Bool -> Text -> m ()
- destroyKubernetesNamespace' :: KubernetesClusterBasic context m => FilePath -> Bool -> Text -> m ()
- destroyKubernetesNamespace'' :: KubernetesClusterBasic context m => KubernetesClusterContext -> FilePath -> Bool -> Text -> m ()
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 |
-> 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 |
-> 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 |
-> Text | Namespace name |
-> m () |
Create a Kubernetes namespace.
createKubernetesNamespace'' Source #
Arguments
:: KubernetesClusterBasic context m | |
=> KubernetesClusterContext | Cluster context |
-> FilePath | Path to |
-> Text | Namespace name |
-> m () |
Create a Kubernetes namespace.
Destroy a namespace
destroyKubernetesNamespace Source #
Arguments
:: KubectlBasic context m | |
=> Bool | Whether to pass |
-> Text | Namespace name |
-> m () |
Destroy a Kubernetes namespace.
destroyKubernetesNamespace' Source #
Arguments
:: KubernetesClusterBasic context m | |
=> FilePath | Path to |
-> Bool | Whether to pass |
-> Text | Namespace name |
-> m () |
Destroy a Kubernetes namespace.
destroyKubernetesNamespace'' Source #
Arguments
:: KubernetesClusterBasic context m | |
=> KubernetesClusterContext | Cluster context |
-> FilePath | Path to |
-> Bool | Whether to pass |
-> Text | Namespace name |
-> m () |
Destroy a Kubernetes namespace.