Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the activemonitor v1alpha1 API group +kubebuilder:object:generate=true +groupName=activemonitor.keikoproj.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "activemonitor.keikoproj.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type ArtifactLocation ¶
type ArtifactLocation struct { Inline *string `json:"inline,omitempty"` File *FileArtifact `json:"file,omitempty"` URL *URLArtifact `json:"url,omitempty"` }
ArtifactLocation describes the source location for an external artifact
func (*ArtifactLocation) DeepCopy ¶
func (in *ArtifactLocation) DeepCopy() *ArtifactLocation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactLocation.
func (*ArtifactLocation) DeepCopyInto ¶
func (in *ArtifactLocation) DeepCopyInto(out *ArtifactLocation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FileArtifact ¶
type FileArtifact struct {
Path string `json:"path,omitempty"`
}
FileArtifact contains information about an artifact in a filesystem
func (*FileArtifact) DeepCopy ¶
func (in *FileArtifact) DeepCopy() *FileArtifact
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileArtifact.
func (*FileArtifact) DeepCopyInto ¶
func (in *FileArtifact) DeepCopyInto(out *FileArtifact)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HealthCheck ¶
type HealthCheck struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec HealthCheckSpec `json:"spec,omitempty"` Status HealthCheckStatus `json:"status,omitempty"` }
HealthCheck is the Schema for the healthchecks API
func (*HealthCheck) DeepCopy ¶
func (in *HealthCheck) DeepCopy() *HealthCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthCheck.
func (*HealthCheck) DeepCopyInto ¶
func (in *HealthCheck) DeepCopyInto(out *HealthCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HealthCheck) DeepCopyObject ¶
func (in *HealthCheck) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HealthCheckList ¶
type HealthCheckList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []HealthCheck `json:"items"` }
HealthCheckList contains a list of HealthCheck
func (*HealthCheckList) DeepCopy ¶
func (in *HealthCheckList) DeepCopy() *HealthCheckList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthCheckList.
func (*HealthCheckList) DeepCopyInto ¶
func (in *HealthCheckList) DeepCopyInto(out *HealthCheckList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HealthCheckList) DeepCopyObject ¶
func (in *HealthCheckList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HealthCheckSpec ¶
type HealthCheckSpec struct { RepeatAfterSec int `json:"repeatAfterSec,omitempty"` Description string `json:"description,omitempty"` Workflow Workflow `json:"workflow"` Level string `json:"level,omitempty"` // defines if a workflow runs in a Namespace or Cluster level Schedule ScheduleSpec `json:"schedule,omitempty"` // Schedule defines schedule rules to run HealthCheck RemedyWorkflow RemedyWorkflow `json:"remedyworkflow,omitempty"` RemedyRunsLimit int `json:"remedyRunsLimit,omitempty"` RemedyResetInterval int `json:"remedyResetInterval,omitempty"` }
HealthCheckSpec defines the desired state of HealthCheck Either RepeatAfterSec or Schedule must be defined for the health check to run
func (*HealthCheckSpec) DeepCopy ¶
func (in *HealthCheckSpec) DeepCopy() *HealthCheckSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthCheckSpec.
func (*HealthCheckSpec) DeepCopyInto ¶
func (in *HealthCheckSpec) DeepCopyInto(out *HealthCheckSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HealthCheckStatus ¶
type HealthCheckStatus struct { ErrorMessage string `json:"errorMessage,omitempty"` RemedyErrorMessage string `json:"remedyErrorMessage,omitempty"` StartedAt *metav1.Time `json:"startedAt,omitempty"` FinishedAt *metav1.Time `json:"finishedAt,omitempty"` LastFailedAt *metav1.Time `json:"lastFailedAt,omitempty"` RemedyStartedAt *metav1.Time `json:"remedyTriggeredAt,omitempty"` RemedyFinishedAt *metav1.Time `json:"remedyFinishedAt,omitempty"` RemedyLastFailedAt *metav1.Time `json:"remedyLastFailedAt,omitempty"` LastFailedWorkflow string `json:"lastFailedWorkflow,omitempty"` LastSuccessfulWorkflow string `json:"lastSuccessfulWorkflow,omitempty"` SuccessCount int `json:"successCount,omitempty"` FailedCount int `json:"failedCount,omitempty"` RemedySuccessCount int `json:"remedySuccessCount,omitempty"` RemedyFailedCount int `json:"remedyFailedCount,omitempty"` RemedyTotalRuns int `json:"remedyTotalRuns,omitempty"` TotalHealthCheckRuns int `json:"totalHealthCheckRuns,omitempty"` Status string `json:"status,omitempty"` RemedyStatus string `json:"remedyStatus,omitempty"` }
HealthCheckStatus defines the observed state of HealthCheck
func (*HealthCheckStatus) DeepCopy ¶
func (in *HealthCheckStatus) DeepCopy() *HealthCheckStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthCheckStatus.
func (*HealthCheckStatus) DeepCopyInto ¶
func (in *HealthCheckStatus) DeepCopyInto(out *HealthCheckStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RemedyWorkflow ¶ added in v0.4.0
type RemedyWorkflow struct { GenerateName string `json:"generateName,omitempty"` Resource *ResourceObject `json:"resource,omitempty"` Timeout int `json:"workflowtimeout,omitempty"` }
Workflow struct describes a Remedy workflow
func (*RemedyWorkflow) DeepCopy ¶ added in v0.4.0
func (in *RemedyWorkflow) DeepCopy() *RemedyWorkflow
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemedyWorkflow.
func (*RemedyWorkflow) DeepCopyInto ¶ added in v0.4.0
func (in *RemedyWorkflow) DeepCopyInto(out *RemedyWorkflow)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (RemedyWorkflow) IsEmpty ¶ added in v0.4.0
func (w RemedyWorkflow) IsEmpty() bool
type ResourceObject ¶
type ResourceObject struct { // Namespace in which to create this object // defaults to the service account namespace Namespace string `json:"namespace"` ServiceAccount string `json:"serviceAccount,omitempty"` // Source of the K8 resource file(s) Source ArtifactLocation `json:"source"` }
ResourceObject is the resource object to create on kubernetes
func (*ResourceObject) DeepCopy ¶
func (in *ResourceObject) DeepCopy() *ResourceObject
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceObject.
func (*ResourceObject) DeepCopyInto ¶
func (in *ResourceObject) DeepCopyInto(out *ResourceObject)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScheduleSpec ¶ added in v0.3.0
type ScheduleSpec struct { // cron expressions can be found here: https://godoc.org/github.com/robfig/cron Cron string `json:"cron,omitempty"` }
ScheduleSpec contains the cron expression
func (*ScheduleSpec) DeepCopy ¶ added in v0.3.0
func (in *ScheduleSpec) DeepCopy() *ScheduleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduleSpec.
func (*ScheduleSpec) DeepCopyInto ¶ added in v0.3.0
func (in *ScheduleSpec) DeepCopyInto(out *ScheduleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type URLArtifact ¶
type URLArtifact struct { Path string `json:"path,omitempty"` VerifyCert bool `json:"verifyCert,omitempty"` }
URLArtifact contains information about an artifact at an http endpoint.
func (*URLArtifact) DeepCopy ¶
func (in *URLArtifact) DeepCopy() *URLArtifact
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new URLArtifact.
func (*URLArtifact) DeepCopyInto ¶
func (in *URLArtifact) DeepCopyInto(out *URLArtifact)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Workflow ¶
type Workflow struct { GenerateName string `json:"generateName,omitempty"` Resource *ResourceObject `json:"resource,omitempty"` Timeout int `json:"workflowtimeout,omitempty"` }
Workflow struct describes an Argo workflow
func (*Workflow) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workflow.
func (*Workflow) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.