Skip to content

Commit c7e6d90

Browse files
authored
Update k8sworker.py
1 parent 377de9d commit c7e6d90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hpecp/cli/k8sworker.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ def examples(self):
183183
$ hpecp k8sworker list --query "[*] | @[?contains('10.0.1.10 10.0.1.210', ipaddr)] | [*][_links.self.href]" --output text
184184
/api/v2/worker/k8shost/5
185185
/api/v2/worker/k8shost/7
186+
187+
# Retrieve the first master node of a K8S Cluster
188+
$ hpecp k8scluster list --query "[?_links.self.href == '/api/v2/k8scluster/1'] | [0] | [k8shosts_config] | [0] | [?role == 'master'] | [0] | [node]" -o text
189+
/api/v2/worker/k8shost/7
186190
""" # noqa: E501
187191
)
188192
)

0 commit comments

Comments
 (0)