Skip to content

Commit 1bd97fb

Browse files
authored
Merge pull request #1 from kaovilai/status_descriptors
Edited oadp_types.go, moved `PrometheusRule` to `config/..`, ran `mak…
2 parents e08ec7a + 2d32bbc commit 1bd97fb

13 files changed

+46
-120
lines changed

api/v1alpha1/oadp_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ type DataProtectionApplicationSpec struct {
178178
Configuration *ApplicationConfig `json:"configuration"`
179179
}
180180

181-
// DataProtectionApplicationStatus defines the observed state of Velero
181+
// DataProtectionApplicationStatus defines the observed state of DataProtectionApplication
182182
type DataProtectionApplicationStatus struct {
183183
Conditions []metav1.Condition `json:"conditions,omitempty"`
184184
}

bundle/manifests/oadp-operator.clusterserviceversion.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ spec:
222222
displayName: Errors
223223
path: errors
224224
version: v1
225-
- description: BackupStorageLocation represents an object storage location (Such as Amazon S3 Bucket) where Velero stores backup objects.
225+
- description: BackupStorageLocation represents an object storage location (such as Amazon S3 Bucket) where Velero stores backup objects.
226226
displayName: BackupStorageLocation
227227
kind: BackupStorageLocation
228228
name: backupstoragelocations.velero.io
@@ -245,7 +245,7 @@ spec:
245245
kind: DataProtectionApplication
246246
name: dataprotectionapplications.oadp.openshift.io
247247
statusDescriptors:
248-
- description: Conditions defines the observed state of Velero
248+
- description: Conditions defines the observed state of DataProtectionApplication
249249
displayName: Conditions
250250
path: conditions
251251
version: v1alpha1
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: monitoring.coreos.com/v1
2+
kind: PrometheusRule
3+
metadata:
4+
name: oadp-operator
5+
spec:
6+
groups:
7+
- name: oadp-operator.rules
8+
rules:
9+
- expr: max without(instance) (velero_restore_total)
10+
record: cluster:velero_restore_total:max
11+
- expr: max without(instance) (velero_backup_total)
12+
record: cluster:velero_backup_total:max

bundle/manifests/oadp.openshift.io_dataprotectionapplications.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ spec:
488488
type: object
489489
status:
490490
description: DataProtectionApplicationStatus defines the observed state
491-
of Velero
491+
of DataProtectionApplication
492492
properties:
493493
conditions:
494494
items:

bundle/manifests/openshift-adp-controller-manager_v1_serviceaccount.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

bundle/manifests/velero_v1_serviceaccount.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

bundle/tests/scorecard/config.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,59 @@ stages:
1212
labels:
1313
suite: basic
1414
test: basic-check-spec-test
15+
storage:
16+
spec:
17+
mountPath: {}
1518
- entrypoint:
1619
- scorecard-test
1720
- olm-bundle-validation
1821
image: quay.io/operator-framework/scorecard-test:v1.10.0
1922
labels:
2023
suite: olm
2124
test: olm-bundle-validation-test
25+
storage:
26+
spec:
27+
mountPath: {}
2228
- entrypoint:
2329
- scorecard-test
2430
- olm-crds-have-validation
2531
image: quay.io/operator-framework/scorecard-test:v1.10.0
2632
labels:
2733
suite: olm
2834
test: olm-crds-have-validation-test
35+
storage:
36+
spec:
37+
mountPath: {}
2938
- entrypoint:
3039
- scorecard-test
3140
- olm-crds-have-resources
3241
image: quay.io/operator-framework/scorecard-test:v1.10.0
3342
labels:
3443
suite: olm
3544
test: olm-crds-have-resources-test
45+
storage:
46+
spec:
47+
mountPath: {}
3648
- entrypoint:
3749
- scorecard-test
3850
- olm-spec-descriptors
3951
image: quay.io/operator-framework/scorecard-test:v1.10.0
4052
labels:
4153
suite: olm
4254
test: olm-spec-descriptors-test
55+
storage:
56+
spec:
57+
mountPath: {}
4358
- entrypoint:
4459
- scorecard-test
4560
- olm-status-descriptors
4661
image: quay.io/operator-framework/scorecard-test:v1.10.0
4762
labels:
4863
suite: olm
4964
test: olm-status-descriptors-test
65+
storage:
66+
spec:
67+
mountPath: {}
68+
storage:
69+
spec:
70+
mountPath: {}

config/crd/bases/oadp.openshift.io_dataprotectionapplications.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ spec:
490490
type: object
491491
status:
492492
description: DataProtectionApplicationStatus defines the observed state
493-
of Velero
493+
of DataProtectionApplication
494494
properties:
495495
conditions:
496496
items:

config/manifests/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ resources:
66
- ../samples
77
- ../scorecard
88
- ../velero
9+
- ../prometheus
910

1011
# [WEBHOOK] To enable webhooks, uncomment all the sections with [WEBHOOK] prefix.
1112
# Do NOT uncomment sections with prefix [CERTMANAGER], as OLM does not support cert-manager.

config/prometheus/kustomization.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
resources:
2-
- monitor.yaml
2+
# - monitor.yaml
3+
- oadp-metrics-recording-rule.yaml

0 commit comments

Comments
 (0)