Skip to content

Commit 700471e

Browse files
committed
Fix job error if exposeAdminT3Channel=false and no t3PublicAddress is commented out
1 parent b1dbae4 commit 700471e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

kubernetes/samples/scripts/create-fmw-infrastructure-domain/common/createFMWDomain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def usage():
230230
'-rcuDb <rcu-database> -rcuPrefix <rcu-prefix> -rcuSchemaPwd <rcu-schema-password> ' \
231231
'-adminListenPort <adminListenPort> -adminName <adminName> ' \
232232
'-managedNameBase <managedNameBase> -managedServerPort <managedServerPort> -prodMode <prodMode> ' \
233-
'-managedServerCount <managedCount> -clusterName <clusterName>' \
233+
'-managedServerCount <managedCount> -clusterName <clusterName> ' \
234234
'-exposeAdminT3Channel <quoted true or false> -t3ChannelPublicAddress <address of the cluster> ' \
235235
'-t3ChannelPort <t3 channel port> '
236236
sys.exit(0)

kubernetes/samples/scripts/create-fmw-infrastructure-domain/create-domain.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ function initialize {
128128
validateCommonInputs
129129

130130
initOutputDir
131+
getKubernetesClusterIP
132+
if [ -z "${t3PublicAddress}" ]; then
133+
t3PublicAddress="${K8S_IP}"
134+
fi
135+
131136
}
132137

133138
# create domain configmap using what is in the createDomainFilesDir

kubernetes/samples/scripts/create-fmw-infrastructure-domain/wlst/create-domain-script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ wlst.sh -skipWLSModuleScanning \
2525
-clusterName ${CUSTOM_CLUSTER_NAME} \
2626
-exposeAdminT3Channel ${EXPOSE_T3_CHANNEL_PREFIX} \
2727
-t3ChannelPublicAddress ${T3_PUBLIC_ADDRESS} \
28-
-t3ChannelPort ${T3_CHANNEL_PORT}
28+
-t3ChannelPort ${T3_CHANNEL_PORT}

0 commit comments

Comments
 (0)