Skip to content

Commit a087e79

Browse files
authored
remove ALLOW_DYNAMIC_CLUSTER_IN_FMW flag and remove validation that FMW infrastruction domain cannot use dynamic cluster (#2375)
1 parent 12a2216 commit a087e79

File tree

7 files changed

+2
-34
lines changed

7 files changed

+2
-34
lines changed

integration-tests/src/test/java/oracle/weblogic/kubernetes/ItFmwDomainInPVUsingWDT.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ public void testFmwDomainOnPVUsingWdt() {
187187
pvName,
188188
pvcName,
189189
DOMAINHOMEPREFIX,
190-
"true",
191190
replicaCount,
192191
t3ChannelPort);
193192

integration-tests/src/test/java/oracle/weblogic/kubernetes/ItFmwDynamicClusterMiiDomain.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,6 @@ private void createDomainCrAndVerify(
252252
.includeServerOutInPodLog(true)
253253
.serverStartPolicy("IF_NEEDED")
254254
.serverPod(new ServerPod()
255-
.addEnvItem(new V1EnvVar()
256-
.name("ALLOW_DYNAMIC_CLUSTER_IN_FMW")
257-
.value("true"))
258255
.addEnvItem(new V1EnvVar()
259256
.name("JAVA_OPTIONS")
260257
.value("-Dweblogic.StdoutDebugEnabled=false"))

integration-tests/src/test/java/oracle/weblogic/kubernetes/ItFmwDynamicDomainInPV.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,6 @@ private void createDomainCrAndVerify(String pvName,
223223
.addEnvItem(new V1EnvVar()
224224
.name("USER_MEM_ARGS")
225225
.value("-Djava.security.egd=file:/dev/./urandom"))
226-
.addEnvItem(new V1EnvVar()
227-
.name("ALLOW_DYNAMIC_CLUSTER_IN_FMW")
228-
.value("true"))
229226
.addVolumesItem(new V1Volume()
230227
.name(pvName)
231228
.persistentVolumeClaim(new V1PersistentVolumeClaimVolumeSource()

integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/FmwUtils.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ public static Domain createDomainResource(
113113
* @param pvName name of the persistent volume to create
114114
* @param pvcName name of the persistent volume claim to create
115115
* @param domainInHomePrefix prefix of path of domain in home
116-
* @param allowDynClusterInFmw true to create a FMW dynamic domain, false otherwise
117116
* @param replicaCount count of replicas
118117
* @param t3ChannelPort port number of t3 channel
119118
* @return Domain WebLogic domain
@@ -125,7 +124,6 @@ public static Domain createDomainResourceOnPv(String domainUid,
125124
String pvName,
126125
String pvcName,
127126
String domainInHomePrefix,
128-
String allowDynClusterInFmw,
129127
int replicaCount,
130128
int t3ChannelPort) {
131129
// create a domain custom resource configuration object
@@ -159,9 +157,6 @@ public static Domain createDomainResourceOnPv(String domainUid,
159157
.addEnvItem(new V1EnvVar()
160158
.name("USER_MEM_ARGS")
161159
.value("-Djava.security.egd=file:/dev/./urandom"))
162-
.addEnvItem(new V1EnvVar()
163-
.name("ALLOW_DYNAMIC_CLUSTER_IN_FMW")
164-
.value(allowDynClusterInFmw))
165160
.addVolumesItem(new V1Volume()
166161
.name(pvName)
167162
.persistentVolumeClaim(new V1PersistentVolumeClaimVolumeSource()

operator/integration-tests/introspector/introspectTest.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ export ISTIO_ENABLED=${ISTIO_ENABLED:-false}
116116
export ISTIO_READINESS_PORT=${ISTIO_READINESS_PORT:-8888}
117117
export T3_PUBLIC_ADDRESS=${T3_PUBLIC_ADDRESS:-}
118118
export PRODUCTION_MODE_ENABLED=${PRODUCTION_MODE_ENABLED:-true}
119-
export ALLOW_DYNAMIC_CLUSTER_IN_FMW=${ALLOW_DYNAMIC_CLUSTER_IN_FMW:-false}
120119

121120
# whether this test run is expecting a domain validation error
122121
export EXPECT_INVALID_DOMAIN=${EXPECT_INVALID_DOMAIN:-false}

operator/integration-tests/introspector/wl-introspect-pod.yamlt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ spec:
3030
value: "${DATA_HOME}"
3131
- name: CREDENTIALS_SECRET_NAME
3232
value: "${WEBLOGIC_CREDENTIALS_SECRET_NAME}"
33-
- name: ALLOW_DYNAMIC_CLUSTER_IN_FMW
34-
value: "${ALLOW_DYNAMIC_CLUSTER_IN_FMW}"
3533
- name: DOMAIN_SOURCE_TYPE
3634
value: "${DOMAIN_SOURCE_TYPE}"
3735
- name: WDT_DOMAIN_TYPE
@@ -41,7 +39,7 @@ spec:
4139
- name: ISTIO_READINESS_PORT
4240
value: "${ISTIO_READINESS_PORT:-8888}"
4341
- name: OPERATOR_ENVVAR_NAMES
44-
value: "JAVA_OPTIONS,NAMESPACE,DOMAIN_UID,DOMAIN_HOME,NODEMGR_HOME,LOG_HOME,DATA_HOME,CREDENTIALS_SECRET_NAME,ALLOW_DYNAMIC_CLUSTER_IN_FMW,DOMAIN_SOURCE_TYPE,WDT_DOMAIN_TYPE,ISTIO_ENABLED,ISTIO_READINESS_PORT"
42+
value: "JAVA_OPTIONS,NAMESPACE,DOMAIN_UID,DOMAIN_HOME,NODEMGR_HOME,LOG_HOME,DATA_HOME,CREDENTIALS_SECRET_NAME,DOMAIN_SOURCE_TYPE,WDT_DOMAIN_TYPE,ISTIO_ENABLED,ISTIO_READINESS_PORT"
4543
image: "${WEBLOGIC_IMAGE_NAME}:${WEBLOGIC_IMAGE_TAG}"
4644
imagePullPolicy: ${WEBLOGIC_IMAGE_PULL_POLICY}
4745
name: weblogic-server

operator/src/main/resources/scripts/introspectDomain.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,6 @@ def open(self):
156156
self.CUSTOM_SITCFG_PATH = self.getEnvOrDef('CUSTOM_SITCFG_PATH', '/weblogic-operator/config-overrides')
157157
self.NM_HOST = self.getEnvOrDef('NM_HOST', 'localhost')
158158

159-
# Set IS_FMW_INFRA to True if the image contains a FMW infrastructure domain
160-
# (dectected by checking the RCUPREFIX environment variable)
161-
self.IS_FMW_INFRA_DOMAIN = self.isEnvSet('RCUPREFIX')
162-
163-
# Check environment variable that allows dynamic clusters in FMW infrastructure
164-
# domains
165-
self.ALLOW_DYNAMIC_CLUSTER_IN_FMW = self.getEnvOrDef('ALLOW_DYNAMIC_CLUSTER_IN_FMW', "False")
166-
167159
# maintain a list of errors that we include in topology.yaml on completion, if any
168160

169161
self.errors = []
@@ -233,12 +225,6 @@ def getDataHome(self):
233225
def isAccessLogInLogHome(self):
234226
return self.ACCESS_LOG_IN_LOG_HOME == 'true';
235227

236-
def isFMWInfraDomain(self):
237-
return self.IS_FMW_INFRA_DOMAIN
238-
239-
def allowDynamicClusterInFMWInfraDomain(self):
240-
return self.ALLOW_DYNAMIC_CLUSTER_IN_FMW.lower() == 'true'
241-
242228
def addError(self, error):
243229
self.errors.append(error)
244230

@@ -422,10 +408,7 @@ def validateCluster(self, cluster):
422408
if self.getDynamicServersOrNone(cluster) is None:
423409
self.validateNonDynamicCluster(cluster)
424410
else:
425-
if self.env.isFMWInfraDomain() and not self.env.allowDynamicClusterInFMWInfraDomain():
426-
self.addError("WebLogic dynamic clusters are not supported in FMW Infrastructure domains. Set ALLOW_DYNAMIC_CLUSTER_IN_FMW environment variable to true to bypass this validation.")
427-
else:
428-
self.validateDynamicCluster(cluster)
411+
self.validateDynamicCluster(cluster)
429412

430413
def validateNonDynamicCluster(self, cluster):
431414
self.validateNonDynamicClusterReferencedByAtLeastOneServer(cluster)

0 commit comments

Comments
 (0)