package
0.15.0
Repository: https://github.com/opendevstack/ods-pipeline.git
Documentation: pkg.go.dev

# Functions

AfterRun registers a function which is run after the task run completes.
ExpectFailure sets up an expectation that the task will fail.
InNamespace configures the task run to execute in given namespace.
InstallTaskFromPath renders the task template at path using the given data, then installs the resulting task into the namespace identified by NamespaceConfig.
InTempNamespace configures the task run to execute in a newly created, temporary namespace.
LoadImage builds a container image using the docker CLI based on the given ImageBuildConfig.
NewClusterConfig creates a new ClusterConfig instance.
RunTask executes a task run after applying all given TaskRunOpt.
SetupTempNamespace sets up a new namespace using a pseduo-random name, applies any given NamespaceOpt and returns a function to clean up the namespace at a later time.
SetupWorkspaceDir copies sourceDir to the KinD mount host path, which is set to /tmp/ods-pipeline/kind-mount.
StartKinDCluster starts a KinD cluster with Tekton installed.
No description provided by the author
UsingTask configures the task run to execute the Task identified by name in the configured namespace.
WithParams configures the task run to use the specified Tekton parameters.
WithServiceAccountName configures the task run to execute under the specified serviceaccount name.
WithStringParams configures the task run to use the specified string parameters.
WithTimeout configures the task run to execute within the given duration.
WithWorkspace sets up a workspace with given name and contents of sourceDir.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ClusterConfig represents key configuration of the KinD cluster.
ImageBuildConfig represents the config used to build a container image.
NamespaceConfig represents key configuration of the K8s namespace.
TaskRunConfig represents key configuration of the Tekton task run.
WorkspaceConfig describes a Tekton workspace.

# Type aliases

ClusterOpt allows to further configure the KinD cluster after its creation.
NamespaceOpt allows to further configure the K8s namespace after its creation.
TaskRunOpt allows to configure the Tekton task run before it is started.
WorkspaceOpt allows to further configure a Tekton workspace after its creation.