File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 )
1515
1616 druid_cluster_name = sys .argv [1 ]
17+ namespace = sys .argv [2 ]
1718
1819 druid_role_ports = {
1920 "broker" : 8282 ,
2425 }
2526
2627 for role , port in druid_role_ports .items ():
27- url = (
28- f"https://{ druid_cluster_name } -{ role } -default-headless:{ port } /status/health"
29- )
28+ url = f"https://{ druid_cluster_name } -{ role } -default-headless.{ namespace } .svc.cluster.local:{ port } /status/health"
3029 count = 1
3130
3231 # As this script is intended to be executed by Kuttl which is in charge of overall test timeouts it is ok
Original file line number Diff line number Diff line change 22apiVersion : kuttl.dev/v1beta1
33kind : TestAssert
44commands :
5- - script : kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py derby-druid
5+ - script : kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py derby-druid $NAMESPACE
66timeout : 300
Original file line number Diff line number Diff line change 22apiVersion : kuttl.dev/v1beta1
33kind : TestAssert
44commands :
5- - script : kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py derby-druid
5+ - script : kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py derby-druid $NAMESPACE
66timeout : 300
Original file line number Diff line number Diff line change 22apiVersion : kuttl.dev/v1beta1
33kind : TestAssert
44commands :
5- - script : kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py derby-druid
5+ - script : kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py derby-druid $NAMESPACE
66timeout : 300
Original file line number Diff line number Diff line change 22apiVersion : kuttl.dev/v1beta1
33kind : TestAssert
44commands :
5- - script : kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py druid-s3-deep-storage
5+ - script : kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py druid-s3-deep-storage $NAMESPACE
66 timeout : 300
Original file line number Diff line number Diff line change 22apiVersion : kuttl.dev/v1beta1
33kind : TestAssert
44commands :
5- - script : kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py druid
5+ - script : kubectl exec -n $NAMESPACE checks-0 -- python /tmp/healthcheck.py druid $NAMESPACE
66timeout : 300
You can’t perform that action at this time.
0 commit comments