Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct { ArchiveArgs string // k6-operator doesn't care for most values of CLI arguments to k6, with an exception of cloud output HasCloudOut bool }
CLI is an innternal type to support k6 invocation in initialization stage. Not all k6 commands allow the same set of arguments so CLI is an object meant to contain only the ones fit for the archive call. Maybe revise this once crococonf is closer to integration?
type Script ¶
type Script struct { Name string // name of ConfigMap or VolumeClaim or "LocalFile" Filename string Path string Type string // ConfigMap | VolumeClaim | LocalFile }
Internal type created to support Spec.script options
func ParseScript ¶
ParseScript extracts Script data bits from K6 spec and performs basic validation
func (*Script) UpdateCommand ¶
UpdateCommand modifies command to check for script existence in case of LocalFile; otherwise, command remains unmodified
func (*Script) VolumeMount ¶
func (s *Script) VolumeMount() []corev1.VolumeMount
VolumeMount creates a VolumeMount spec for the script
Click to show internal directories.
Click to hide internal directories.