Skip to content

Commit

Permalink
Remove unused timeout and timeout_seconds from Resource (#2256)
Browse files Browse the repository at this point in the history
  • Loading branch information
myakove authored Dec 30, 2024
1 parent 1cf137c commit fd8755d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ocp_resources/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,6 @@ def __init__(
name: str = "",
client: DynamicClient | None = None,
teardown: bool = True,
timeout: int = TIMEOUT_4MINUTES,
privileged_client: DynamicClient | None = None,
yaml_file: str = "",
delete_timeout: int = TIMEOUT_4MINUTES,
Expand All @@ -408,7 +407,6 @@ def __init__(
context: str = "",
label: dict[str, str] | None = None,
annotations: dict[str, str] | None = None,
timeout_seconds: int = TIMEOUT_1MINUTE,
api_group: str = "",
hash_log_data: bool = True,
ensure_exists: bool = False,
Expand All @@ -424,7 +422,6 @@ def __init__(
name (str): Resource name
client (DynamicClient): Dynamic client for connecting to a remote cluster
teardown (bool): Indicates if this resource would need to be deleted
timeout (int): timeout for a get api call
privileged_client (DynamicClient): Instance of Dynamic client
yaml_file (str): yaml file for the resource
delete_timeout (int): timeout associated with delete action
Expand All @@ -433,7 +430,6 @@ def __init__(
node_selector_labels (str): node selector labels
config_file (str): Path to config file for connecting to remote cluster.
context (str): Context name for connecting to remote cluster.
timeout_seconds (int): timeout for a get api call, call out be terminated after this many seconds
label (dict): Resource labels
annotations (dict[str, str] | None): Resource annotations
api_group (str): Resource API group; will overwrite API group definition in resource class
Expand All @@ -455,7 +451,6 @@ def __init__(

self.name = name
self.teardown = teardown
self.timeout = timeout
self.privileged_client = client
self.yaml_file = yaml_file
self.kind_dict = kind_dict
Expand All @@ -473,7 +468,6 @@ def __init__(
self.context = context
self.label = label
self.annotations = annotations
self.timeout_seconds = timeout_seconds
self.client: DynamicClient = client or get_client(config_file=self.config_file, context=self.context)
self.api_group: str = api_group or self.api_group
self.hash_log_data = hash_log_data
Expand Down Expand Up @@ -1270,7 +1264,6 @@ def __init__(
name: str = "",
namespace: str = "",
teardown: bool = True,
timeout: int = TIMEOUT_4MINUTES,
yaml_file: str = "",
delete_timeout: int = TIMEOUT_4MINUTES,
client: DynamicClient | None = None,
Expand All @@ -1281,7 +1274,6 @@ def __init__(
name=name,
client=client,
teardown=teardown,
timeout=timeout,
yaml_file=yaml_file,
delete_timeout=delete_timeout,
**kwargs,
Expand Down

0 comments on commit fd8755d

Please sign in to comment.