@@ -1315,9 +1315,11 @@ private String getNodePort() throws Exception {
1315
1315
}
1316
1316
1317
1317
/**
1318
- * clone docker-images sample
1318
+ * Remove docker-images sample directory if exists and clone latest from github for domain home in
1319
+ * image.
1319
1320
*
1320
- * @throws Exception
1321
+ * @throws Exception if could not run the command successfully to clone of docker-images sample
1322
+ * from github
1321
1323
*/
1322
1324
private void gitCloneDockerImagesSample () throws Exception {
1323
1325
if (!domainHomeImageBuildPath .isEmpty ()) {
@@ -1339,14 +1341,16 @@ private void gitCloneDockerImagesSample() throws Exception {
1339
1341
.append (BaseTest .getResultDir ())
1340
1342
.append ("/docker-images" );
1341
1343
logger .info ("Executing cmd " + removeAndClone );
1342
- ExecResult result = TestUtils .exec (removeAndClone .toString ());
1344
+ TestUtils .exec (removeAndClone .toString ());
1343
1345
}
1344
1346
}
1345
1347
1346
1348
/**
1347
- * append configOverrides to domain.yaml
1349
+ * append configOverrides and configOverrideSecrets section to the generated domain.yaml and
1350
+ * create the domain crd by calling kubectl create on the generated domain.yaml
1348
1351
*
1349
- * @throws Exception
1352
+ * @throws Exception if any error occurs writing to the file or if could not run kubectl create
1353
+ * command
1350
1354
*/
1351
1355
private void appendToDomainYamlAndCreate () throws Exception {
1352
1356
String contentToAppend =
@@ -1391,9 +1395,10 @@ public String getHostNameForCurl() throws Exception {
1391
1395
}
1392
1396
1393
1397
/**
1394
- * copy create-domain.py domain map contains createDomainPyScript
1398
+ * Option to provide custom create-domain.py script. Copies create-domain.py to the correct
1399
+ * location if domain map contains createDomainPyScript attribute.
1395
1400
*
1396
- * @throws IOException
1401
+ * @throws IOException if error occurs when readin or writing the file
1397
1402
*/
1398
1403
private void copyCreateDomainPy () throws IOException {
1399
1404
@@ -1425,11 +1430,11 @@ private void copyCreateDomainPy() throws IOException {
1425
1430
/**
1426
1431
* prepare the command to call create-domain.sh based on the domain type
1427
1432
*
1428
- * @param outputDir
1429
- * @return
1430
- * @throws Exception
1433
+ * @param outputDir directory for the generated Kubernetes YAML files for the domain when
1434
+ * create-domain.sh is called
1435
+ * @return the command
1431
1436
*/
1432
- private String prepareCmdToCallCreateDomainScript (String outputDir ) throws Exception {
1437
+ private String prepareCmdToCallCreateDomainScript (String outputDir ) {
1433
1438
1434
1439
StringBuffer createDomainScriptCmd = new StringBuffer (BaseTest .getResultDir ());
1435
1440
// call different create-domain.sh based on the domain type
@@ -1458,9 +1463,11 @@ private String prepareCmdToCallCreateDomainScript(String outputDir) throws Excep
1458
1463
}
1459
1464
1460
1465
/**
1461
- * change cluster type in domain template or properties to CONFIGURED for configured cluster
1466
+ * Option to provide cluster type. Change cluster type in domain template to CONFIGURED or use
1467
+ * configured cluster topology if clusterType is CONFIGURED
1462
1468
*
1463
- * @throws Exception
1469
+ * @throws Exception when errors occured during reading/writing the file or executing the command
1470
+ * to change the value in create-domain-job-template.yaml
1464
1471
*/
1465
1472
private void changeClusterTypeInCreateDomainJobTemplate () throws Exception {
1466
1473
@@ -1627,9 +1634,11 @@ private void callShellScriptToBuildDeployAppInPod(
1627
1634
}
1628
1635
1629
1636
/**
1630
- * create config map and secret for custom situational configuration
1637
+ * create config map and label with domainUid and create secret used in custom situational
1638
+ * configuration which contains hostname, db user, db password
1631
1639
*
1632
- * @throws Exception
1640
+ * @throws Exception when any of the kubectl commands to create config map, label, secret fails or
1641
+ * if could not run them
1633
1642
*/
1634
1643
private void createConfigMapAndSecretForSitConfig () throws Exception {
1635
1644
0 commit comments