-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.yaml
More file actions
91 lines (91 loc) · 2.55 KB
/
install.yaml
File metadata and controls
91 lines (91 loc) · 2.55 KB
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
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: mysqldatabases.extmysql.angrybytes.com
spec:
group: extmysql.angrybytes.com
names:
kind: MySQLDatabase
singular: mysqldatabase
plural: mysqldatabases
shortNames: [mysqldbs]
scope: Namespaced
versions:
- name: v1
served: true
storage: true
subresources:
status: {}
schema:
openAPIV3Schema:
type: object
required: [spec]
properties:
spec:
type: object
required: [secretName]
properties:
secretName:
description: "Name of the secret to create, containing the generated password"
type: string
minLength: 1
status:
type: object
properties:
conditions:
type: array
x-kubernetes-list-map-keys: [type]
x-kubernetes-list-type: map
items:
type: object
required: [type, status, lastTransitionTime]
properties:
type:
type: string
minLength: 1
status:
type: string
minLength: 1
message:
type: string
reason:
type: string
lastTransitionTime:
type: string
format: date-time
observedGeneration:
type: integer
format: int64
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: external-mysql-operator
labels:
app.kubernetes.io/name: external-mysql-operator
rules:
- apiGroups: [""]
resources: [secrets]
verbs: ["*"]
- apiGroups: [extmysql.angrybytes.com]
resources: [mysqldatabases, mysqldatabases/status]
verbs: [list, get, watch]
- apiGroups: [extmysql.angrybytes.com]
resources: [mysqldatabases/status]
verbs: ["*"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: external-mysql-operator
labels:
app.kubernetes.io/name: external-mysql-operator
roleRef:
kind: ClusterRole
name: external-mysql-operator
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: User
name: system:external-mysql-operator
apiGroup: rbac.authorization.k8s.io