Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Commit 29b6a60

Browse files
Merge pull request #137 from HubertStefanski/INTLY-8046
Bump operator-sdk version to 0.15.2 and AMO to 1.2.0 for release
2 parents 808460e + df35a43 commit 29b6a60

File tree

637 files changed

+128123
-132222
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

637 files changed

+128123
-132222
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ COMPILE_TARGET=./tmp/_output/bin/$(PROJECT)
1414
PROMETHEUS_OPERATOR_VERSION=v0.34.0
1515
LOCAL=local
1616
GRAFANA_OPERATOR_VERSION=v3.2.0
17-
AMO_VERSION?=v1.1.6
18-
PREV_AMO_VERSION=v1.1.5
17+
AMO_VERSION=1.2.0
18+
PREV_AMO_VERSION=1.1.6
1919

2020
AUTH_TOKEN=$(shell curl -sH "Content-Type: application/json" -XPOST https://quay.io/cnr/api/v1/users/login -d '{"user": {"username": "$(QUAY_USERNAME)", "password": "${QUAY_PASSWORD}"}}' | jq -r '.token')
2121

@@ -47,7 +47,7 @@ code/gen:
4747
.PHONY: gen/csv
4848
gen/csv:
4949
sed -i.bak 's/image:.*/image: quay\.io\/integreatly\/application-monitoring-operator:v$(AMO_VERSION)/g' deploy/operator.yaml && rm deploy/operator.yaml.bak
50-
@operator-sdk olm-catalog gen-csv --operator-name=application-monitoring-operator --csv-version $(AMO_VERSION) --from-version $(PREV_AMO_VERSION) --update-crds --csv-channel=integreatly --default-channel
50+
@operator-sdk generate csv --operator-name=application-monitoring-operator --csv-version $(AMO_VERSION) --from-version $(PREV_AMO_VERSION) --update-crds --csv-channel=integreatly --default-channel
5151
@sed -i.bak 's/$(PREV_AMO_VERSION)/$(AMO_VERSION)/g' deploy/olm-catalog/application-monitoring-operator/application-monitoring-operator.package.yaml && rm deploy/olm-catalog/application-monitoring-operator/application-monitoring-operator.package.yaml.bak
5252
@sed -i.bak s/application-monitoring-operator:v$(PREV_AMO_VERSION)/application-monitoring-operator:v$(AMO_VERSION)/g deploy/olm-catalog/application-monitoring-operator/$(AMO_VERSION)/application-monitoring-operator.v$(AMO_VERSION).clusterserviceversion.yaml && rm deploy/olm-catalog/application-monitoring-operator/$(AMO_VERSION)/application-monitoring-operator.v$(AMO_VERSION).clusterserviceversion.yaml.bak
5353

deploy/crds/applicationmonitoring.integreatly.org_applicationmonitorings_crd.yaml

Lines changed: 45 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,62 @@ spec:
1010
plural: applicationmonitorings
1111
singular: applicationmonitoring
1212
scope: Namespaced
13-
version: v1alpha1
13+
subresources:
14+
status: {}
1415
validation:
1516
openAPIV3Schema:
16-
required: ["spec"]
17+
description: ApplicationMonitoring is the Schema for the applicationmonitorings
18+
API
1719
properties:
20+
apiVersion:
21+
description: 'APIVersion defines the versioned schema of this representation
22+
of an object. Servers should convert recognized schemas to the latest
23+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
24+
type: string
25+
kind:
26+
description: 'Kind is a string value representing the REST resource this
27+
object represents. Servers may infer this from the endpoint the client
28+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
29+
type: string
30+
metadata:
31+
type: object
1832
spec:
19-
required: ["labelSelector"]
33+
description: ApplicationMonitoringSpec defines the desired state of ApplicationMonitoring
2034
properties:
21-
labelSelector:
35+
additionalScrapeConfigSecretKey:
2236
type: string
23-
minimum: 1
24-
description: The selector used by the Prometheus and Grafana Operators to discover resources
2537
additionalScrapeConfigSecretName:
2638
type: string
27-
description: The name of the secret from which additional scrape configs will be passed to the prometheus operator
28-
additionalScrapeConfigSecretKey:
39+
alertmanagerInstanceNamespaces:
40+
type: string
41+
labelSelector:
42+
minLength: 1
43+
type: string
44+
prometheusInstanceNamespaces:
2945
type: string
30-
description: The key under which additional scrape configs are stored within the secret
3146
prometheusRetention:
3247
type: string
33-
description: Retention time for prometheus data. See https://prometheus.io/docs/prometheus/latest/storage/
3448
prometheusStorageRequest:
3549
type: string
36-
description: How much storage to assign to a volume claim for persisting Prometheus data. See https://github.com/coreos/prometheus-operator/blob/ca400fdc3edd0af0df896a338eca270e115b74d7/Documentation/api.md#storagespec
37-
prometheusInstanceNamespaces:
38-
type: string
39-
description: The list of namespaces to watch for prometheus custom resources
40-
alertmanagerInstanceNamespaces:
50+
selfSignedCerts:
51+
type: boolean
52+
required:
53+
- labelSelector
54+
type: object
55+
status:
56+
description: ApplicationMonitoringStatus defines the observed state of ApplicationMonitoring
57+
properties:
58+
lastblackboxconfig:
4159
type: string
42-
description: The list of namespaces to watch for alertmanager custom resources
60+
phase:
61+
type: integer
62+
required:
63+
- lastblackboxconfig
64+
- phase
65+
type: object
66+
type: object
67+
version: v1alpha1
68+
versions:
69+
- name: v1alpha1
70+
served: true
71+
storage: true

deploy/crds/applicationmonitoring.integreatly.org_blackboxtargets_crd.yaml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,31 @@ spec:
1212
scope: Namespaced
1313
validation:
1414
openAPIV3Schema:
15+
description: BlackboxTarget is the Schema for the blackboxtargets API
1516
properties:
1617
apiVersion:
1718
description: 'APIVersion defines the versioned schema of this representation
1819
of an object. Servers should convert recognized schemas to the latest
19-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
20+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
2021
type: string
2122
kind:
2223
description: 'Kind is a string value representing the REST resource this
2324
object represents. Servers may infer this from the endpoint the client
24-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
25+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
2526
type: string
2627
metadata:
2728
type: object
2829
spec:
30+
description: BlackboxTargetSpec defines the desired state of BlackboxTarget
2931
properties:
3032
blackboxTargets:
31-
description: 'Defines an endpoint which can be probed using the Prometheus Blackbox exporter'
33+
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
34+
Important: Run "operator-sdk generate k8s" to regenerate code after
35+
modifying this file Add custom validation using kubebuilder tags:
36+
https://book.kubebuilder.io/beyond_basics/generating_crd.html'
3237
items:
38+
description: 'BlackboxtargetStructure contains: A target (url, module
39+
and service name) to be probed by the'
3340
properties:
3441
module:
3542
type: string
@@ -38,21 +45,25 @@ spec:
3845
url:
3946
type: string
4047
required:
41-
- url
42-
- service
4348
- module
49+
- service
50+
- url
4451
type: object
4552
type: array
4653
type: object
4754
status:
55+
description: BlackboxTargetStatus defines the observed state of BlackboxTarget
4856
properties:
4957
phase:
50-
description: 'The field phase is a status field indicating which phase the controller is with regards to reconciling blackbox target resources.'
51-
format: int64
58+
description: 'INSERT ADDITIONAL STATUS FIELD - define observed state
59+
of cluster Important: Run "operator-sdk generate k8s" to regenerate
60+
code after modifying this file Add custom validation using kubebuilder
61+
tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html'
5262
type: integer
5363
required:
5464
- phase
5565
type: object
66+
type: object
5667
version: v1alpha1
5768
versions:
5869
- name: v1alpha1

