-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MTPNC reconciler for cache population in Swift V2 (#2164)
add mtpnc watcher Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
65 additions
and
37 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
cns/kubecontroller/multitenantpodnetworkconfig/reconciler.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package multitenantpodnetworkconfig | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/Azure/azure-container-networking/crd/multitenancy/api/v1alpha1" | ||
"github.com/pkg/errors" | ||
ctrl "sigs.k8s.io/controller-runtime" | ||
"sigs.k8s.io/controller-runtime/pkg/reconcile" | ||
) | ||
|
||
// SetupWithManager registers a noop MTPNC reconciler | ||
func SetupWithManager(mgr ctrl.Manager) error { | ||
err := ctrl.NewControllerManagedBy(mgr). | ||
For(&v1alpha1.MultitenantPodNetworkConfig{}). | ||
Complete(reconcile.Func(func(context.Context, ctrl.Request) (ctrl.Result, error) { return ctrl.Result{}, nil })) | ||
return errors.Wrap(err, "failed to set up mtpnc reconciler") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters