@@ -3,35 +3,54 @@ apiVersion: v1
33kind : ServiceAccount
44metadata :
55 namespace : default
6- name : enonic-operator -account
6+ name : enonic-op -account
77
88---
99apiVersion : rbac.authorization.k8s.io/v1beta1
1010kind : ClusterRole
1111metadata :
12- name : enonic-operator-clusterrole
12+ name : enonic-op-role-cluster
1313rules :
1414
1515 # Framework: knowing which other operators are running (i.e. peering).
16- - apiGroups : [zalando.org ]
16+ - apiGroups : [kopf.dev ]
1717 resources : [clusterkopfpeerings]
1818 verbs : [list, watch, patch, get]
19+
20+ # Framework: runtime observation of namespaces & CRDs (addition/deletion).
1921 - apiGroups : [apiextensions.k8s.io]
2022 resources : [customresourcedefinitions]
21- verbs : [list, get]
23+ verbs : [list, watch]
24+ - apiGroups : [""]
25+ resources : [namespaces]
26+ verbs : [list, watch]
2227
2328 # Framework: posting the events about the handlers progress/errors.
24- - apiGroups : [events.k8s.io]
29+ - apiGroups : ["", " events.k8s.io" ]
2530 resources : [events]
2631 verbs : [create]
32+
33+ # Framework: admission webhook configuration management.
34+ - apiGroups : [admissionregistration.k8s.io/v1, admissionregistration.k8s.io/v1beta1]
35+ resources : [validatingwebhookconfigurations, mutatingwebhookconfigurations]
36+ verbs : [create, patch]
37+
2738 - apiGroups : [""]
28- resources : [events]
29- verbs : [create]
39+ resources : ["pods"]
40+ verbs : [get, list, watch, create, delete]
41+
42+ - apiGroups : ["kopf.enonic"]
43+ resources : ["enonicxpapps"]
44+ verbs : [get, list, watch, patch, update]
45+
46+ - apiGroups : ["batch", "extensions"]
47+ resources : ["jobs"]
48+ verbs : [get, list, watch, patch, create, delete, update]
3049
31- # Application: access for management cluster-wide.
3250 - apiGroups : ["apps"]
3351 resources : ["statefulsets"]
3452 verbs : [get, list, watch, patch]
53+
3554 - apiGroups : ["apps"]
3655 resources : ["statefulsets/status"]
3756 verbs : [get, list, watch, patch]
@@ -40,16 +59,59 @@ rules:
4059apiVersion : rbac.authorization.k8s.io/v1beta1
4160kind : ClusterRoleBinding
4261metadata :
43- name : enonic-operator-bind
62+ name : enonic-op-rolebinding-cluster
4463roleRef :
4564 apiGroup : rbac.authorization.k8s.io
4665 kind : ClusterRole
47- name : enonic-operator-clusterrole
66+ name : enonic-op-role-cluster
4867subjects :
4968 - kind : ServiceAccount
50- name : enonic-operator -account
69+ name : enonic-op -account
5170 namespace : default
5271
72+ ---
73+ apiVersion : apiextensions.k8s.io/v1
74+ kind : CustomResourceDefinition
75+ metadata :
76+ name : enonicxpapps.kopf.enonic
77+ spec :
78+ scope : Namespaced
79+ group : kopf.enonic
80+ names :
81+ kind : EnonicXpApp
82+ plural : enonicxpapps
83+ singular : enonicxpapp
84+ shortNames :
85+ - xpapp
86+ - xpapps
87+ - exas
88+ - exa
89+ - xapp
90+ - xapps
91+ versions :
92+ - name : v1
93+ served : true
94+ storage : true
95+ schema :
96+ openAPIV3Schema :
97+ type : object
98+ properties :
99+ spec :
100+ type : object
101+ x-kubernetes-preserve-unknown-fields : true
102+ status :
103+ type : object
104+ x-kubernetes-preserve-unknown-fields : true
105+ additionalPrinterColumns :
106+ - name : Latest Jar
107+ type : string
108+ jsonPath : .spec.object.name
109+ description : Latest jar file that was tried to be installed.
110+ - name : Status
111+ type : string
112+ jsonPath : .status.xp_app_handler/spec
113+ description : Jar latest installation status
114+
53115---
54116apiVersion : apps/v1
55117kind : Deployment
0 commit comments