Skip to content

Commit 2a842b8

Browse files
committed
Prepare v0.0.2
1 parent f47fff2 commit 2a842b8

6 files changed

Lines changed: 49 additions & 9 deletions

File tree

internal/metadata/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const PluginName = "pgbackrest.dalibo.com"
1212
// Data is the metadata of this plugin
1313
var Data = identity.GetPluginMetadataResponse{
1414
Name: PluginName,
15-
Version: "0.0.1",
15+
Version: "0.0.2",
1616
DisplayName: "pgBackRest demo / experimental plugin",
1717
ProjectUrl: "https://github.com/dalibo/cnpg-i-pgbackrest",
1818
RepositoryUrl: "https://github.com/dalibo/cnpg-i-pgbackrest",

kubernetes/prod/deployment-image-patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spec:
99
spec:
1010
containers:
1111
- name: pgbackrest-controller
12-
image: registry.hub.docker.com/dalibo/cnpg-pgbackrest-controller:0.0.1
12+
image: registry.hub.docker.com/dalibo/cnpg-pgbackrest-controller:0.0.2
1313
env:
1414
- name: SIDECAR_IMAGE
1515
valueFrom:

kubernetes/prod/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ patches:
99
secretGenerator:
1010
- name: plugin-pgbackrest
1111
literals:
12-
- SIDECAR_IMAGE=registry.hub.docker.com/dalibo/cnpg-pgbackrest-sidecar:0.0.1
13-
- SIDECAR_EXPORTER_IMAGE=registry.hub.docker.com/dalibo/cnpg-pgbackrest-sidecar-exporter:0.0.1
12+
- SIDECAR_IMAGE=registry.hub.docker.com/dalibo/cnpg-pgbackrest-sidecar:0.0.2
13+
- SIDECAR_EXPORTER_IMAGE=registry.hub.docker.com/dalibo/cnpg-pgbackrest-sidecar-exporter:0.0.2

kubernetes/test/deployment-image-patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spec:
99
spec:
1010
containers:
1111
- name: pgbackrest-controller
12-
image: registry.hub.docker.com/dalibo/cnpg-pgbackrest-controller:0.0.1
12+
image: registry.hub.docker.com/dalibo/cnpg-pgbackrest-controller:0.0.2
1313
imagePullPolicy: IfNotPresent
1414
env:
1515
- name: SIDECAR_IMAGE

kubernetes/test/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ patches:
99
secretGenerator:
1010
- name: plugin-pgbackrest
1111
literals:
12-
- SIDECAR_IMAGE=registry.hub.docker.com/dalibo/cnpg-pgbackrest-sidecar:0.0.1
13-
- SIDECAR_EXPORTER_IMAGE=registry.hub.docker.com/dalibo/cnpg-pgbackrest-sidecar-exporter:0.0.1
12+
- SIDECAR_IMAGE=registry.hub.docker.com/dalibo/cnpg-pgbackrest-sidecar:0.0.2
13+
- SIDECAR_EXPORTER_IMAGE=registry.hub.docker.com/dalibo/cnpg-pgbackrest-sidecar-exporter:0.0.2

manifest.yaml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ spec:
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
828831
metadata:
829832
name: pgbackrest-controller
830833
rules:
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
---
10171033
apiVersion: 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
10181048
kind: Service
10191049
metadata:
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

Comments
 (0)