Beispiel #1
0
 public static void CopyDirectoryToPod(this Kubernetes client, V1Pod pod, string container, string sourceDirectoryPath, string destinationDirectoyPath, CancellationToken cancellationToken = default(CancellationToken))
 {
     if (!Directory.Exists(sourceDirectoryPath))
     {
         throw new DirectoryNotFoundException($"Directory {sourceDirectoryPath} does not exist");
     }
     client.CopyFileToPod(pod, container, sourceDirectoryPath, destinationDirectoyPath, cancellationToken);
 }