Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetIfNewer ¶ added in v0.0.10
func SetIfNewer(cond *[]metav1.Condition, proposedCond []metav1.Condition, callbackF func(metav1.Condition) bool) (isNewer bool)
SetIfNewer changes cond only if changes in proposedCond are consistent with the expected change of conditions both logically and chronologically. callbackF can be provided to run a custom function during the loop over proposedCond. If there were any acceptable changes proposed, it returns true.
func UpdateCondition ¶ added in v0.0.10
func UpdateCondition(conditions *[]metav1.Condition, conditionType string, conditionStatus metav1.ConditionStatus)
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 internal 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" ReadOnly bool // VolumeClaim only Filename string Path string Type string // ConfigMap | VolumeClaim | LocalFile }
Internal type created to support Spec.script options
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
type StatusAPIRequest ¶ added in v0.0.10
type StatusAPIRequest struct {
Data StatusAPIRequestData `json:"data"`
}
type StatusAPIRequestData ¶ added in v0.0.10
type StatusAPIRequestData struct { Attributes StatusAPIRequestDataAttributes `json:"attributes"` ID string `json:"id"` Type string `json:"type"` }