Skip to content

Commit

Permalink
fix(project): Use correct kind
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Blatt <[email protected]>
(cherry picked from commit c49ced6)
  • Loading branch information
MisterMX authored and github-actions[bot] committed Feb 27, 2024
1 parent 0e11dcb commit 6d4881c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/controller/projects/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const (

// SetupProject adds a controller that reconciles Projects.
func SetupProject(mgr ctrl.Manager, o controller.Options) error {
name := managed.ControllerName(v1alpha1.VariableKind)
name := managed.ControllerName(v1alpha1.ProjectKind)

cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())}
if o.Features.Enabled(features.EnableAlphaExternalSecretStores) {
Expand All @@ -75,12 +75,12 @@ func SetupProject(mgr ctrl.Manager, o controller.Options) error {
}

r := managed.NewReconciler(mgr,
resource.ManagedKind(v1alpha1.VariableGroupVersionKind),
resource.ManagedKind(v1alpha1.ProjectGroupVersionKind),
reconcilerOpts...)

return ctrl.NewControllerManagedBy(mgr).
Named(name).
For(&v1alpha1.Variable{}).
For(&v1alpha1.Project{}).
Complete(r)
}

Expand Down

0 comments on commit 6d4881c

Please sign in to comment.