Skip to content

Commit

Permalink
[k8s] Put IDeploymentBackupSource back in k8s module. (Azure#2349)
Browse files Browse the repository at this point in the history
* Put IDeploymentBackupSource back in k8s module.

* Update edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Service/modules/KubernetesModule.cs

Co-Authored-By: Denis Molokanov <[email protected]>
  • Loading branch information
darobs and dmolokanov authored Jan 22, 2020
1 parent 892c0cc commit 8d65c57
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,17 @@ protected override void Load(ContainerBuilder builder)
.As<IRuntimeInfoSource>()
.SingleInstance();

// Task<IDeploymentBackupSource>
builder.Register(
c =>
{
var serde = c.Resolve<ISerde<DeploymentConfigInfo>>();
IDeploymentBackupSource backupSource = new DeploymentSecretBackup(Constants.EdgeAgentBackupName, this.deviceNamespace, this.moduleOwner, serde, c.Resolve<IKubernetes>());
return Task.FromResult(backupSource);
})
.As<Task<IDeploymentBackupSource>>()
.SingleInstance();

// KubernetesDeploymentProvider
builder.Register(
c => new KubernetesDeploymentMapper(
Expand Down

0 comments on commit 8d65c57

Please sign in to comment.