Skip to content

Commit

Permalink
Add SSH endpoints to cluster connectivity profile response. (#5260)
Browse files Browse the repository at this point in the history
* Add SSH endpoints in cluster response

* Update examples

* Add readonly true property for SSH connectivity endpoint
  • Loading branch information
srswamy-msft authored Oct 26, 2021
1 parent 830cd57 commit 2496d59
Show file tree
Hide file tree
Showing 9 changed files with 116 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,15 @@
"connectivityProfile": {
"web": {
"fqdn": "cluster1.clusterpool1.westus2.projecthilo.net"
}
},
"ssh": [
{
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-0"
},
{
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-1"
}
]
},
"kafkaProfile": {},
"sshProfile": {
Expand Down Expand Up @@ -113,7 +121,15 @@
"connectivityProfile": {
"web": {
"fqdn": "cluster1.clusterpool1.westus2.projecthilo.net"
}
},
"ssh": [
{
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-0"
},
{
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-1"
}
]
},
"kafkaProfile": {},
"sshProfile": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,15 @@
"connectivityProfile": {
"web": {
"fqdn": "sessionCluster1.cluster1.clusterpool1.westus2.projecthilo.net"
}
},
"ssh": [
{
"endpoint": "sessionCluster1.cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-0"
},
{
"endpoint": "sessionCluster1.cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-1"
}
]
},
"flinkProfile": {},
"sshProfile": {
Expand Down Expand Up @@ -100,7 +108,15 @@
"connectivityProfile": {
"web": {
"fqdn": "sessionCluster1.cluster1.clusterpool1.westus2.projecthilo.net"
}
},
"ssh": [
{
"endpoint": "sessionCluster1.cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-0"
},
{
"endpoint": "sessionCluster1.cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-1"
}
]
},
"flinkProfile": {},
"sshProfile": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@
"connectivityProfile": {
"web": {
"fqdn": "cluster1.clusterpool1.westus2.projecthilo.net"
}
},
"ssh": [
{
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-0"
},
{
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-1"
}
]
},
"kafkaProfile": {},
"sshProfile": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@
"connectivityProfile": {
"web": {
"fqdn": "sessionCluster1.cluster1.clusterpool1.westus2.projecthilo.net"
}
},
"ssh": [
{
"endpoint": "sessionCluster1.cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-0"
},
{
"endpoint": "sessionCluster1.cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-1"
}
]
},
"flinkProfile": {},
"sshProfile": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,15 @@
"connectivityProfile": {
"web": {
"fqdn": "cluster1.clusterpool1.westus2.projecthilo.net"
}
},
"ssh": [
{
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-0"
},
{
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-1"
}
]
},
"kafkaProfile": {},
"sshProfile": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,15 @@
"connectivityProfile": {
"web": {
"fqdn": "sessionCluster1.cluster1.clusterpool1.westus2.projecthilo.net"
}
},
"ssh": [
{
"endpoint": "sessionCluster1.cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-0"
},
{
"endpoint": "sessionCluster1.cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-1"
}
]
},
"flinkProfile": {},
"sshProfile": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,15 @@
"connectivityProfile": {
"web": {
"fqdn": "cluster1.clusterpool1.westus2.projecthilo.net"
}
},
"ssh": [
{
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-0"
},
{
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-1"
}
]
},
"kafkaProfile": {},
"sshProfile": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@
"connectivityProfile": {
"web": {
"fqdn": "sessionCluster1.cluster1.clusterpool1.westus2.projecthilo.net"
}
},
"ssh": [
{
"endpoint": "sessionCluster1.cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-0"
},
{
"endpoint": "sessionCluster1.cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/pod-1"
}
]
},
"flinkProfile": {},
"sshProfile": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1562,28 +1562,50 @@
"description": "Web connectivity endpoint details.",
"allOf": [
{
"$ref": "#/definitions/ConnectivityEndpoint"
"$ref": "#/definitions/WebConnectivityEndpoint"
}
]
},
"ssh": {
"type": "array",
"description": "List of SSH connectivity endpoints.",
"items": {
"$ref": "#/definitions/SshConnectivityEndpoint"
}
}
},
"readOnly": true
},
"ConnectivityEndpoint": {
"WebConnectivityEndpoint": {
"type": "object",
"description": "Connectivity endpoint details.",
"description": "Web connectivity endpoint details.",
"required": [
"fqdn"
],
"properties": {
"fqdn": {
"type": "string",
"description": "FQDN for connecting to the endpoint.",
"description": "Web connectivity endpoint.",
"example": "clusterName.clusterPoolName.eastus.projecthilo.net"
}
},
"readOnly": true
},
"SshConnectivityEndpoint": {
"type": "object",
"description": "SSH connectivity endpoint details.",
"required": [
"endpoint"
],
"properties": {
"endpoint": {
"type": "string",
"description": "SSH connectivity endpoint.",
"example": "clusterName.clusterPoolName.eastus.projecthilo.net/ssh/host/podPrefix-0"
}
},
"readOnly": true
},
"ClusterProfile": {
"type": "object",
"required": [
Expand Down

0 comments on commit 2496d59

Please sign in to comment.