Public Member Functions | |
def | __init__ (self, KubernetesApiManager api, str name) |
def | apply_manifest (self, manifest) |
def | delete (self, grace_period_seconds=DELETE_GRACE_PERIOD_SEC) |
def | delete_deployment (self, name, grace_period_seconds=DELETE_GRACE_PERIOD_SEC) |
def | delete_service (self, name, grace_period_seconds=DELETE_GRACE_PERIOD_SEC) |
def | delete_service_account (self, name, grace_period_seconds=DELETE_GRACE_PERIOD_SEC) |
V1Namespace | get (self) |
V1Deployment | get_deployment (self, name) |
client.V1Pod | get_pod (self, name) |
V1Service | get_service (self, name) |
V1Service | get_service_account (self, name) |
Tuple[str, List[str]] | get_service_neg (self, str service_name, int service_port) |
List[V1Pod] | list_deployment_pods (self, V1Deployment deployment) |
List[V1Pod] | list_pods_with_labels (self, dict labels) |
PortForwarder | port_forward_pod (self, V1Pod pod, int remote_port, Optional[int] local_port=None, Optional[str] local_address=None) |
def | wait_for_deployment_available_replicas (self, name, count=1, timeout_sec=WAIT_MEDIUM_TIMEOUT_SEC, wait_sec=WAIT_MEDIUM_SLEEP_SEC) |
def | wait_for_deployment_deleted (self, str deployment_name, timeout_sec=WAIT_MEDIUM_TIMEOUT_SEC, wait_sec=WAIT_MEDIUM_SLEEP_SEC) |
def | wait_for_namespace_deleted (self, timeout_sec=WAIT_LONG_TIMEOUT_SEC, wait_sec=WAIT_LONG_SLEEP_SEC) |
def | wait_for_pod_started (self, pod_name, timeout_sec=WAIT_SHORT_TIMEOUT_SEC, wait_sec=WAIT_SHORT_SLEEP_SEC) |
def | wait_for_service_account_deleted (self, str name, timeout_sec=WAIT_SHORT_TIMEOUT_SEC, wait_sec=WAIT_SHORT_SLEEP_SEC) |
def | wait_for_service_deleted (self, str name, timeout_sec=WAIT_SHORT_TIMEOUT_SEC, wait_sec=WAIT_SHORT_SLEEP_SEC) |
def | wait_for_service_neg (self, str name, timeout_sec=WAIT_SHORT_TIMEOUT_SEC, wait_sec=WAIT_SHORT_SLEEP_SEC) |
Public Attributes | |
api | |
name | |
Static Public Attributes | |
int | |
string | NEG_STATUS_META = 'cloud.google.com/neg-status' |
Static Private Member Functions | |
def | _pod_started (V1Pod pod) |
def | _replicas_available (deployment, count) |
def framework.infrastructure.k8s.KubernetesNamespace.__init__ | ( | self, | |
KubernetesApiManager | api, | ||
str | name | ||
) |
|
staticprivate |
def framework.infrastructure.k8s.KubernetesNamespace.apply_manifest | ( | self, | |
manifest | |||
) |
def framework.infrastructure.k8s.KubernetesNamespace.delete | ( | self, | |
grace_period_seconds = DELETE_GRACE_PERIOD_SEC |
|||
) |
def framework.infrastructure.k8s.KubernetesNamespace.delete_deployment | ( | self, | |
name, | |||
grace_period_seconds = DELETE_GRACE_PERIOD_SEC |
|||
) |
def framework.infrastructure.k8s.KubernetesNamespace.delete_service | ( | self, | |
name, | |||
grace_period_seconds = DELETE_GRACE_PERIOD_SEC |
|||
) |
def framework.infrastructure.k8s.KubernetesNamespace.delete_service_account | ( | self, | |
name, | |||
grace_period_seconds = DELETE_GRACE_PERIOD_SEC |
|||
) |
V1Namespace framework.infrastructure.k8s.KubernetesNamespace.get | ( | self | ) |
V1Deployment framework.infrastructure.k8s.KubernetesNamespace.get_deployment | ( | self, | |
name | |||
) |
client.V1Pod framework.infrastructure.k8s.KubernetesNamespace.get_pod | ( | self, | |
name | |||
) |
V1Service framework.infrastructure.k8s.KubernetesNamespace.get_service | ( | self, | |
name | |||
) |
V1Service framework.infrastructure.k8s.KubernetesNamespace.get_service_account | ( | self, | |
name | |||
) |
Tuple[str, List[str]] framework.infrastructure.k8s.KubernetesNamespace.get_service_neg | ( | self, | |
str | service_name, | ||
int | service_port | ||
) |
List[V1Pod] framework.infrastructure.k8s.KubernetesNamespace.list_deployment_pods | ( | self, | |
V1Deployment | deployment | ||
) |
List[V1Pod] framework.infrastructure.k8s.KubernetesNamespace.list_pods_with_labels | ( | self, | |
dict | labels | ||
) |
PortForwarder framework.infrastructure.k8s.KubernetesNamespace.port_forward_pod | ( | self, | |
V1Pod | pod, | ||
int | remote_port, | ||
Optional[int] | local_port = None , |
||
Optional[str] | local_address = None |
||
) |
def framework.infrastructure.k8s.KubernetesNamespace.wait_for_deployment_available_replicas | ( | self, | |
name, | |||
count = 1 , |
|||
timeout_sec = WAIT_MEDIUM_TIMEOUT_SEC , |
|||
wait_sec = WAIT_MEDIUM_SLEEP_SEC |
|||
) |
def framework.infrastructure.k8s.KubernetesNamespace.wait_for_deployment_deleted | ( | self, | |
str | deployment_name, | ||
timeout_sec = WAIT_MEDIUM_TIMEOUT_SEC , |
|||
wait_sec = WAIT_MEDIUM_SLEEP_SEC |
|||
) |
def framework.infrastructure.k8s.KubernetesNamespace.wait_for_namespace_deleted | ( | self, | |
timeout_sec = WAIT_LONG_TIMEOUT_SEC , |
|||
wait_sec = WAIT_LONG_SLEEP_SEC |
|||
) |
def framework.infrastructure.k8s.KubernetesNamespace.wait_for_pod_started | ( | self, | |
pod_name, | |||
timeout_sec = WAIT_SHORT_TIMEOUT_SEC , |
|||
wait_sec = WAIT_SHORT_SLEEP_SEC |
|||
) |
def framework.infrastructure.k8s.KubernetesNamespace.wait_for_service_account_deleted | ( | self, | |
str | name, | ||
timeout_sec = WAIT_SHORT_TIMEOUT_SEC , |
|||
wait_sec = WAIT_SHORT_SLEEP_SEC |
|||
) |
def framework.infrastructure.k8s.KubernetesNamespace.wait_for_service_deleted | ( | self, | |
str | name, | ||
timeout_sec = WAIT_SHORT_TIMEOUT_SEC , |
|||
wait_sec = WAIT_SHORT_SLEEP_SEC |
|||
) |
def framework.infrastructure.k8s.KubernetesNamespace.wait_for_service_neg | ( | self, | |
str | name, | ||
timeout_sec = WAIT_SHORT_TIMEOUT_SEC , |
|||
wait_sec = WAIT_SHORT_SLEEP_SEC |
|||
) |
|
static |