public static void KubectlScale(this ICakeContext context, KubectlScaleSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var arguments = new string[0]; var runner = new GenericRunner <KubectlScaleSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); runner.Run("scale", settings ?? new KubectlScaleSettings(), arguments); }
public static IEnumerable <string> KubectlCreateClusterrolebindingWithResult(this ICakeContext context, KubectlCreateClusterrolebindingSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var arguments = new string[0]; var runner = new GenericRunner <KubectlCreateClusterrolebindingSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); return(runner.RunWithResult("create clusterrolebinding", settings ?? new KubectlCreateClusterrolebindingSettings(), arguments)); }
public static void KubectlCreateSecretDockerRegistry(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); runner.Run("create secret docker-registry", settings ?? new KubectlCreateSecretDockerRegistrySettings(), arguments); }