Documentation
¶
Overview ¶
Package v1beta1 contains API Schema definitions for the jsn v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/bgpat/job-slack-notifier/pkg/apis/jsn +k8s:defaulter-gen=TypeMeta +groupName=jsn.k8s.bgpat.net
Package v1beta1 contains API Schema definitions for the jsn v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/bgpat/job-slack-notifier/pkg/apis/jsn +k8s:defaulter-gen=TypeMeta +groupName=jsn.k8s.bgpat.net
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "jsn.k8s.bgpat.net", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme is required by pkg/client/... AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/client/listers/...
Types ¶
type JobNotifier ¶
type JobNotifier struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec JobNotifierSpec `json:"spec,omitempty"` Status JobNotifierStatus `json:"status,omitempty"` }
JobNotifier is the Schema for the jobnotifiers API +k8s:openapi-gen=true +kubebuilder:resource:shortName=jn
func (*JobNotifier) DeepCopy ¶
func (in *JobNotifier) DeepCopy() *JobNotifier
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobNotifier.
func (*JobNotifier) DeepCopyInto ¶
func (in *JobNotifier) DeepCopyInto(out *JobNotifier)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*JobNotifier) DeepCopyObject ¶
func (in *JobNotifier) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type JobNotifierList ¶
type JobNotifierList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []JobNotifier `json:"items"` }
JobNotifierList contains a list of JobNotifier
func (*JobNotifierList) DeepCopy ¶
func (in *JobNotifierList) DeepCopy() *JobNotifierList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobNotifierList.
func (*JobNotifierList) DeepCopyInto ¶
func (in *JobNotifierList) DeepCopyInto(out *JobNotifierList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*JobNotifierList) DeepCopyObject ¶
func (in *JobNotifierList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type JobNotifierSpec ¶
type JobNotifierSpec struct { // A label query to watch job status changes. Selector *metav1.LabelSelector `json:"selector,omitempty"` // Specifies the channel list to send the notification. Channels []string `json:"channels,omitempty"` // Specifies the mentioned user for the notification. MentionTo []string `json:"mention_to,omitempty"` // Specifies the minimum failed count threshold. // If it is less then job failed count, skip to notify. MinFails int32 `json:"min_fails,omitempty"` }
JobNotifierSpec defines the desired state of JobNotifier
func (*JobNotifierSpec) DeepCopy ¶
func (in *JobNotifierSpec) DeepCopy() *JobNotifierSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobNotifierSpec.
func (*JobNotifierSpec) DeepCopyInto ¶
func (in *JobNotifierSpec) DeepCopyInto(out *JobNotifierSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JobNotifierStatus ¶
type JobNotifierStatus struct { }
JobNotifierStatus defines the observed state of JobNotifier
func (*JobNotifierStatus) DeepCopy ¶
func (in *JobNotifierStatus) DeepCopy() *JobNotifierStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobNotifierStatus.
func (*JobNotifierStatus) DeepCopyInto ¶
func (in *JobNotifierStatus) DeepCopyInto(out *JobNotifierStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.