public KubeGatewayListProvider(ILoggerFactory loggerFactory, IOptions <KubeGatewayOptions> options, IOptions <ClusterOptions> clusterOptions, IOptions <GatewayOptions> gatewayOptions)
 {
     this._loggerFactory = loggerFactory;
     this.MaxStaleness   = gatewayOptions.Value.GatewayListRefreshPeriod;
     this._logger        = loggerFactory?.CreateLogger <KubeGatewayListProvider>();
     this._options       = options.Value;
     this._clusterId     = clusterOptions.Value.ClusterId;
 }
 public KubeGatewayListProvider(ILoggerFactory loggerFactory, IOptions <KubeGatewayOptions> options, ClientConfiguration clientConfiguration)
 {
     this._loggerFactory = loggerFactory;
     this._maxStaleness  = clientConfiguration.GatewayListRefreshPeriod;
     this._logger        = loggerFactory?.CreateLogger <KubeGatewayListProvider>();
     this._options       = options.Value;
     this._clusterId     = clientConfiguration.ClusterId;
 }
Esempio n. 3
0
 public KubeGatewayListProvider(
     ILoggerFactory loggerFactory,
     IOptions <ClusterOptions> clusterOptions,
     IOptions <GatewayOptions> gatewayOptions,
     IOptions <KubeGatewayOptions> kubeGatewayOptions,
     k8s.IKubernetes kubernetesClient
     )
 {
     this._loggerFactory      = loggerFactory;
     this.MaxStaleness        = gatewayOptions.Value.GatewayListRefreshPeriod;
     this._logger             = loggerFactory?.CreateLogger <KubeGatewayListProvider>();
     this._kube               = kubernetesClient;
     this._clusterId          = clusterOptions.Value.ClusterId;
     this._kubeGatewayOptions = kubeGatewayOptions.Value;
 }