File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
pkg/controlplane/components Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 9
9
helmv2 "github.com/fluxcd/helm-controller/api/v2"
10
10
sourcev1 "github.com/fluxcd/source-controller/api/v1"
11
11
"github.com/openmcp-project/control-plane-operator/api/v1beta1"
12
- "github.com/openmcp-project/control-plane-operator/cmd/options"
13
12
"github.com/openmcp-project/control-plane-operator/pkg/juggler"
14
13
"github.com/openmcp-project/control-plane-operator/pkg/juggler/fluxcd"
15
14
"github.com/openmcp-project/control-plane-operator/pkg/juggler/hooks"
@@ -82,15 +81,13 @@ func (c *Crossplane) GetPolicyRules() PolicyRules {
82
81
},
83
82
}
84
83
85
- if options .IsDeploymentRuntimeConfigProtectionEnabled () {
86
- rules .Admin = append (rules .Admin , rbacv1.PolicyRule {
87
- APIGroups : []string {"pkg.crossplane.io" },
88
- Resources : []string {
89
- "deploymentruntimeconfigs" ,
90
- },
91
- Verbs : VerbsModify ,
92
- })
93
- }
84
+ rules .Admin = append (rules .Admin , rbacv1.PolicyRule {
85
+ APIGroups : []string {"pkg.crossplane.io" },
86
+ Resources : []string {
87
+ "deploymentruntimeconfigs" ,
88
+ },
89
+ Verbs : VerbsModify ,
90
+ })
94
91
95
92
return rules
96
93
}
You can’t perform that action at this time.
0 commit comments