deploy/olm-catalog/application-monitoring-operator/1.2.0/application-monitoring-operator.v1.2.0.clusterserviceversion.yaml

Lines changed: 359 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: applicationmonitorings.applicationmonitoring.integreatly.org
5+
spec:
6+
group: applicationmonitoring.integreatly.org
7+
names:
8+
kind: ApplicationMonitoring
9+
listKind: ApplicationMonitoringList
10+
plural: applicationmonitorings
11+
singular: applicationmonitoring
12+
scope: Namespaced
13+
subresources:
14+
status: {}
15+
validation:
16+
openAPIV3Schema:
17+
description: ApplicationMonitoring is the Schema for the applicationmonitorings
18+
API
19+
properties:
20+
apiVersion:
21+
description: 'APIVersion defines the versioned schema of this representation
22+
of an object. Servers should convert recognized schemas to the latest
23+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
24+
type: string
25+
kind:
26+
description: 'Kind is a string value representing the REST resource this
27+
object represents. Servers may infer this from the endpoint the client
28+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
29+
type: string
30+
metadata:
31+
type: object
32+
spec:
33+
description: ApplicationMonitoringSpec defines the desired state of ApplicationMonitoring
34+
properties:
35+
additionalScrapeConfigSecretKey:
36+
type: string
37+
additionalScrapeConfigSecretName:
38+
type: string
39+
alertmanagerInstanceNamespaces:
40+
type: string
41+
labelSelector:
42+
minLength: 1
43+
type: string
44+
prometheusInstanceNamespaces:
45+
type: string
46+
prometheusRetention:
47+
type: string
48+
prometheusStorageRequest:
49+
type: string
50+
selfSignedCerts:
51+
type: boolean
52+
required:
53+
- labelSelector
54+
type: object
55+
status:
56+
description: ApplicationMonitoringStatus defines the observed state of ApplicationMonitoring
57+
properties:
58+
lastblackboxconfig:
59+
type: string
60+
phase:
61+
type: integer
62+
required:
63+
- lastblackboxconfig
64+
- phase
65+
type: object
66+
type: object
67+
version: v1alpha1
68+
versions:
69+
- name: v1alpha1
70+
served: true
71+
storage: true
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: blackboxtargets.applicationmonitoring.integreatly.org
5+
spec:
6+
group: applicationmonitoring.integreatly.org
7+
names:
8+
kind: BlackboxTarget
9+
listKind: BlackboxTargetList
10+
plural: blackboxtargets
11+
singular: blackboxtarget
12+
scope: Namespaced
13+
validation:
14+
openAPIV3Schema:
15+
description: BlackboxTarget is the Schema for the blackboxtargets API
16+
properties:
17+
apiVersion:
18+
description: 'APIVersion defines the versioned schema of this representation
19+
of an object. Servers should convert recognized schemas to the latest
20+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
21+
type: string
22+
kind:
23+
description: 'Kind is a string value representing the REST resource this
24+
object represents. Servers may infer this from the endpoint the client
25+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
26+
type: string
27+
metadata:
28+
type: object
29+
spec:
30+
description: BlackboxTargetSpec defines the desired state of BlackboxTarget
31+
properties:
32+
blackboxTargets:
33+
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
34+
Important: Run "operator-sdk generate k8s" to regenerate code after
35+
modifying this file Add custom validation using kubebuilder tags:
36+
https://book.kubebuilder.io/beyond_basics/generating_crd.html'
37+
items:
38+
description: 'BlackboxtargetStructure contains: A target (url, module
39+
and service name) to be probed by the'
40+
properties:
41+
module:
42+
type: string
43+
service:
44+
type: string
45+
url:
46+
type: string
47+
required:
48+
- module
49+
- service
50+
- url
51+
type: object
52+
type: array
53+
type: object
54+
status:
55+
description: BlackboxTargetStatus defines the observed state of BlackboxTarget
56+
properties:
57+
phase:
58+
description: 'INSERT ADDITIONAL STATUS FIELD - define observed state
59+
of cluster Important: Run "operator-sdk generate k8s" to regenerate
60+
code after modifying this file Add custom validation using kubebuilder
61+
tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html'
62+
type: integer
63+
required:
64+
- phase
65+
type: object
66+
type: object
67+
version: v1alpha1
68+
versions:
69+
- name: v1alpha1
70+
served: true
71+
storage: true

0 commit comments

Comments
 (0)