**Update**

We discussed and decide this CLI should always only clean up pods created by Airflow.

<hr>

### Description

Currently command `kubernetes cleanup-pods` cleans up Pods that meet specific conditions in a given namespace.

Underlying code: https://github.com/apache/airflow/blob/2.0.1/airflow/cli/commands/kubernetes_command.py#L70

### Use case / motivation

The problem to me is: users may have other non-Airflow stuff running in this specific namespace, and they may want to have different strategy/logic for Pod cleaning-up for these non-Airflow pods.

We may want to have an additional boolean flag for this command, like `--only-airflow-pods`, so that users can decide if they only want to clean up Airflow-created Pods.

It should not be hard to identify Airflow-created pods, given the specific labels Airflow adds to the Pods it creates (https://github.com/apache/airflow/blob/2.0.1/airflow/kubernetes/pod_generator.py#L385)




tests/cli/commands/test_kubernetes_command.py
@classmethod
    def setUpClass(cls):
        cls.parser = cli_parser.get_parser()
    def test_generate_dag_yaml(self):
        with tempfile.TemporaryDirectory("airflow_dry_run_test/") as directory:
            file_name = "miscellaneous_test_dag_run_after_loop_2020-11-03T00_00_00_plus_00_00.yml"
            kubernetes_command.generate_pod_yaml(
                self.parser.parse_args(
                    [
                        'kubernetes',
                        'generate-dag-yaml',
                        'miscellaneous_test_dag',
                        "2020-11-03",
                        "--output-path",
                        directory,
                    ]
                )
            )
            assert len(os.listdir(directory)) == 1
            out_dir = directory + "/airflow_yaml_output/"
            assert len(os.listdir(out_dir)) == 6
            assert os.path.isfile(out_dir + file_name)
            assert os.stat(out_dir + file_name).st_size > 0
class TestCleanUpPodsCommand(unittest.TestCase):