public static IEnumerable<string> KubectlPortForwardWithResult(this ICakeContext context, KubectlPortForwardSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var arguments = new string[0]; var runner = new GenericRunner<KubectlPortForwardSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); return runner.RunWithResult("port-forward", settings ?? new KubectlPortForwardSettings(), arguments); }
public static IEnumerable <string> KubectlCertificateApproveWithResult(this ICakeContext context, KubectlCertificateApproveSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var arguments = new string[0]; var runner = new GenericRunner <KubectlCertificateApproveSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); return(runner.RunWithResult("certificate approve", settings ?? new KubectlCertificateApproveSettings(), arguments)); }
public static IEnumerable <string> KubectlApplyEditLastAppliedWithResult(this ICakeContext context, KubectlApplyEditLastAppliedSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var arguments = new string[0]; var runner = new GenericRunner <KubectlApplyEditLastAppliedSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); return(runner.RunWithResult("apply edit-last-applied", settings ?? new KubectlApplyEditLastAppliedSettings(), arguments)); }
public static IEnumerable <string> KubectlCreateSecretDockerRegistryWithResult(this ICakeContext context, KubectlCreateSecretDockerRegistrySettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var arguments = new string[0]; var runner = new GenericRunner <KubectlCreateSecretDockerRegistrySettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); return(runner.RunWithResult("create secret docker-registry", settings ?? new KubectlCreateSecretDockerRegistrySettings(), arguments)); }