Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the ocmagent v1alpha1 API group +kubebuilder:object:generate=true +groupName=ocmagent.managed.openshift.io
Index ¶
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- type AgentConfig
- type Conditions
- type FleetNotification
- type ManagedFleetNotification
- func (in *ManagedFleetNotification) DeepCopy() *ManagedFleetNotification
- func (in *ManagedFleetNotification) DeepCopyInto(out *ManagedFleetNotification)
- func (in *ManagedFleetNotification) DeepCopyObject() runtime.Object
- func (fn *ManagedFleetNotification) GetNotificationByName(name string) (*ManagedFleetNotification, error)
- type ManagedFleetNotificationList
- type ManagedFleetNotificationRecord
- func (fnr *ManagedFleetNotificationRecord) AddNotificationRecordItem(clusterID string, rn *NotificationRecordByName) (*NotificationRecordItem, error)
- func (in *ManagedFleetNotificationRecord) DeepCopy() *ManagedFleetNotificationRecord
- func (in *ManagedFleetNotificationRecord) DeepCopyInto(out *ManagedFleetNotificationRecord)
- func (in *ManagedFleetNotificationRecord) DeepCopyObject() runtime.Object
- func (fnr *ManagedFleetNotificationRecord) FiringCanBeSent(mc, name, clusterID string) (bool, error)
- func (fnr *ManagedFleetNotificationRecord) GetNotificationRecordByMC(mc string) (*ManagedFleetNotificationRecord, error)
- func (fnr *ManagedFleetNotificationRecord) GetNotificationRecordByName(mc, name string) (*NotificationRecordByName, error)
- func (fnr *ManagedFleetNotificationRecord) GetNotificationRecordItem(mc, name, clusterID string) (*NotificationRecordItem, error)
- func (fnr *ManagedFleetNotificationRecord) HasNotificationRecordItem(mc, name, clusterID string) bool
- func (fnr *ManagedFleetNotificationRecord) RemoveNotificationRecordItem(notificationName string, hostedClusterID string) (*NotificationRecordByName, error)
- func (fnr *ManagedFleetNotificationRecord) UpdateNotificationRecordItem(notificationName string, hostedClusterID string, statusFiring bool) (*NotificationRecordItem, error)
- type ManagedFleetNotificationRecordList
- type ManagedFleetNotificationRecordStatus
- type ManagedFleetNotificationSpec
- type ManagedNotification
- func (m *ManagedNotification) CanBeSent(n string, firing bool) (bool, error)
- func (in *ManagedNotification) DeepCopy() *ManagedNotification
- func (in *ManagedNotification) DeepCopyInto(out *ManagedNotification)
- func (in *ManagedNotification) DeepCopyObject() runtime.Object
- func (m *ManagedNotification) GetNotificationForName(n string) (*Notification, error)
- type ManagedNotificationList
- type ManagedNotificationSpec
- type ManagedNotificationStatus
- func (in *ManagedNotificationStatus) DeepCopy() *ManagedNotificationStatus
- func (in *ManagedNotificationStatus) DeepCopyInto(out *ManagedNotificationStatus)
- func (m *ManagedNotificationStatus) GetNotificationRecord(n string) (*NotificationRecord, error)
- func (m *ManagedNotificationStatus) HasNotificationRecord(n string) bool
- type Notification
- type NotificationCondition
- type NotificationConditionType
- type NotificationRecord
- type NotificationRecordByName
- type NotificationRecordItem
- type NotificationRecords
- type NotificationReferenceType
- type NotificationSeverity
- type OcmAgent
- type OcmAgentList
- type OcmAgentSpec
- type OcmAgentStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "ocmagent.managed.openshift.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 ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
Types ¶
type AgentConfig ¶
type AgentConfig struct { // OcmBaseUrl defines the OCM api endpoint for OCM agent to access OcmBaseUrl string `json:"ocmBaseUrl"` // Services defines the supported OCM services, eg, service_log, cluster_management Services []string `json:"services"` }
func (*AgentConfig) DeepCopy ¶
func (in *AgentConfig) DeepCopy() *AgentConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentConfig.
func (*AgentConfig) DeepCopyInto ¶
func (in *AgentConfig) DeepCopyInto(out *AgentConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Conditions ¶
type Conditions []NotificationCondition
func (Conditions) DeepCopy ¶
func (in Conditions) DeepCopy() Conditions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Conditions.
func (Conditions) DeepCopyInto ¶
func (in Conditions) DeepCopyInto(out *Conditions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Conditions) GetCondition ¶
func (conditions Conditions) GetCondition(t NotificationConditionType) *NotificationCondition
GetCondition searches the set of conditions for the condition with the given ConditionType and returns it. If the matching condition is not found, GetCondition returns nil.
func (*Conditions) SetCondition ¶
func (c *Conditions) SetCondition(new NotificationCondition)
SetCondition adds or updates a condition in a notification record
type FleetNotification ¶
type FleetNotification struct { // The name of the notification used to associate with an alert Name string `json:"name"` // The summary line of the notification Summary string `json:"summary"` // The body text of the notification when the alert is active NotificationMessage string `json:"notificationMessage"` // LogType is a categorization property that can be used to group service logs for aggregation and managing notification preferences. LogType string `json:"logType,omitempty"` // References useful for context or remediation - this could be links to documentation, KB articles, etc References []NotificationReferenceType `json:"references,omitempty"` // +kubebuilder:validation:Enum={"Debug","Info","Warning","Error","Fatal"} // Re-use the severity definitation in managednotification_types Severity NotificationSeverity `json:"severity"` // Measured in hours. The minimum time interval that must elapse between active notifications ResendWait int32 `json:"resendWait"` // Whether or not limited support should be sent for this notification LimitedSupport bool `json:"limitedSupport,omitempty"` }
FleetNotification defines the desired spec of ManagedFleetNotification
func (*FleetNotification) DeepCopy ¶
func (in *FleetNotification) DeepCopy() *FleetNotification
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FleetNotification.
func (*FleetNotification) DeepCopyInto ¶
func (in *FleetNotification) DeepCopyInto(out *FleetNotification)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagedFleetNotification ¶
type ManagedFleetNotification struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ManagedFleetNotificationSpec `json:"spec,omitempty"` }
ManagedFleetNotification is the Schema for the managedfleetnotifications API
func (*ManagedFleetNotification) DeepCopy ¶
func (in *ManagedFleetNotification) DeepCopy() *ManagedFleetNotification
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedFleetNotification.
func (*ManagedFleetNotification) DeepCopyInto ¶
func (in *ManagedFleetNotification) DeepCopyInto(out *ManagedFleetNotification)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagedFleetNotification) DeepCopyObject ¶
func (in *ManagedFleetNotification) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ManagedFleetNotification) GetNotificationByName ¶
func (fn *ManagedFleetNotification) GetNotificationByName(name string) (*ManagedFleetNotification, error)
GetNotificationByName returns a notification matching the given name or error if no matching notification can be found.
type ManagedFleetNotificationList ¶
type ManagedFleetNotificationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ManagedFleetNotification `json:"items"` }
ManagedFleetNotificationList contains a list of ManagedFleetNotification
func (*ManagedFleetNotificationList) DeepCopy ¶
func (in *ManagedFleetNotificationList) DeepCopy() *ManagedFleetNotificationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedFleetNotificationList.
func (*ManagedFleetNotificationList) DeepCopyInto ¶
func (in *ManagedFleetNotificationList) DeepCopyInto(out *ManagedFleetNotificationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagedFleetNotificationList) DeepCopyObject ¶
func (in *ManagedFleetNotificationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManagedFleetNotificationRecord ¶
type ManagedFleetNotificationRecord struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Status ManagedFleetNotificationRecordStatus `json:"status,omitempty"` }
ManagedFleetNotificationRecord is the Schema for the managedfleetnotificationrecords API
func (*ManagedFleetNotificationRecord) AddNotificationRecordItem ¶
func (fnr *ManagedFleetNotificationRecord) AddNotificationRecordItem(clusterID string, rn *NotificationRecordByName) (*NotificationRecordItem, error)
AddNotificationRecordItem adds a new record item to the notification record slice
func (*ManagedFleetNotificationRecord) DeepCopy ¶
func (in *ManagedFleetNotificationRecord) DeepCopy() *ManagedFleetNotificationRecord
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedFleetNotificationRecord.
func (*ManagedFleetNotificationRecord) DeepCopyInto ¶
func (in *ManagedFleetNotificationRecord) DeepCopyInto(out *ManagedFleetNotificationRecord)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagedFleetNotificationRecord) DeepCopyObject ¶
func (in *ManagedFleetNotificationRecord) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ManagedFleetNotificationRecord) FiringCanBeSent ¶
func (fnr *ManagedFleetNotificationRecord) FiringCanBeSent(mc, name, clusterID string) (bool, error)
FiringCanBeSent checks if the notification can be sent for a firing alert for the given hosted cluster
func (*ManagedFleetNotificationRecord) GetNotificationRecordByMC ¶
func (fnr *ManagedFleetNotificationRecord) GetNotificationRecordByMC(mc string) (*ManagedFleetNotificationRecord, error)
GetNotificationRecordByMC gets the notification with the given name
func (*ManagedFleetNotificationRecord) GetNotificationRecordByName ¶
func (fnr *ManagedFleetNotificationRecord) GetNotificationRecordByName(mc, name string) (*NotificationRecordByName, error)
func (*ManagedFleetNotificationRecord) GetNotificationRecordItem ¶
func (fnr *ManagedFleetNotificationRecord) GetNotificationRecordItem(mc, name, clusterID string) (*NotificationRecordItem, error)
GetNotificationRecordItem gets the record item for the specified hosted cluster
func (*ManagedFleetNotificationRecord) HasNotificationRecordItem ¶
func (fnr *ManagedFleetNotificationRecord) HasNotificationRecordItem(mc, name, clusterID string) bool
HasNotificationRecordItem Checks if the notification record with given management cluster and notification name exists for the specified hosted cluster
func (*ManagedFleetNotificationRecord) RemoveNotificationRecordItem ¶
func (fnr *ManagedFleetNotificationRecord) RemoveNotificationRecordItem(notificationName string, hostedClusterID string) (*NotificationRecordByName, error)
RemoveNotificationRecordItem removes the notification record item from the given notification name
func (*ManagedFleetNotificationRecord) UpdateNotificationRecordItem ¶
func (fnr *ManagedFleetNotificationRecord) UpdateNotificationRecordItem(notificationName string, hostedClusterID string, statusFiring bool) (*NotificationRecordItem, error)
UpdateNotificationRecordItem updates the notification sent count and timestamp for the last time sent
type ManagedFleetNotificationRecordList ¶
type ManagedFleetNotificationRecordList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ManagedFleetNotificationRecord `json:"items"` }
ManagedFleetNotificationRecordList contains a list of ManagedFleetNotificationRecord
func (*ManagedFleetNotificationRecordList) DeepCopy ¶
func (in *ManagedFleetNotificationRecordList) DeepCopy() *ManagedFleetNotificationRecordList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedFleetNotificationRecordList.
func (*ManagedFleetNotificationRecordList) DeepCopyInto ¶
func (in *ManagedFleetNotificationRecordList) DeepCopyInto(out *ManagedFleetNotificationRecordList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagedFleetNotificationRecordList) DeepCopyObject ¶
func (in *ManagedFleetNotificationRecordList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManagedFleetNotificationRecordStatus ¶
type ManagedFleetNotificationRecordStatus struct { // Managed Fleet Notification name ManagementCluster string `json:"managementCluster"` // An array structure to record the history for each hosted cluster NotificationRecordByName []NotificationRecordByName `json:"notificationRecordByName"` }
ManagedFleetNotificationRecordStatus defines the observed state of ManagedFleetNotificationRecord
func (*ManagedFleetNotificationRecordStatus) DeepCopy ¶
func (in *ManagedFleetNotificationRecordStatus) DeepCopy() *ManagedFleetNotificationRecordStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedFleetNotificationRecordStatus.
func (*ManagedFleetNotificationRecordStatus) DeepCopyInto ¶
func (in *ManagedFleetNotificationRecordStatus) DeepCopyInto(out *ManagedFleetNotificationRecordStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagedFleetNotificationSpec ¶
type ManagedFleetNotificationSpec struct {
FleetNotification FleetNotification `json:"fleetNotification"`
}
func (*ManagedFleetNotificationSpec) DeepCopy ¶
func (in *ManagedFleetNotificationSpec) DeepCopy() *ManagedFleetNotificationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedFleetNotificationSpec.
func (*ManagedFleetNotificationSpec) DeepCopyInto ¶
func (in *ManagedFleetNotificationSpec) DeepCopyInto(out *ManagedFleetNotificationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagedNotification ¶
type ManagedNotification struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ManagedNotificationSpec `json:"spec,omitempty"` Status ManagedNotificationStatus `json:"status,omitempty"` }
ManagedNotification is the Schema for the managednotifications API
func (*ManagedNotification) CanBeSent ¶
func (m *ManagedNotification) CanBeSent(n string, firing bool) (bool, error)
CanBeSent returns true if a service log from the notification is allowed to be sent
func (*ManagedNotification) DeepCopy ¶
func (in *ManagedNotification) DeepCopy() *ManagedNotification
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedNotification.
func (*ManagedNotification) DeepCopyInto ¶
func (in *ManagedNotification) DeepCopyInto(out *ManagedNotification)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagedNotification) DeepCopyObject ¶
func (in *ManagedNotification) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ManagedNotification) GetNotificationForName ¶
func (m *ManagedNotification) GetNotificationForName(n string) (*Notification, error)
GetNotificationForName returns a notification matching the given name or error if no matching notification can be found.
type ManagedNotificationList ¶
type ManagedNotificationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ManagedNotification `json:"items"` }
ManagedNotificationList contains a list of ManagedNotification
func (*ManagedNotificationList) DeepCopy ¶
func (in *ManagedNotificationList) DeepCopy() *ManagedNotificationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedNotificationList.
func (*ManagedNotificationList) DeepCopyInto ¶
func (in *ManagedNotificationList) DeepCopyInto(out *ManagedNotificationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagedNotificationList) DeepCopyObject ¶
func (in *ManagedNotificationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManagedNotificationSpec ¶
type ManagedNotificationSpec struct { // AgentConfig refers to OCM agent config fields separated Notifications []Notification `json:"notifications"` }
ManagedNotificationSpec defines the desired state of ManagedNotification
func (*ManagedNotificationSpec) DeepCopy ¶
func (in *ManagedNotificationSpec) DeepCopy() *ManagedNotificationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedNotificationSpec.
func (*ManagedNotificationSpec) DeepCopyInto ¶
func (in *ManagedNotificationSpec) DeepCopyInto(out *ManagedNotificationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagedNotificationStatus ¶
type ManagedNotificationStatus struct {
NotificationRecords NotificationRecords `json:"notificationRecords,omitempty"`
}
ManagedNotificationStatus defines the observed state of ManagedNotification
func (*ManagedNotificationStatus) DeepCopy ¶
func (in *ManagedNotificationStatus) DeepCopy() *ManagedNotificationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedNotificationStatus.
func (*ManagedNotificationStatus) DeepCopyInto ¶
func (in *ManagedNotificationStatus) DeepCopyInto(out *ManagedNotificationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagedNotificationStatus) GetNotificationRecord ¶
func (m *ManagedNotificationStatus) GetNotificationRecord(n string) (*NotificationRecord, error)
GetNotificationRecord returns the history for a notification matching the given name or error if no matching notification can be found.
func (*ManagedNotificationStatus) HasNotificationRecord ¶
func (m *ManagedNotificationStatus) HasNotificationRecord(n string) bool
HasNotificationRecord returns whether or not a notification status history exists with the given name
type Notification ¶
type Notification struct { // The name of the notification used to associate with an alert Name string `json:"name"` // The summary line of the Service Log notification Summary string `json:"summary"` // The body text of the Service Log notification when the alert is active ActiveDesc string `json:"activeBody"` // The body text of the Service Log notification when the alert is resolved ResolvedDesc string `json:"resolvedBody,omitempty"` // LogType is a categorization property that can be used to group service logs for aggregation and managing notification preferences. LogType string `json:"logType,omitempty"` // References useful for context or remediation - this could be links to documentation, KB articles, etc References []NotificationReferenceType `json:"references,omitempty"` // +kubebuilder:validation:Enum={"Debug","Info","Warning","Major","Critical","Error","Fatal"} // The severity of the Service Log notification Severity NotificationSeverity `json:"severity"` // Measured in hours. The minimum time interval that must elapse between active Service Log notifications ResendWait int32 `json:"resendWait"` }
func (*Notification) DeepCopy ¶
func (in *Notification) DeepCopy() *Notification
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Notification.
func (*Notification) DeepCopyInto ¶
func (in *Notification) DeepCopyInto(out *Notification)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NotificationCondition ¶
type NotificationCondition struct { // +kubebuilder:validation:Enum={"AlertFiring","AlertResolved","ServiceLogSent"} // Type of Notification condition Type NotificationConditionType `json:"type"` // Status of condition, one of True, False, Unknown Status corev1.ConditionStatus `json:"status"` // Last time the condition transit from one status to another. // +kubebuilder:validation:Optional LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"` // (brief) reason for the condition's last transition. // +kubebuilder:validation:Optional Reason string `json:"reason,omitempty"` }
func (*NotificationCondition) DeepCopy ¶
func (in *NotificationCondition) DeepCopy() *NotificationCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationCondition.
func (*NotificationCondition) DeepCopyInto ¶
func (in *NotificationCondition) DeepCopyInto(out *NotificationCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NotificationConditionType ¶
type NotificationConditionType string
const ( ConditionAlertFiring NotificationConditionType = "AlertFiring" ConditionAlertResolved NotificationConditionType = "AlertResolved" ConditionServiceLogSent NotificationConditionType = "ServiceLogSent" )
type NotificationRecord ¶
type NotificationRecord struct { // Name of the notification Name string `json:"name"` // +kubebuilder:validation:Optional // ServiceLogSentCount records the number of service logs sent for the notification ServiceLogSentCount int32 `json:"serviceLogSentCount,omitempty"` // Conditions is a set of Condition instances. Conditions Conditions `json:"conditions,omitempty"` }
func (*NotificationRecord) DeepCopy ¶
func (in *NotificationRecord) DeepCopy() *NotificationRecord
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationRecord.
func (*NotificationRecord) DeepCopyInto ¶
func (in *NotificationRecord) DeepCopyInto(out *NotificationRecord)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NotificationRecord) SetStatus ¶
func (nr *NotificationRecord) SetStatus(nct NotificationConditionType, reason string, cs corev1.ConditionStatus, t *metav1.Time) error
SetStatus updates the status for a given notification record type
type NotificationRecordByName ¶
type NotificationRecordByName struct { // Name of the notification NotificationName string `json:"notificationName"` // Resend interval for the notification ResendWait int32 `json:"resendWait"` // Notification record item with the notification name NotificationRecordItems []NotificationRecordItem `json:"notificationRecordItems"` }
NotificationRecordByName groups the notification record item by notification name
func (*NotificationRecordByName) DeepCopy ¶
func (in *NotificationRecordByName) DeepCopy() *NotificationRecordByName
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationRecordByName.
func (*NotificationRecordByName) DeepCopyInto ¶
func (in *NotificationRecordByName) DeepCopyInto(out *NotificationRecordByName)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NotificationRecordItem ¶
type NotificationRecordItem struct { // The uuid for the hosted cluster per entry HostedClusterID string `json:"hostedClusterID"` // FiringNotificationSentCount records the number of notifications sent for the alert status firing FiringNotificationSentCount int `json:"firingNotificationSentCount"` // ResolvedNotificationSentCount records the number of notifications sent for the alert status resolving ResolvedNotificationSentCount int `json:"resolvedNotificationSentCount"` // The last notification sent timestamp LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"` }
NotificationRecordItem defines the basic structure of a notification record
func (*NotificationRecordItem) DeepCopy ¶
func (in *NotificationRecordItem) DeepCopy() *NotificationRecordItem
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationRecordItem.
func (*NotificationRecordItem) DeepCopyInto ¶
func (in *NotificationRecordItem) DeepCopyInto(out *NotificationRecordItem)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NotificationRecords ¶
type NotificationRecords []NotificationRecord
func (NotificationRecords) DeepCopy ¶
func (in NotificationRecords) DeepCopy() NotificationRecords
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationRecords.
func (NotificationRecords) DeepCopyInto ¶
func (in NotificationRecords) DeepCopyInto(out *NotificationRecords)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NotificationRecords) GetNotificationRecord ¶
func (nrs NotificationRecords) GetNotificationRecord(name string) *NotificationRecord
GetNotificationRecord retrieves the notification record associated with the given name
func (*NotificationRecords) SetNotificationRecord ¶
func (nrs *NotificationRecords) SetNotificationRecord(rec NotificationRecord)
SetNotificationRecord adds or overwrites the supplied notification record
type NotificationReferenceType ¶
type NotificationReferenceType string
+kubebuilder:validation:Pattern=`^https?:\/\/.+$`
type NotificationSeverity ¶
type NotificationSeverity string
const ( SeverityDebug NotificationSeverity = "Debug" SeverityWarning NotificationSeverity = "Warning" SeverityInfo NotificationSeverity = "Info" SeverityMajor NotificationSeverity = "Major" SeverityCritical NotificationSeverity = "Critical" SeverityError NotificationSeverity = "Error" SeverityFatal NotificationSeverity = "Fatal" )
type OcmAgent ¶
type OcmAgent struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec OcmAgentSpec `json:"spec,omitempty"` Status OcmAgentStatus `json:"status,omitempty"` }
OcmAgent is the Schema for the ocmagents API
func (*OcmAgent) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OcmAgent.
func (*OcmAgent) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OcmAgent) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OcmAgentList ¶
type OcmAgentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []OcmAgent `json:"items"` }
OcmAgentList contains a list of OcmAgent
func (*OcmAgentList) DeepCopy ¶
func (in *OcmAgentList) DeepCopy() *OcmAgentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OcmAgentList.
func (*OcmAgentList) DeepCopyInto ¶
func (in *OcmAgentList) DeepCopyInto(out *OcmAgentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OcmAgentList) DeepCopyObject ¶
func (in *OcmAgentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OcmAgentSpec ¶
type OcmAgentSpec struct { // AgentConfig refers to OCM agent config fields separated AgentConfig AgentConfig `json:"agentConfig"` // OcmAgentImage defines the image which will be used by the OCM Agent OcmAgentImage string `json:"ocmAgentImage"` // TokenSecret points to the secret name which stores the access token to OCM server TokenSecret string `json:"tokenSecret"` // Replicas defines the replica count for the OCM Agent service Replicas int32 `json:"replicas"` // FleetMode indicates if the OCM agent is running in fleet mode, default to false FleetMode bool `json:"fleetMode,omitempty"` }
OcmAgentSpec defines the desired state of OcmAgent
func (*OcmAgentSpec) DeepCopy ¶
func (in *OcmAgentSpec) DeepCopy() *OcmAgentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OcmAgentSpec.
func (*OcmAgentSpec) DeepCopyInto ¶
func (in *OcmAgentSpec) DeepCopyInto(out *OcmAgentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OcmAgentStatus ¶
type OcmAgentStatus struct { // ServiceStatus indicates the status of OCM Agent service ServiceStatus string `json:"serviceStatus"` AvailableReplicas int32 `json:"availableReplicas"` }
OcmAgentStatus defines the observed state of OcmAgent
func (*OcmAgentStatus) DeepCopy ¶
func (in *OcmAgentStatus) DeepCopy() *OcmAgentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OcmAgentStatus.
func (*OcmAgentStatus) DeepCopyInto ¶
func (in *OcmAgentStatus) DeepCopyInto(out *OcmAgentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.