Ejemplo n.º 1
0
        public EdgeDeploymentOperator(
            ResourceName resourceName,
            string deviceNamespace,
            IKubernetes client,
            IEdgeDeploymentController controller)
        {
            this.deviceNamespace = Preconditions.CheckNonWhiteSpace(deviceNamespace, nameof(deviceNamespace));
            this.resourceName    = Preconditions.CheckNotNull(resourceName, nameof(resourceName));

            this.client        = Preconditions.CheckNotNull(client, nameof(client));
            this.operatorWatch = Option.None <Watcher <EdgeDeploymentDefinition> >();
            this.controller    = Preconditions.CheckNotNull(controller, nameof(controller));
        }
Ejemplo n.º 2
0
        public EdgeDeploymentOperator(
            ResourceName resourceName,
            string deviceNamespace,
            IKubernetes client,
            IEdgeDeploymentController controller)
        {
            this.deviceNamespace = Preconditions.CheckNonWhiteSpace(deviceNamespace, nameof(deviceNamespace));
            this.resourceName    = Preconditions.CheckNotNull(resourceName, nameof(resourceName));

            this.client        = Preconditions.CheckNotNull(client, nameof(client));
            this.operatorWatch = Option.None <Watcher <EdgeDeploymentDefinition> >();
            this.controller    = Preconditions.CheckNotNull(controller, nameof(controller));

            this.serializerSettings = EdgeDeploymentSerialization.SerializerSettings;
            this.currentModules     = ModuleSet.Empty;
            this.currentStatus      = DefaultStatus;
        }