Skip to content

Commit

Permalink
Merge branch 'main' into api_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyaenr authored Nov 20, 2024
2 parents 9eb9afb + 547f29b commit c8436ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/krkn_lib/k8s/krkn_kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1713,7 +1713,7 @@ def find_kraken_node(self) -> str:
return node_name

def watch_node_status(
self, node: str, status: str, timeout: int, resource_version: str
self, node: str, status: str, timeout: int
):
"""
Watch for a specific node status
Expand All @@ -1728,7 +1728,6 @@ def watch_node_status(
self.cli.list_node,
field_selector=f"metadata.name={node}",
timeout_seconds=timeout,
resource_version=f"{resource_version}",
):
conditions = [
status
Expand Down
3 changes: 3 additions & 0 deletions src/krkn_lib/models/elastic/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ class ElasticChaosRunTelemetry(Document):
total_node_count = Integer()
cloud_infrastructure = Text()
cloud_type = Text()
cluster_version = Text()
run_uuid = Text(fields={"keyword": Keyword()})

class Index:
Expand Down Expand Up @@ -192,4 +193,6 @@ def __init__(
self.total_node_count = chaos_run_telemetry.total_node_count
self.cloud_infrastructure = chaos_run_telemetry.cloud_infrastructure
self.cloud_type = chaos_run_telemetry.cloud_type
self.cluster_version = chaos_run_telemetry.cluster_version
self.run_uuid = chaos_run_telemetry.run_uuid

0 comments on commit c8436ed

Please sign in to comment.