Skip to content

Commit

Permalink
add openshift/ocm-agent-operator
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Hoß <[email protected]>
  • Loading branch information
sebhoss committed Sep 15, 2024
1 parent d8f44ba commit ce8f997
Show file tree
Hide file tree
Showing 14 changed files with 679 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -1003,6 +1003,10 @@ Files: crd-catalog/openshift/managed-upgrade-operator/*
Copyright: The openshift/managed-upgrade-operator Authors
License: Apache-2.0

Files: crd-catalog/openshift/ocm-agent-operator/*
Copyright: The openshift/ocm-agent-operator Authors
License: Apache-2.0

Files: crd-catalog/openshift/ptp-operator/*
Copyright: The openshift/ptp-operator Authors
License: Apache-2.0
Expand Down
10 changes: 10 additions & 0 deletions code-generator/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2545,6 +2545,16 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
"https://github.com/openshift/managed-upgrade-operator/blob/master/deploy/crds/upgrade.managed.openshift.io_upgradeconfigs.yaml",
],
},
UpstreamSource {
project_name: "openshift/ocm-agent-operator",
license: APACHE_V2,
urls: &[
"https://github.com/openshift/ocm-agent-operator/blob/master/deploy/crds/ocmagent.managed.openshift.io_managedfleetnotificationrecords.yaml",
"https://github.com/openshift/ocm-agent-operator/blob/master/deploy/crds/ocmagent.managed.openshift.io_managedfleetnotifications.yaml",
"https://github.com/openshift/ocm-agent-operator/blob/master/deploy/crds/ocmagent.managed.openshift.io_managednotifications.yaml",
"https://github.com/openshift/ocm-agent-operator/blob/master/deploy/crds/ocmagent.managed.openshift.io_ocmagents.yaml",
],
},
UpstreamSource {
project_name: "openshift/ptp-operator",
license: APACHE_V2,
Expand Down
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: {}
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: {}
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: {}
Loading

0 comments on commit ce8f997

Please sign in to comment.