Functions | |
def | cleanup_client (project, network, k8s_api_manager, resource_prefix, resource_suffix, gcp_service_account) |
def | cleanup_server (project, network, k8s_api_manager, resource_prefix, resource_suffix, gcp_service_account) |
def | cleanup_td_for_gke (project, network, resource_prefix, resource_suffix) |
def | delete_k8s_resources (dry_run, k8s_resource_rules, project, network, k8s_api_manager, gcp_service_account, namespaces) |
def | delete_leaked_td_resources (dry_run, td_resource_rules, project, network, resources) |
Json | exec_gcloud (str project, *List[str] cmds) |
def | find_and_remove_leaked_k8s_resources (dry_run, project, network, gcp_service_account) |
datetime.datetime | get_expire_timestamp () |
bool | is_marked_as_keep_gce (str suffix) |
bool | is_marked_as_keep_gke (str suffix) |
None | load_keep_config () |
def | main (argv) |
def | remove_relative_resources_run_xds_tests (str project, str network, str prefix, str suffix) |
Variables | |
CLIENT_PREFIXES | |
DRY_RUN | |
GCLOUD = os.environ.get('GCLOUD', 'gcloud') | |
GCLOUD_CMD_TIMEOUT_S = datetime.timedelta(seconds=5).total_seconds() | |
Json = Any | |
KEEP_PERIOD_HOURS | |
KubernetesClientRunner = client_app.KubernetesClientRunner | |
KubernetesServerRunner = server_app.KubernetesServerRunner | |
logger = logging.getLogger(__name__) | |
string | PSM_SECURITY_PREFIX = 'xds-k8s-security' |
string | SECONDARY_ZONE = 'us-west1-b' |
SERVER_PREFIXES | |
TD_RESOURCE_PREFIXES | |
string | URL_MAP_TEST_PREFIX = 'interop-psm-url-map' |
string | ZONE = 'us-central1-a' |
def cleanup.cleanup_client | ( | project, | |
network, | |||
k8s_api_manager, | |||
resource_prefix, | |||
resource_suffix, | |||
gcp_service_account | |||
) |
Definition at line 216 of file cleanup.py.
def cleanup.cleanup_server | ( | project, | |
network, | |||
k8s_api_manager, | |||
resource_prefix, | |||
resource_suffix, | |||
gcp_service_account | |||
) |
Definition at line 240 of file cleanup.py.
def cleanup.cleanup_td_for_gke | ( | project, | |
network, | |||
resource_prefix, | |||
resource_suffix | |||
) |
Definition at line 186 of file cleanup.py.
def cleanup.delete_k8s_resources | ( | dry_run, | |
k8s_resource_rules, | |||
project, | |||
network, | |||
k8s_api_manager, | |||
gcp_service_account, | |||
namespaces | |||
) |
Definition at line 285 of file cleanup.py.
def cleanup.delete_leaked_td_resources | ( | dry_run, | |
td_resource_rules, | |||
project, | |||
network, | |||
resources | |||
) |
Definition at line 261 of file cleanup.py.
Json cleanup.exec_gcloud | ( | str | project, |
*List[str] | cmds | ||
) |
Definition at line 116 of file cleanup.py.
def cleanup.find_and_remove_leaked_k8s_resources | ( | dry_run, | |
project, | |||
network, | |||
gcp_service_account | |||
) |
Definition at line 311 of file cleanup.py.
datetime.datetime cleanup.get_expire_timestamp | ( | ) |
Definition at line 111 of file cleanup.py.
bool cleanup.is_marked_as_keep_gce | ( | str | suffix | ) |
Definition at line 102 of file cleanup.py.
bool cleanup.is_marked_as_keep_gke | ( | str | suffix | ) |
Definition at line 106 of file cleanup.py.
None cleanup.load_keep_config | ( | ) |
Definition at line 91 of file cleanup.py.
def cleanup.main | ( | argv | ) |
Definition at line 334 of file cleanup.py.
def cleanup.remove_relative_resources_run_xds_tests | ( | str | project, |
str | network, | ||
str | prefix, | ||
str | suffix | ||
) |
Removing GCP resources created by run_xds_tests.py.
Definition at line 146 of file cleanup.py.
cleanup.CLIENT_PREFIXES |
Definition at line 83 of file cleanup.py.
cleanup.DRY_RUN |
Definition at line 67 of file cleanup.py.
cleanup.GCLOUD = os.environ.get('GCLOUD', 'gcloud') |
Definition at line 53 of file cleanup.py.
cleanup.GCLOUD_CMD_TIMEOUT_S = datetime.timedelta(seconds=5).total_seconds() |
Definition at line 54 of file cleanup.py.
cleanup.Json = Any |
Definition at line 49 of file cleanup.py.
cleanup.KEEP_PERIOD_HOURS |
Definition at line 61 of file cleanup.py.
cleanup.KubernetesClientRunner = client_app.KubernetesClientRunner |
Definition at line 50 of file cleanup.py.
cleanup.KubernetesServerRunner = server_app.KubernetesServerRunner |
Definition at line 51 of file cleanup.py.
cleanup.logger = logging.getLogger(__name__) |
Definition at line 48 of file cleanup.py.
string cleanup.PSM_SECURITY_PREFIX = 'xds-k8s-security' |
Definition at line 58 of file cleanup.py.
string cleanup.SECONDARY_ZONE = 'us-west1-b' |
Definition at line 56 of file cleanup.py.
cleanup.SERVER_PREFIXES |
Definition at line 77 of file cleanup.py.
cleanup.TD_RESOURCE_PREFIXES |
Definition at line 71 of file cleanup.py.
string cleanup.URL_MAP_TEST_PREFIX = 'interop-psm-url-map' |
Definition at line 59 of file cleanup.py.
string cleanup.ZONE = 'us-central1-a' |
Definition at line 55 of file cleanup.py.