Skip to content

Commit

Permalink
internal/pkg/scaffold/helm/role.go: add custom rules for namespaced s…
Browse files Browse the repository at this point in the history
…cope (#1456) (#1466)
  • Loading branch information
joelanford authored May 21, 2019
1 parent 605cbf8 commit cffb948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/scaffold/helm/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ func CreateRoleScaffold(cfg *rest.Config, chart *chart.Chart) (*scaffold.Role, e
if len(clusterResourceRules) > 0 {
log.Info("Scaffolding ClusterRole and ClusterRolebinding for cluster scoped resources in the helm chart")
roleScaffold.IsClusterScoped = true
roleScaffold.CustomRules = append(roleScaffold.CustomRules, append(clusterResourceRules, namespacedResourceRules...)...)
}
roleScaffold.CustomRules = append(roleScaffold.CustomRules, append(clusterResourceRules, namespacedResourceRules...)...)

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

0 comments on commit cffb948

Please sign in to comment.