mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-09-06 15:02:21 +02:00
Compare commits
5 Commits
c6390d49df
...
1aef9baf3b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1aef9baf3b | ||
|
|
9967e2caab | ||
|
|
c5dafb3dbf | ||
|
|
50c55fd075 | ||
|
|
bdf568f48f |
12
CODEOWNERS
12
CODEOWNERS
@ -1,5 +1,9 @@
|
||||
# The CODEOWNERS file is used to define individuals or teams that are
|
||||
# responsible for code in a repository. For details, please refer to
|
||||
# https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/about-code-owners
|
||||
# This file is generated from componentowners-policy.yaml in
|
||||
# cloudnative-pg/cnpg-infra — do not hand-edit, propose changes there instead.
|
||||
#
|
||||
# Path-scoped rules below always include the repo's own general owners
|
||||
# (the "*" line) in addition to their own specific teams/users, since
|
||||
# CODEOWNERS only honors the LAST matching pattern for a given path —
|
||||
# it does not merge an earlier, less-specific rule into a later one.
|
||||
|
||||
* @leonardoce @mnencia @gbartolini @fcanovai @armru @NiccoloFei
|
||||
* @cloudnative-pg/plugin-barman-cloud-owners
|
||||
|
||||
@ -126,6 +126,10 @@ func ObjectStoreNamesFromRole(role *rbacv1.Role) []string {
|
||||
func BuildRoleBinding(
|
||||
cluster *cnpgv1.Cluster,
|
||||
) *rbacv1.RoleBinding {
|
||||
clusterServiceAccountName := cluster.Name
|
||||
if cluster.Spec.ServiceAccountName != "" {
|
||||
clusterServiceAccountName = cluster.Spec.ServiceAccountName
|
||||
}
|
||||
return &rbacv1.RoleBinding{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Namespace: cluster.Namespace,
|
||||
@ -136,7 +140,7 @@ func BuildRoleBinding(
|
||||
{
|
||||
Kind: "ServiceAccount",
|
||||
APIGroup: "",
|
||||
Name: cluster.Name,
|
||||
Name: clusterServiceAccountName,
|
||||
Namespace: cluster.Namespace,
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user