From 5af7513904c9c0cb63c7bb9f900a3f96224ee4f4 Mon Sep 17 00:00:00 2001 From: Camila Macedo Date: Sat, 9 May 2020 02:31:39 +0100 Subject: [PATCH] fix: remove role for configmaps/status --- pkg/scaffold/internal/templates/leaderelectionrole.go | 8 -------- .../config/rbac/leader_election_role.yaml | 8 -------- .../config/rbac/leader_election_role.yaml | 8 -------- testdata/project-v2/config/rbac/leader_election_role.yaml | 8 -------- .../config/rbac/leader_election_role.yaml | 8 -------- .../config/rbac/leader_election_role.yaml | 8 -------- testdata/project-v3/config/rbac/leader_election_role.yaml | 8 -------- 7 files changed, 56 deletions(-) diff --git a/pkg/scaffold/internal/templates/leaderelectionrole.go b/pkg/scaffold/internal/templates/leaderelectionrole.go index 081187540ae..5c04573f1ee 100644 --- a/pkg/scaffold/internal/templates/leaderelectionrole.go +++ b/pkg/scaffold/internal/templates/leaderelectionrole.go @@ -58,14 +58,6 @@ rules: - update - patch - delete -- apiGroups: - - "" - resources: - - configmaps/status - verbs: - - get - - update - - patch - apiGroups: - "" resources: diff --git a/testdata/project-v2-addon/config/rbac/leader_election_role.yaml b/testdata/project-v2-addon/config/rbac/leader_election_role.yaml index eaa79158fb1..e3867da7395 100644 --- a/testdata/project-v2-addon/config/rbac/leader_election_role.yaml +++ b/testdata/project-v2-addon/config/rbac/leader_election_role.yaml @@ -16,14 +16,6 @@ rules: - update - patch - delete -- apiGroups: - - "" - resources: - - configmaps/status - verbs: - - get - - update - - patch - apiGroups: - "" resources: diff --git a/testdata/project-v2-multigroup/config/rbac/leader_election_role.yaml b/testdata/project-v2-multigroup/config/rbac/leader_election_role.yaml index eaa79158fb1..e3867da7395 100644 --- a/testdata/project-v2-multigroup/config/rbac/leader_election_role.yaml +++ b/testdata/project-v2-multigroup/config/rbac/leader_election_role.yaml @@ -16,14 +16,6 @@ rules: - update - patch - delete -- apiGroups: - - "" - resources: - - configmaps/status - verbs: - - get - - update - - patch - apiGroups: - "" resources: diff --git a/testdata/project-v2/config/rbac/leader_election_role.yaml b/testdata/project-v2/config/rbac/leader_election_role.yaml index eaa79158fb1..e3867da7395 100644 --- a/testdata/project-v2/config/rbac/leader_election_role.yaml +++ b/testdata/project-v2/config/rbac/leader_election_role.yaml @@ -16,14 +16,6 @@ rules: - update - patch - delete -- apiGroups: - - "" - resources: - - configmaps/status - verbs: - - get - - update - - patch - apiGroups: - "" resources: diff --git a/testdata/project-v3-addon/config/rbac/leader_election_role.yaml b/testdata/project-v3-addon/config/rbac/leader_election_role.yaml index eaa79158fb1..e3867da7395 100644 --- a/testdata/project-v3-addon/config/rbac/leader_election_role.yaml +++ b/testdata/project-v3-addon/config/rbac/leader_election_role.yaml @@ -16,14 +16,6 @@ rules: - update - patch - delete -- apiGroups: - - "" - resources: - - configmaps/status - verbs: - - get - - update - - patch - apiGroups: - "" resources: diff --git a/testdata/project-v3-multigroup/config/rbac/leader_election_role.yaml b/testdata/project-v3-multigroup/config/rbac/leader_election_role.yaml index eaa79158fb1..e3867da7395 100644 --- a/testdata/project-v3-multigroup/config/rbac/leader_election_role.yaml +++ b/testdata/project-v3-multigroup/config/rbac/leader_election_role.yaml @@ -16,14 +16,6 @@ rules: - update - patch - delete -- apiGroups: - - "" - resources: - - configmaps/status - verbs: - - get - - update - - patch - apiGroups: - "" resources: diff --git a/testdata/project-v3/config/rbac/leader_election_role.yaml b/testdata/project-v3/config/rbac/leader_election_role.yaml index eaa79158fb1..e3867da7395 100644 --- a/testdata/project-v3/config/rbac/leader_election_role.yaml +++ b/testdata/project-v3/config/rbac/leader_election_role.yaml @@ -16,14 +16,6 @@ rules: - update - patch - delete -- apiGroups: - - "" - resources: - - configmaps/status - verbs: - - get - - update - - patch - apiGroups: - "" resources: