Script
tests.testkube.io / v1
apiVersion: tests.testkube.io/v1
kind: Script
metadata:
name: example
apiVersion
string
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
kind
string
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
metadata
object
spec object
ScriptSpec defines the desired state of Script
content
string
script content as string (content depends from executor)
input-type
string
script content type can be: - direct content - created from file, - git repo directory checkout in case when test is some kind of project or have more than one file,
name
string
script execution custom name
params
object
execution params passed to executor
repository object
repository details if exists
branch
string required
branch/tag name for checkout
path
string
if needed we can checkout particular path (dir or file) in case of BIG/mono repositories
token
string
git auth token for private repositories
type
string required
Type_ repository type
uri
string required
Uri of content file or git directory
username
string
git auth username for private repositories
tags
[]string
type
string
script type
status object
ScriptStatus defines the observed state of Script
executions_count
integer
last_execution
string
format:
date-timeNo matches. Try .spec.content for an exact path