-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.clusterserviceversion.yaml
121 lines (120 loc) · 3.73 KB
/
example.clusterserviceversion.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# ACTIONS REQUIRED: Replace YOUR_NAMESPACE_HERE with your namespace.
# ACTIONS REQUIRED: Replace YOUR_REPO_IMAGE_HERE with the name of your built image.
#
# This file defines the ClusterServiceVersion (CSV) to tell the catalog how to display, create and
# manage the application as a whole. If changes are made to the CRD for this application kind,
# make sure to replace those references below as well.
apiVersion: app.coreos.com/v1alpha1
kind: ClusterServiceVersion-v1
metadata:
name: example-apb-operator.v0.0.1
namespace: ci-alm-staging
spec:
install:
strategy: deployment
spec:
permissions:
- serviceAccountName: example-apb-operator
rules:
- apiGroups:
- example.com
resources:
- example-apps
verbs:
- "*"
- apiGroups:
- ""
resources:
- pods
- events
- namespaces
verbs:
- "*"
- apiGroups:
- ""
resources:
- "namespaces"
verbs:
- "get"
- apiGroups:
- apps
- extensions
resources:
- deployments
verbs:
- "*"
deployments:
- name: example-apb-operator
spec:
replicas: 1
selector:
matchLabels:
app: example-apb-operator
template:
metadata:
labels:
app: example-apb-operator
spec:
containers:
- name: apb-operator
image: quay.io/alecmerdler/example-apb-operator
ports:
- containerPort: 8080
protocol: TCP
imagePullPolicy: Always
restartPolicy: Always
terminationGracePeriodSeconds: 5
serviceAccountName: example-apb-operator
serviceAccount: example-apb-operator
customresourcedefinitions:
owned:
- description: Represents a cluster of example apps
displayName: Example App
kind: ExampleApp
name: example-apps.example.com
version: v1alpha1
resources:
- kind: Deployment
version: v1beta2
- kind: ReplicaSet
version: v1beta2
- kind: Pod
version: v1
specDescriptors:
- description: The desired number of member Pods for the deployment.
displayName: Size
path: size
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:podCount'
statusDescriptors:
- description: The current status of the application.
displayName: Status
path: phase
x-descriptors:
- 'urn:alm:descriptor:io.kubernetes.phase'
- description: Explanation for the current status of the application.
displayName: Status Details
path: reason
x-descriptors:
- 'urn:alm:descriptor:io.kubernetes.phase:reason'
- description: The status of each of the member pods for the deployment.
displayName: Deployment Status
path: members
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:podStatuses'
keywords:
- example
- app
displayName: Example APB Application
provider:
name: Example Corp
url: www.example.com
maturity: alpha
version: 0.0.1
maintainers:
- email: corp@example.com
name: Some Corp
description: Main enterprise application providing business critical features with high availabilty and no manual intervention.
labels:
alm-owner-enterprise-app: example-apb-operator
alm-status-descriptors: example-apb-operator.v0.0.1