-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sebastian Hoß <[email protected]>
- Loading branch information
Showing
14 changed files
with
679 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
...gent-operator/ocmagent.managed.openshift.io/v1alpha1/managedfleetnotificationrecords.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
apiVersion: "apiextensions.k8s.io/v1" | ||
kind: "CustomResourceDefinition" | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: "v0.15.0" | ||
name: "managedfleetnotificationrecords.ocmagent.managed.openshift.io" | ||
spec: | ||
group: "ocmagent.managed.openshift.io" | ||
names: | ||
kind: "ManagedFleetNotificationRecord" | ||
listKind: "ManagedFleetNotificationRecordList" | ||
plural: "managedfleetnotificationrecords" | ||
shortNames: | ||
- "mfnr" | ||
singular: "managedfleetnotificationrecord" | ||
scope: "Namespaced" | ||
versions: | ||
- name: "v1alpha1" | ||
schema: | ||
openAPIV3Schema: | ||
description: "ManagedFleetNotificationRecord is the Schema for the managedfleetnotificationrecords API" | ||
properties: | ||
apiVersion: | ||
description: "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" | ||
type: "string" | ||
kind: | ||
description: "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" | ||
type: "string" | ||
metadata: | ||
type: "object" | ||
status: | ||
description: "ManagedFleetNotificationRecordStatus defines the observed state of ManagedFleetNotificationRecord" | ||
properties: | ||
managementCluster: | ||
description: "Managed Fleet Notification name" | ||
type: "string" | ||
notificationRecordByName: | ||
description: "An array structure to record the history for each hosted cluster" | ||
items: | ||
description: "NotificationRecordByName groups the notification record item by notification name" | ||
properties: | ||
notificationName: | ||
description: "Name of the notification" | ||
type: "string" | ||
notificationRecordItems: | ||
description: "Notification record item with the notification name" | ||
items: | ||
description: "NotificationRecordItem defines the basic structure of a notification record" | ||
properties: | ||
firingNotificationSentCount: | ||
description: "FiringNotificationSentCount records the number of notifications sent for the alert status firing" | ||
type: "integer" | ||
hostedClusterID: | ||
description: "The uuid for the hosted cluster per entry" | ||
type: "string" | ||
lastTransitionTime: | ||
description: "The last notification sent timestamp" | ||
format: "date-time" | ||
type: "string" | ||
resolvedNotificationSentCount: | ||
description: "ResolvedNotificationSentCount records the number of notifications sent for the alert status resolving" | ||
type: "integer" | ||
required: | ||
- "firingNotificationSentCount" | ||
- "hostedClusterID" | ||
- "resolvedNotificationSentCount" | ||
type: "object" | ||
type: "array" | ||
resendWait: | ||
description: "Resend interval for the notification" | ||
format: "int32" | ||
type: "integer" | ||
required: | ||
- "notificationName" | ||
- "notificationRecordItems" | ||
- "resendWait" | ||
type: "object" | ||
type: "array" | ||
required: | ||
- "managementCluster" | ||
- "notificationRecordByName" | ||
type: "object" | ||
type: "object" | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
84 changes: 84 additions & 0 deletions
84
.../ocm-agent-operator/ocmagent.managed.openshift.io/v1alpha1/managedfleetnotifications.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
apiVersion: "apiextensions.k8s.io/v1" | ||
kind: "CustomResourceDefinition" | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: "v0.15.0" | ||
name: "managedfleetnotifications.ocmagent.managed.openshift.io" | ||
spec: | ||
group: "ocmagent.managed.openshift.io" | ||
names: | ||
kind: "ManagedFleetNotification" | ||
listKind: "ManagedFleetNotificationList" | ||
plural: "managedfleetnotifications" | ||
shortNames: | ||
- "mfn" | ||
singular: "managedfleetnotification" | ||
scope: "Namespaced" | ||
versions: | ||
- name: "v1alpha1" | ||
schema: | ||
openAPIV3Schema: | ||
description: "ManagedFleetNotification is the Schema for the managedfleetnotifications API" | ||
properties: | ||
apiVersion: | ||
description: "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" | ||
type: "string" | ||
kind: | ||
description: "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" | ||
type: "string" | ||
metadata: | ||
type: "object" | ||
spec: | ||
properties: | ||
fleetNotification: | ||
description: "FleetNotification defines the desired spec of ManagedFleetNotification" | ||
properties: | ||
limitedSupport: | ||
description: "Whether or not limited support should be sent for this notification" | ||
type: "boolean" | ||
logType: | ||
description: "LogType is a categorization property that can be used to group service logs for aggregation and managing notification preferences." | ||
type: "string" | ||
name: | ||
description: "The name of the notification used to associate with an alert" | ||
type: "string" | ||
notificationMessage: | ||
description: "The body text of the notification when the alert is active" | ||
type: "string" | ||
references: | ||
description: "References useful for context or remediation - this could be links to documentation, KB articles, etc" | ||
items: | ||
pattern: "^https?:\\/\\/.+$" | ||
type: "string" | ||
type: "array" | ||
resendWait: | ||
description: "Measured in hours. The minimum time interval that must elapse between active notifications" | ||
format: "int32" | ||
type: "integer" | ||
severity: | ||
description: "Re-use the severity definitation in managednotification_types" | ||
enum: | ||
- "Debug" | ||
- "Info" | ||
- "Warning" | ||
- "Error" | ||
- "Fatal" | ||
type: "string" | ||
summary: | ||
description: "The summary line of the notification" | ||
type: "string" | ||
required: | ||
- "name" | ||
- "notificationMessage" | ||
- "resendWait" | ||
- "severity" | ||
- "summary" | ||
type: "object" | ||
required: | ||
- "fleetNotification" | ||
type: "object" | ||
type: "object" | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
129 changes: 129 additions & 0 deletions
129
...shift/ocm-agent-operator/ocmagent.managed.openshift.io/v1alpha1/managednotifications.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
apiVersion: "apiextensions.k8s.io/v1" | ||
kind: "CustomResourceDefinition" | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: "v0.15.0" | ||
name: "managednotifications.ocmagent.managed.openshift.io" | ||
spec: | ||
group: "ocmagent.managed.openshift.io" | ||
names: | ||
kind: "ManagedNotification" | ||
listKind: "ManagedNotificationList" | ||
plural: "managednotifications" | ||
singular: "managednotification" | ||
scope: "Namespaced" | ||
versions: | ||
- name: "v1alpha1" | ||
schema: | ||
openAPIV3Schema: | ||
description: "ManagedNotification is the Schema for the managednotifications API" | ||
properties: | ||
apiVersion: | ||
description: "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" | ||
type: "string" | ||
kind: | ||
description: "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" | ||
type: "string" | ||
metadata: | ||
type: "object" | ||
spec: | ||
description: "ManagedNotificationSpec defines the desired state of ManagedNotification" | ||
properties: | ||
notifications: | ||
description: "AgentConfig refers to OCM agent config fields separated" | ||
items: | ||
properties: | ||
activeBody: | ||
description: "The body text of the Service Log notification when the alert is active" | ||
type: "string" | ||
logType: | ||
description: "LogType is a categorization property that can be used to group service logs for aggregation and managing notification preferences." | ||
type: "string" | ||
name: | ||
description: "The name of the notification used to associate with an alert" | ||
type: "string" | ||
references: | ||
description: "References useful for context or remediation - this could be links to documentation, KB articles, etc" | ||
items: | ||
pattern: "^https?:\\/\\/.+$" | ||
type: "string" | ||
type: "array" | ||
resendWait: | ||
description: "Measured in hours. The minimum time interval that must elapse between active Service Log notifications" | ||
format: "int32" | ||
type: "integer" | ||
resolvedBody: | ||
description: "The body text of the Service Log notification when the alert is resolved" | ||
type: "string" | ||
severity: | ||
description: "The severity of the Service Log notification" | ||
enum: | ||
- "Debug" | ||
- "Info" | ||
- "Warning" | ||
- "Major" | ||
- "Critical" | ||
type: "string" | ||
summary: | ||
description: "The summary line of the Service Log notification" | ||
type: "string" | ||
required: | ||
- "activeBody" | ||
- "name" | ||
- "resendWait" | ||
- "severity" | ||
- "summary" | ||
type: "object" | ||
type: "array" | ||
required: | ||
- "notifications" | ||
type: "object" | ||
status: | ||
description: "ManagedNotificationStatus defines the observed state of ManagedNotification" | ||
properties: | ||
notificationRecords: | ||
items: | ||
properties: | ||
conditions: | ||
description: "Conditions is a set of Condition instances." | ||
items: | ||
properties: | ||
lastTransitionTime: | ||
description: "Last time the condition transit from one status to another." | ||
format: "date-time" | ||
type: "string" | ||
reason: | ||
description: "(brief) reason for the condition's last transition." | ||
type: "string" | ||
status: | ||
description: "Status of condition, one of True, False, Unknown" | ||
type: "string" | ||
type: | ||
description: "Type of Notification condition" | ||
enum: | ||
- "AlertFiring" | ||
- "AlertResolved" | ||
- "ServiceLogSent" | ||
type: "string" | ||
required: | ||
- "status" | ||
- "type" | ||
type: "object" | ||
type: "array" | ||
name: | ||
description: "Name of the notification" | ||
type: "string" | ||
serviceLogSentCount: | ||
description: "ServiceLogSentCount records the number of service logs sent for the notification" | ||
format: "int32" | ||
type: "integer" | ||
required: | ||
- "name" | ||
type: "object" | ||
type: "array" | ||
type: "object" | ||
type: "object" | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
Oops, something went wrong.