Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResourceInformer{TResource}" /> class.
 /// </summary>
 /// <param name="client">The client.</param>
 /// <param name="hostApplicationLifetime">The host application lifetime.</param>
 /// <param name="logger">The logger.</param>
 public ResourceInformer(
     IKubernetes client,
     IHostApplicationLifetime hostApplicationLifetime,
     ILogger <ResourceInformer <TResource> > logger)
     : base(hostApplicationLifetime, logger)
 {
     _client = client.AnyResourceKind();
     _names  = GroupApiVersionKind.From <TResource>();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="OperatorReconciler{TResource}" /> class.
 /// </summary>
 /// <param name="resourceSerializers">The resource serializers.</param>
 /// <param name="resourcePatcher">The patch generator.</param>
 /// <param name="generator">The generator.</param>
 /// <param name="client">The client.</param>
 /// <param name="logger">The logger.</param>
 public OperatorReconciler(
     IResourceSerializers resourceSerializers,
     IKubernetes client,
     IOperatorGenerator <TResource> generator,
     IResourceKindManager resourceKindManager,
     IResourcePatcher resourcePatcher,
     ILogger <OperatorReconciler <TResource> > logger)
 {
     _resourceSerializers = resourceSerializers;
     _resourceClient      = client.AnyResourceKind();
     _generator           = generator;
     _resourceKindManager = resourceKindManager;
     _resourcePatcher     = resourcePatcher;
     _logger = logger;
 }