internal KubernetesProviderBase(IKubernetes kubernetes, KubernetesConfigSourceSettings settings, CancellationToken token = default)
        {
            if (kubernetes is null)
            {
                throw new ArgumentNullException(nameof(kubernetes));
            }

            if (settings is null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            K8sClient         = kubernetes;
            Settings          = settings;
            CancellationToken = token;
        }
 internal KubernetesSecretProvider(IKubernetes kubernetes, KubernetesConfigSourceSettings settings, CancellationToken cancellationToken = default)
     : base(kubernetes, settings, cancellationToken)
 {
     Settings.Namespace ??= "default";
 }
Exemple #3
0
 internal KubernetesSecretSource(IKubernetes kubernetesClient, KubernetesConfigSourceSettings settings, CancellationToken cancellationToken = default)
 {
     K8sClient      = kubernetesClient;
     ConfigSettings = settings;
     CancelToken    = cancellationToken;
 }
Exemple #4
0
 internal KubernetesConfigMapSource(IKubernetes kubernetesClient, KubernetesConfigSourceSettings settings)
 {
     K8sClient      = kubernetesClient;
     ConfigSettings = settings;
 }