示例#1
0
 public KubeMembershipTable(ILoggerFactory loggerFactory, IOptions <ClusterOptions> clusterOptions, k8s.IKubernetes kubernetesClient)
 {
     this._clusterOptions = clusterOptions.Value;
     this._loggerFactory  = loggerFactory;
     this._logger         = loggerFactory?.CreateLogger <KubeMembershipTable>();
     this._kubeClient     = kubernetesClient;
 }
示例#2
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;
 }