File tree Expand file tree Collapse file tree 6 files changed +14
-9
lines changed
kubernetes/samples/scripts Expand file tree Collapse file tree 6 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -207,9 +207,10 @@ function getKubernetesClusterIP {
207
207
local SVR_ADDR=` eval ${SVR_ADDR_CMD} `
208
208
209
209
# Server address is expected to be of the form http://address:port. Delimit
210
- # string on the colon to obtain the address. Leave the "//" on the resulting string.
210
+ # string on the colon to obtain the address.
211
211
local array=(${SVR_ADDR//:/ } )
212
- K8S_IP=" ${array[1]} "
212
+ K8S_IP=" ${array[1]/ \/\/ / } "
213
+
213
214
}
214
215
215
216
#
@@ -245,6 +246,11 @@ function createFiles {
245
246
if [ " ${exposeAdminT3Channel} " = true ]; then
246
247
exposeAdminT3ChannelPrefix=" ${enabledPrefix} "
247
248
exposeAnyChannelPrefix=" ${enabledPrefix} "
249
+ # set t3PublicAddress if not set
250
+ if [ -z " ${t3PublicAddress} " ]; then
251
+ getKubernetesClusterIP
252
+ t3PublicAddress=" ${K8S_IP} "
253
+ fi
248
254
else
249
255
exposeAdminT3ChannelPrefix=" ${disabledPrefix} "
250
256
fi
Original file line number Diff line number Diff line change @@ -342,7 +342,6 @@ function validateCommonInputs {
342
342
clusterName \
343
343
managedServerNameBase \
344
344
namespace \
345
- t3PublicAddress \
346
345
includeServerOutInPodLog \
347
346
version
348
347
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ t3ChannelPort: 30012
92
92
# kubernetes server address, which you can get by running "kubectl cluster-info". If this
93
93
# value is not set to that address, WLST will not be able to connect from outside the
94
94
# kubernetes cluster.
95
- t3PublicAddress : kubernetes
95
+ # t3PublicAddress:
96
96
97
97
# Boolean to indicate if the channel should be exposed as a service
98
98
exposeAdminT3Channel : false
Original file line number Diff line number Diff line change @@ -219,10 +219,10 @@ function printSummary {
219
219
echo " Domain ${domainName} was created and will be started by the WebLogic Kubernetes Operator"
220
220
echo " "
221
221
if [ " ${exposeAdminNodePort} " = true ]; then
222
- echo " Administration console access is available at http:${K8S_IP} :${adminNodePort} /console"
222
+ echo " Administration console access is available at http:// ${K8S_IP} :${adminNodePort} /console"
223
223
fi
224
224
if [ " ${exposeAdminT3Channel} " = true ]; then
225
- echo " T3 access is available at t3:${K8S_IP} :${t3ChannelPort} "
225
+ echo " T3 access is available at t3:// ${K8S_IP} :${t3ChannelPort} "
226
226
fi
227
227
echo " The following files were generated:"
228
228
echo " ${domainOutputDir} /create-domain-inputs.yaml"
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ t3ChannelPort: 30012
76
76
# kubernetes server address, which you can get by running "kubectl cluster-info". If this
77
77
# value is not set to that address, WLST will not be able to connect from outside the
78
78
# kubernetes cluster.
79
- t3PublicAddress : kubernetes
79
+ # t3PublicAddress:
80
80
81
81
# Boolean to indicate if the channel should be exposed as a service
82
82
exposeAdminT3Channel : false
Original file line number Diff line number Diff line change @@ -243,10 +243,10 @@ function printSummary {
243
243
echo " Domain ${domainName} was created and will be started by the WebLogic Kubernetes Operator"
244
244
echo " "
245
245
if [ " ${exposeAdminNodePort} " = true ]; then
246
- echo " Administration console access is available at http:${K8S_IP} :${adminNodePort} /console"
246
+ echo " Administration console access is available at http:// ${K8S_IP} :${adminNodePort} /console"
247
247
fi
248
248
if [ " ${exposeAdminT3Channel} " = true ]; then
249
- echo " T3 access is available at t3:${K8S_IP} :${t3ChannelPort} "
249
+ echo " T3 access is available at t3:// ${K8S_IP} :${t3ChannelPort} "
250
250
fi
251
251
echo " The following files were generated:"
252
252
echo " ${domainOutputDir} /create-domain-inputs.yaml"
You can’t perform that action at this time.
0 commit comments