Esempio n. 1
0
        public static void KubectlRolloutPause(this ICakeContext context, KubectlRolloutPauseSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            var arguments = new string[0];
            var runner    = new GenericRunner <KubectlRolloutPauseSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Run("rollout pause", settings ?? new KubectlRolloutPauseSettings(), arguments);
        }
Esempio n. 2
0
        public static void KubectlConfigDeleteCluster(this ICakeContext context, KubectlConfigDeleteClusterSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            var arguments = new string[0];
            var runner    = new GenericRunner <KubectlConfigDeleteClusterSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Run("config delete-cluster", settings ?? new KubectlConfigDeleteClusterSettings(), arguments);
        }
        public static void KubectlCreateServiceLoadbalancer(this ICakeContext context, KubectlCreateServiceLoadbalancerSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            var arguments = new string[0];
            var runner    = new GenericRunner <KubectlCreateServiceLoadbalancerSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Run("create service loadbalancer", settings ?? new KubectlCreateServiceLoadbalancerSettings(), arguments);
        }