Skip to content

Commit cffb948

Browse files
authored
internal/pkg/scaffold/helm/role.go: add custom rules for namespaced scope (#1456) (#1466)
1 parent 605cbf8 commit cffb948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pkg/scaffold/helm/role.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ func CreateRoleScaffold(cfg *rest.Config, chart *chart.Chart) (*scaffold.Role, e
7676
if len(clusterResourceRules) > 0 {
7777
log.Info("Scaffolding ClusterRole and ClusterRolebinding for cluster scoped resources in the helm chart")
7878
roleScaffold.IsClusterScoped = true
79-
roleScaffold.CustomRules = append(roleScaffold.CustomRules, append(clusterResourceRules, namespacedResourceRules...)...)
8079
}
80+
roleScaffold.CustomRules = append(roleScaffold.CustomRules, append(clusterResourceRules, namespacedResourceRules...)...)
8181

8282
log.Warn("The RBAC rules generated in deploy/role.yaml are based on the chart's default manifest." +
8383
" Some rules may be missing for resources that are only enabled with custom values, and" +

0 commit comments

Comments
 (0)