Skip to content

Commit

Permalink
add the external scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolik committed Aug 8, 2024
1 parent e732e1b commit ccfd43a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import (

hyperspikeiov1 "hyperspike.io/gitea-operator/api/v1"
"hyperspike.io/gitea-operator/internal/controller"
valkeyv1 "hyperspike.io/valkey-operator/api/v1"
// +kubebuilder:scaffold:imports
)

Expand All @@ -52,6 +53,7 @@ func init() {

utilruntime.Must(zalandov1.AddToScheme(scheme))
utilruntime.Must(hyperspikeiov1.AddToScheme(scheme))
utilruntime.Must(valkeyv1.AddToScheme(scheme))
// +kubebuilder:scaffold:scheme
}

Expand Down
1 change: 1 addition & 0 deletions internal/controller/gitea_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,7 @@ func (r *GiteaReconciler) SetupWithManager(mgr ctrl.Manager) error {
Owns(&zalandov1.Postgresql{}).
Owns(&appsv1.StatefulSet{}).
Owns(&netv1.Ingress{}).
Owns(&valkeyv1.Valkey{}).
For(&hyperv1.Gitea{}).
Complete(r)
}

0 comments on commit ccfd43a

Please sign in to comment.