File tree 2 files changed +6
-17
lines changed
2 files changed +6
-17
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ Kubernetes Namespace : solo
205
205
* If it fails, ensure you have enough resources allocated for Docker and restart.
206
206
207
207
```
208
- $ solo network deploy --fst-chart-version 0.22.0
208
+ $ solo network deploy
209
209
210
210
******************************* Solo *********************************************
211
211
Version : 0.19.1
@@ -422,7 +422,7 @@ In a separate terminal, you may run `k9s` to view the pod status.
422
422
* Deploy helm chart with Hedera network components
423
423
424
424
```
425
- $ solo network deploy --fst-chart-version 0.22.0
425
+ $ solo network deploy
426
426
427
427
# output is similar to example-1
428
428
```
Original file line number Diff line number Diff line change @@ -162,15 +162,12 @@ export class AccountManager {
162
162
let localPort = constants . LOCAL_NODE_START_PORT
163
163
164
164
for ( const serviceObject of serviceMap . values ( ) ) {
165
- if ( ! this . isLocalhost ( ) && ! serviceObject . loadBalancerIp ) {
166
- throw new Error (
167
- `Expected service ${ serviceObject . name } to have a loadBalancerIP set for basepath ${ this . k8 . kubeClient . basePath } ` )
168
- }
169
- const host = this . isLocalhost ( ) ? '127.0.0.1' : serviceObject . loadBalancerIp
165
+ const usePortForward = ! ( serviceObject . loadBalancerIp )
166
+ const host = usePortForward ? '127.0.0.1' : serviceObject . loadBalancerIp
170
167
const port = serviceObject . grpcPort
171
- const targetPort = this . isLocalhost ( ) ? localPort : port
168
+ const targetPort = usePortForward ? localPort : port
172
169
173
- if ( this . isLocalhost ( ) ) {
170
+ if ( usePortForward ) {
174
171
this . portForwards . push ( await this . k8 . portForward ( serviceObject . podName , localPort , port ) )
175
172
}
176
173
@@ -190,14 +187,6 @@ export class AccountManager {
190
187
}
191
188
}
192
189
193
- /**
194
- * returns true if we detect that we are running against a local Kubernetes cluster
195
- * @returns boolean true if we are running against a local Kubernetes cluster, else false
196
- */
197
- isLocalhost ( ) {
198
- return this . k8 . kubeClient . basePath . includes ( '127.0.0.1' )
199
- }
200
-
201
190
/**
202
191
* Gets a Map of the Hedera node services and the attributes needed
203
192
* @param namespace the namespace of the fullstack network deployment
You can’t perform that action at this time.
0 commit comments