31 строка
971 B
Go
31 строка
971 B
Go
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
package controllers
|
|
|
|
import (
|
|
"context"
|
|
|
|
ctrl "sigs.k8s.io/controller-runtime"
|
|
|
|
azurev1alpha1 "github.com/Azure/azure-service-operator/api/v1alpha1"
|
|
)
|
|
|
|
// MySQLVNetRuleReconciler reconciles a MySQLVNetRule object
|
|
type MySQLVNetRuleReconciler struct {
|
|
Reconciler *AsyncReconciler
|
|
}
|
|
|
|
// +kubebuilder:rbac:groups=azure.microsoft.com,resources=mysqlvnetrules,verbs=get;list;watch;create;update;patch;delete
|
|
// +kubebuilder:rbac:groups=azure.microsoft.com,resources={mysqlvnetrules/status,mysqlvnetrules/finalizers},verbs=get;update;patch
|
|
|
|
func (r *MySQLVNetRuleReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
|
|
return r.Reconciler.Reconcile(ctx, req, &azurev1alpha1.MySQLVNetRule{})
|
|
}
|
|
|
|
func (r *MySQLVNetRuleReconciler) SetupWithManager(mgr ctrl.Manager) error {
|
|
return ctrl.NewControllerManagedBy(mgr).
|
|
For(&azurev1alpha1.MySQLVNetRule{}).
|
|
Complete(r)
|
|
}
|