4949 default : 600
5050 description : Collecting metrics interval in seconds.
5151 type : integer
52+ enabled :
53+ description : Define if pgBackRest exporter should be enabled.
54+ type : boolean
5255 required :
5356 - collectInterval
5457 type : object
@@ -828,6 +831,16 @@ kind: ClusterRole
828831metadata :
829832 name : pgbackrest-controller
830833rules :
834+ - apiGroups :
835+ - " "
836+ resources :
837+ - persistentvolumeclaims
838+ verbs :
839+ - create
840+ - get
841+ - list
842+ - patch
843+ - watch
831844- apiGroups :
832845 - " "
833846 resources :
@@ -841,6 +854,7 @@ rules:
841854- apiGroups :
842855 - pgbackrest.dalibo.com
843856 resources :
857+ - pluginconfigs
844858 - stanzas
845859 verbs :
846860 - create
@@ -853,12 +867,14 @@ rules:
853867- apiGroups :
854868 - pgbackrest.dalibo.com
855869 resources :
870+ - pluginconfigs/finalizers
856871 - stanzas/finalizers
857872 verbs :
858873 - update
859874- apiGroups :
860875 - pgbackrest.dalibo.com
861876 resources :
877+ - pluginconfigs/status
862878 - stanzas/status
863879 verbs :
864880 - get
@@ -1015,6 +1031,20 @@ subjects:
10151031 namespace : cnpg-system
10161032---
10171033apiVersion : v1
1034+ data :
1035+ SIDECAR_EXPORTER_IMAGE : |
1036+ cmVnaXN0cnkuaHViLmRvY2tlci5jb20vZGFsaWJvL2NucGctcGdiYWNrcmVzdC1zaWRlY2
1037+ FyLWV4cG9ydGVyOjAuMC4y
1038+ SIDECAR_IMAGE : |
1039+ cmVnaXN0cnkuaHViLmRvY2tlci5jb20vZGFsaWJvL2NucGctcGdiYWNrcmVzdC1zaWRlY2
1040+ FyOjAuMC4y
1041+ kind : Secret
1042+ metadata :
1043+ name : plugin-pgbackrest-t97787c98t
1044+ namespace : cnpg-system
1045+ type : Opaque
1046+ ---
1047+ apiVersion : v1
10181048kind : Service
10191049metadata :
10201050 annotations :
@@ -1061,8 +1091,18 @@ spec:
10611091 - --client-cert=/client/tls.crt
10621092 - --server-address=:9090
10631093 - --log-level=debug
1064- image : pgbackrest-controller
1065- imagePullPolicy : IfNotPresent
1094+ env :
1095+ - name : SIDECAR_IMAGE
1096+ valueFrom :
1097+ secretKeyRef :
1098+ key : SIDECAR_IMAGE
1099+ name : plugin-pgbackrest-t97787c98t
1100+ - name : SIDECAR_EXPORTER_IMAGE
1101+ valueFrom :
1102+ secretKeyRef :
1103+ key : SIDECAR_EXPORTER_IMAGE
1104+ name : plugin-pgbackrest-t97787c98t
1105+ image : registry.hub.docker.com/dalibo/cnpg-pgbackrest-controller:0.0.2
10661106 name : pgbackrest-controller
10671107 ports :
10681108 - containerPort : 9090
0 commit comments