public HealthChecksOperator(
     IKubernetes client,
     IHealthChecksController controller,
     HealthCheckServiceWatcher serviceWatcher,
     ILogger <K8sOperator> logger)
 {
     _client         = client ?? throw new ArgumentNullException(nameof(client));
     _controller     = controller ?? throw new ArgumentNullException(nameof(controller));
     _serviceWatcher = serviceWatcher;
     _logger         = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Beispiel #2
0
        public HealthChecksOperator(
            IKubernetes client,
            IHealthChecksController controller,
            HealthCheckServiceWatcher serviceWatcher,
            OperatorDiagnostics diagnostics,
            ILogger <K8sOperator> logger)
        {
            _client         = client ?? throw new ArgumentNullException(nameof(client));
            _controller     = controller ?? throw new ArgumentNullException(nameof(controller));
            _serviceWatcher = serviceWatcher ?? throw new ArgumentNullException(nameof(serviceWatcher));
            _diagnostics    = diagnostics ?? throw new ArgumentNullException(nameof(diagnostics));
            _logger         = logger ?? throw new ArgumentNullException(nameof(logger));

            _channel = Channel.CreateUnbounded <ResourceWatch>(new UnboundedChannelOptions
            {
                SingleWriter = true,
                SingleReader = true
            });
        }