We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32e7512 commit d49ab87Copy full SHA for d49ab87
pkg/plugins/common/kustomize/v1/scaffolds/internal/templates/config/rbac/crd_viewer_role.go
@@ -33,7 +33,12 @@ type CRDViewerRole struct {
33
// SetTemplateDefaults implements file.Template
34
func (f *CRDViewerRole) SetTemplateDefaults() error {
35
if f.Path == "" {
36
- f.Path = filepath.Join("config", "rbac", "%[group]_%[kind]_viewer_role.yaml")
+ if f.MultiGroup {
37
+ f.Path = filepath.Join("config", "rbac", "%[group]_%[kind]_viewer_role.yaml")
38
+ } else {
39
+ f.Path = filepath.Join("config", "rbac", "%[kind]_viewer_role.yaml")
40
+ }
41
+
42
}
43
f.Path = f.Resource.Replacer().Replace(f.Path)
44
0 commit comments