Skip to content

Commit c2bfe12

Browse files
armrujbattiatogbartolinimnencia
authored
feat(rbac)!: prefix all resource names to avoid cluster conflicts (#593)
BREAKING CHANGE: All RBAC resource names have been renamed with consistent prefixes to prevent naming conflicts with other cluster components. Users must migrate their existing installations by deleting old resources and applying the new manifest. See the migration guide for detailed instructions (when the 0.8.0 will be published): https://cloudnative-pg.io/plugin-barman-cloud/resource-name-migration/ Closes #395 Signed-off-by: Armando Ruocco <[email protected]> Signed-off-by: Jonathan Battiato <[email protected]> Signed-off-by: Gabriele Bartolini <[email protected]> Signed-off-by: Marco Nenciarini <[email protected]> Co-authored-by: Jonathan Battiato <[email protected]> Co-authored-by: Gabriele Bartolini <[email protected]> Co-authored-by: Marco Nenciarini <[email protected]>
1 parent 49f1096 commit c2bfe12

13 files changed

+267
-19
lines changed

.wordlist.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ SPDX
4949
SPDX
5050
SSL
5151
ServerRecoveryWindow
52+
ServiceAccount
5253
Slonik
5354
TLS
5455
TODO
@@ -106,6 +107,7 @@ involvedObject
106107
io
107108
isWALArchiver
108109
jq
110+
json
109111
jsonpath
110112
kb
111113
krew
@@ -118,6 +120,7 @@ md
118120
minio
119121
namespace
120122
namespaces
123+
nonResourceURLs
121124
objectstore
122125
objectstores
123126
pluginConfiguration
@@ -131,7 +134,9 @@ recoverability
131134
repos
132135
retentionCheckInterval
133136
retentionPolicy
137+
roleRef
134138
rolebinding
139+
rolebindings
135140
rollout
136141
rpc
137142
sc

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [Unreleased]
4+
5+
### BREAKING CHANGES
6+
7+
* **manifests:** Resource names have been prefixed to avoid cluster conflicts
8+
- All cluster-scoped and namespace-scoped resources now use the `barman-plugin-` prefix for consistency
9+
- See the [Resource Name Migration Guide](https://cloudnative-pg.io/plugin-barman-cloud/resource-name-migration/) for detailed migration instructions
10+
311
## [0.7.0](https://github.com/cloudnative-pg/plugin-barman-cloud/compare/v0.6.0...v0.7.0) (2025-09-25)
412

513

config/default/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace: plugin-barman-cloud-system
66
# "wordpress" becomes "alices-wordpress".
77
# Note that it should also match with the prefix (text before '-') of the namespace
88
# field above.
9-
namePrefix: plugin-barman-cloud-
9+
#namePrefix: plugin-barman-cloud-
1010

1111
# Labels to add to all resources and selectors.
1212
#labels:

config/rbac/leader_election_role.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
labels:
66
app.kubernetes.io/name: plugin-barman-cloud
77
app.kubernetes.io/managed-by: kustomize
8-
name: leader-election-role
8+
name: barman-plugin-leader-election-role
99
rules:
1010
- apiGroups:
1111
- ""

config/rbac/leader_election_role_binding.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ metadata:
44
labels:
55
app.kubernetes.io/name: plugin-barman-cloud
66
app.kubernetes.io/managed-by: kustomize
7-
name: leader-election-rolebinding
7+
name: barman-plugin-leader-election-rolebinding
88
roleRef:
99
apiGroup: rbac.authorization.k8s.io
1010
kind: Role
11-
name: leader-election-role
11+
name: barman-plugin-leader-election-role
1212
subjects:
1313
- kind: ServiceAccount
1414
name: plugin-barman-cloud

config/rbac/metrics_auth_role.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: rbac.authorization.k8s.io/v1
22
kind: ClusterRole
33
metadata:
4-
name: metrics-auth-role
4+
name: barman-plugin-metrics-auth-role
55
rules:
66
- apiGroups:
77
- authentication.k8s.io

config/rbac/metrics_auth_role_binding.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
apiVersion: rbac.authorization.k8s.io/v1
22
kind: ClusterRoleBinding
33
metadata:
4-
name: metrics-auth-rolebinding
4+
name: barman-plugin-metrics-auth-rolebinding
55
roleRef:
66
apiGroup: rbac.authorization.k8s.io
77
kind: ClusterRole
8-
name: metrics-auth-role
8+
name: barman-plugin-metrics-auth-role
99
subjects:
1010
- kind: ServiceAccount
1111
name: plugin-barman-cloud

config/rbac/metrics_reader_role.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: rbac.authorization.k8s.io/v1
22
kind: ClusterRole
33
metadata:
4-
name: metrics-reader
4+
name: barman-plugin-metrics-reader
55
rules:
66
- nonResourceURLs:
77
- "/metrics"

config/rbac/objectstore_editor_role.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
labels:
66
app.kubernetes.io/name: plugin-barman-cloud
77
app.kubernetes.io/managed-by: kustomize
8-
name: objectstore-editor-role
8+
name: barman-plugin-objectstore-editor-role
99
rules:
1010
- apiGroups:
1111
- barmancloud.cnpg.io

config/rbac/objectstore_viewer_role.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
labels:
66
app.kubernetes.io/name: plugin-barman-cloud
77
app.kubernetes.io/managed-by: kustomize
8-
name: objectstore-viewer-role
8+
name: barman-plugin-objectstore-viewer-role
99
rules:
1010
- apiGroups:
1111
- barmancloud.cnpg.io

0 commit comments

Comments
 (0)