Skip to content

Commit 0d00b8c

Browse files
rjeberhardalai8marinakogdoxiaoTom Barnes
authored
Operator version 3.0.0 (#1819)
* OWLS-80451 - Enhance logHome to override HTTP access log location (#1532) * introduce httpAccessLogInLogHome to DomainSpec * comment fix * httpAccessLogInLogHome comment fix * junit tests for httpAccessLogInLogHome * fix minor indentation bug in web-server sit config * fix httpAccessLogInLogHome description * fix httpAccessLogInLogHome description * add httpAccessLogInLogHome to various create domain samples * update with built index.html * add httpAccessLogInLogHome to documentation for create domain samples * update comments for logHome and httpAccessLogInLogHome * remove extra lines added by IDE * OWLS-80826, OWLS-80942 (#1538) * added support for helm 3.0 * added check for repo * moved from monitoring ns * added the test * fixed style * added missed file * added condition for ver * rework to avoid interm failures * fixed docs * updated version of MonExp * added some timing * style * redesigned shutdowntest, fix some issues in MonEx * fixed java docs * Resolve docs and testing review comments from PRs 1531, 1532, and 1536 (#1545) * add assert messages * clarify javadoc * DomainSpec docs fixes * getServers() and getClusters() javadoc fix * more DomainStatus unit tests * Model in image support (#1478) * minor README update * hugo FAQ link fix * refactor save wallet script 1. * Model in image scripts fixes to work on MacOS (#1465) * Make scripts run on MacOS * Remove unnintentional adds * rename key for secrets * MII Sample: remove vestigal nginx * Fix template and script error * Edit due to key changes * placeholders for MII * sample fodder for rosemary * Add for debugging merged model * first pass on MII sample content * name reconciliation * update from model-in-image * revert accidental changes * mii sample doc edits * second round edits * Update script * Add validation, volume and volume mount for runtime encryption secret Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix an issue after merge with model-in-image-security Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Add part of the changes for runtime secret validation and mount Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Second part of the change Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Change the sample Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Modify the sample to use the right secret Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix a typo Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Minor fix Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix generated files Signed-off-by: doxiao <dongbo.xiao@oracle.com> * pickup changes from model-in-image-security * Fixing error message * Fix TBD * remove comments * mark README.md as outdated (will remove later) * final round edits on sample doc * Add validation checks for OPSS secret Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Minor javadoc fix Signed-off-by: doxiao <dongbo.xiao@oracle.com> * refacto startServer.sh * update script and doc * More javadoc changes Signed-off-by: doxiao <dongbo.xiao@oracle.com> * MII sample doc update * Fix a merge issue that caused duplicate configuration Signed-off-by: doxiao <dongbo.xiao@oracle.com> * MII sample script update * MII sample script update * update doc for saving wallet and remote docker registry instructions * update doc for script name changes * Add unit test cases Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Shorten suffix names * Fix merge issues Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix duplicate lines Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix generated files Signed-off-by: doxiao <dongbo.xiao@oracle.com> * refactor and remove prepending the domain name to configmap/secrets volumes * add back the mounting for existing introspect configmap source for life-cycle update * minor edit * additional edits * add traefix instructions for console * Update doc for introspectorJobActiveDeadlineSeconds Signed-off-by: doxiao <dongbo.xiao@oracle.com> * update doc * QA infra change to support new secret (#1474) Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> * update doc * Fix a typo Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Use 12.2.1.4 everywhere possible (#1475) * Use 12.2.1.4 everywhere possible * Back to soasuite:12.2.1.3 * Correct some 12.2.1.3 vs. 12.2.1.4 confusion * Correct word choice * fix to use different separator, '.' is a valid key name * Refactor getModelInImageSpecHash and fix logic; correct minor script error in encryption_util * check in for now waiting for WDT * Make the runtime encryption secret volume source "optional" Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Minor doc changes for introspectorJobActiveDeadlineSeconds Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Add extra line between merging properties file * add real blank lines between appending variable files * change wdt secret key to password * Model in image main hugo doc - first check-in. * Remove rcu_admin_password - not required at this point * MII sample updates * MII sample updates * Update copyright Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Add introspectorJobActiveDeadlineSeconds in toString(), hashCode() and equals() calculation Signed-off-by: doxiao <dongbo.xiao@oracle.com> * MII Sample README update. * MII Sample - remove mention of rcu admin password in sample doc. * first pass edits * Remove wdtEncryptionSecret from the schema and code * fix two broken links * Clean up after WDT encryption secret related code is removed Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix doc Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix doc links Signed-off-by: doxiao <dongbo.xiao@oracle.com> * remove wdt encryption passphrase logic from introspector job scripts since it no longer supported in the schema * update MII doc to mention wdt encryption isn't supported * update error message in modelInImage.sh * Enable updateRCUSchemaPassword and add special env variables for macro expansion in modelInImage.sh script * Add @@SECRET and @@ENV support to MII sample/doc. * Add utility methods for model in image tests (#1481) * adding mii utility methods * adding mii utility methods * adding wdtDomainType and use of properties for weblogic base image * minor doc update * doc update * doc update * doc update * doc update * doc update * add script comment * Add introspectorJobActiveDeadlinSeconds to the samples Signed-off-by: doxiao <dongbo.xiao@oracle.com> * first draft update of 'choosing a model' doc * first draft update of 'choosing a model' doc * Remove updateDomainResult - dynamic update code * doc updated * Doc update. * doc edits from Ryan * clean up sample descriptor * Remove mii section from samples domain-template.yaml (#1491) * undo changes in domain-template.yaml * adding mii config file * resolve comment merge * Move introspectVersion to spec level only * Update _index.md * Fix inadvertent change * Update sample doc for introspectorJobActiveDeadlineSeconds and runtimeEncryptionSecret Signed-off-by: doxiao <dongbo.xiao@oracle.com> * More sample doc update Signed-off-by: doxiao <dongbo.xiao@oracle.com> * doc update * clean up sample descriptor * Update Operator.properties * doc update * Removed unused field * edit new choose a model doc * Minor doc fix - address review comment Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix copyrights * Add support for defaulting the MII sample's WORKDIR. Default is '/tmp/tbarnes/model-in-image-sample-work-dir'. * doc update * sample update * doc update * doc update * fix for MII sample script opss_wallet_util.sh * remove mention of helm 2.x syntax from MII sample * doc update * doc update * doc update * doc update * doc update * doc update * Update the wallet in the primordial domain if the rcu schema password changed * doc update * doc update * add error checking * doc update * doc update * doc update * Checkstyle * Update restarting.md * Update usage.md * Code review * remove unnecessary comment * minor edit * minor edit * Minor doc changes Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Revert one doc change Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Javadoc * Adding weblogic credentials change test (#1493) * Adding testCredentialsChange * fix import * Add utility method to replace runtimeEncryptionSecret * modify the secret * fix formatting * fix formatting * remove unwanted code * cleanup * cleanup * cleanup * fix indendation * doc updates * doc update * doc update * Minor doc fix Signed-off-by: doxiao <dongbo.xiao@oracle.com> * doc update * doc update * add usage and friendlier syntax error reporting to MII sample create_secret.sh + create_configmap.sh, correct the usage text in opss_wallet_util.sh * doc update * doc update * fix to handle image names with '/' in them in create_domain.sh sample script * remove mention of unused var from build_image_model.sh sample script * Fix help text in create_configmap.sh helper script. * Put the domain name back if present * remove printing the model * Correct configmap data is not inserted into the flow after it's read. * Minor change to Operator.properties Signed-off-by: doxiao <dongbo.xiao@oracle.com> * remove debug code * minor help text correction for create_configmap.sh sample script * doc update (#1509) * doc update * doc update * doc update * MII: avoid deploying/referencing JRF secrets for non-JRF domain types, it's too confusing (#1507) * doc update (#1510) * doc update * doc update * doc update * update ci/cd doc for mii (#1502) * update ci/cd doc for mii * first pass edits * doc update * doc update Co-authored-by: Rosemary Marano <rosemary.marano@oracle.com> * cherry pick 1517 from develop * two automated test case for Wdt Config Update w single Model File jenkins-ignore (#1495) * The first test case for OWLS-80444 Automate Wdt Config Override with single Model File jenkins-ignore * Modified TestUtils.java jenkins-ignore * Added python file to verify JDBC DS prop in server pod jenkins-ignore * Changes b ased on the comments jenkins-ignore * Added the 2nd test case jenkins-ignore * Used patch domain to restart domain jenkins-ignore * Changed test case names jenkins-ignore * adding config delete and app delete tests using mode file (#1521) * adding config update tests * add config and app delete tests * Model in image namefixes (#1515) * Fix for PR1478 * add more traces and minor update Co-authored-by: Johnny Shum <cbdream99@gmail.com> * Missing secret dir fix (#1525) * Add temporary work around for WDT return non-zero rc if secret directory doesn't exist. * Change per WDT fix for no more default for custom secrets mount Co-authored-by: Johnny Shum <cbdream99@gmail.com> * Update rest_domainqualtrue.yml * Update OperatorUtils.java * Update OperatorUtils.java * removing commented/incomplete test code (#1533) * Merge from develop to model-in-image with conflict resolution (#1531) * OWLS-80522 Domain status ordering, OWLS-80144 Ordered rolling upgrade (#1503) * Domain.getServers() should return servers in order * ordered rolling upgrade * minor test fix * new RollingHelperTest * update getSortingString to handle up to 20 digits * rolling upgrade clusters sorted by cluster names * add isAdminServer to ServerStatus * ServerStatus isAdminServer excluded from json schema * ClusterStatus sorted by sorting name * getClusters returning sorted clusters * add unit tests * handle null map * Enhance Helm chart deletion Logic in cleanup.sh Script (#1517) * Enhance the clean up Script to support Helm 2/3 * Addressed the review comment Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> * Added test for domainQualifier=true, added cleanup for intermittent failures (#1513) * added support for helm 3.0 * added check for repo * moved from monitoring ns * added the test * fixed style * added missed file * added condition for ver * rework to avoid interm failures * fixed docs * updated version of MonExp * Stub the ApiClient in tests that get connections but where this was not already done. (#1519) * Enhance the cleanup script to include deletion of few namesapce(s) created by Integration Tests (#1523) Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> * overall doc edits (#1518) * overall doc edits * fix a mistake I created * update Kubernetes prereqs * incorporate edits from Ryan and Mark * fix typo * fix my mistake * minor fixes * Disable preserveUnknownFields * Update rest_domainqualtrue.yml * Update OperatorUtils.java * Update OperatorUtils.java Co-authored-by: Anthony Lai <anthony.lai@oracle.com> Co-authored-by: Antaryami Panigrahi <31135902+anpanigr@users.noreply.github.com> Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> Co-authored-by: Marina Kogan <marina.kogan@oracle.com> Co-authored-by: Rosemary Marano <rosemary.marano@oracle.com> * Fix javadoc * fix broken anchor links (#1540) * Updated model files to user @@SECRET macro; added sparce jms/wldf mod… (#1529) * Updated model files to user @@SECRET macro; added sparce jms/wldf model files * Added Copyright Statements * Missing CopyRight * Resync the branch and removed work-around * Addressed review comment Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> * Correct merge of cleanup.sh * entire site doc edits (#1551) * entire site doc edits * sentence perfection * Added two more tests to cover config update by creating an image w a new tag (#1528) * Added two more tests to cover config update by creating an image with a new tag jenkins-ignore * Changes for the comments jenkins-ignore * Changed logs jenkins-ignore * Mii introspect test (#1530) * for mii * MII updates * add wdt configmap mount * remove image and wdt configmap first * correct script error * update model values * update properties value * template the mii mount and make it optional * Making override cm optional * revert * update the models * remove introspectMIITest.sh * update secret key * clean up * clean up workdir * Fix missing secret and cleanup * Incorporate Tom's changes * refresh from model-in-image * various changes for the PR * fix zip output * fix script error * correct archive location * push no-effect change * move WDT_DOMAIN_TYPE to yamlt * update for PR * fix test for MII * Remove custom overrides and adjust overrides test. * Update script and readme * minor fixes * hide k8s output * Fix copyright * Fix copyright * Fix copyright * Fix copyright * updated copyrights * Add copyrights * update from model-in-image Co-authored-by: Johnny Shum <cbdream99@gmail.com> Co-authored-by: Ryan Eberhard <ryan.eberhard@oracle.com> * fix log format (#1553) Co-authored-by: doxiao <dongbo.xiao@oracle.com> Co-authored-by: Tom Barnes <tom.barnes@oracle.com> Co-authored-by: Johnny Shum <cbdream99@gmail.com> Co-authored-by: Rosemary Marano <rosemary.marano@oracle.com> Co-authored-by: Antaryami Panigrahi <31135902+anpanigr@users.noreply.github.com> Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> Co-authored-by: Vanajakshi Mukkara <35709372+vanajamukkara@users.noreply.github.com> Co-authored-by: Sankar Periyathambi Neelakandan <45743425+sankarpn@users.noreply.github.com> Co-authored-by: Mark Nelson <mark.x.nelson@oracle.com> Co-authored-by: Huiling Zhao <41090416+hzhao-github@users.noreply.github.com> Co-authored-by: Johnny Shum <johnny.shum@oracle.com> Co-authored-by: Anthony Lai <anthony.lai@oracle.com> Co-authored-by: Marina Kogan <marina.kogan@oracle.com> * delete image only for domain in image tests (#1552) * delete image only for domain in image tests * moving the code to actual test class for delete domain * adding check not to delete container-registry images * Fix checkstyle in recent change (#1554) * delete image only for domain in image tests * moving the code to actual test class for delete domain * adding check not to delete container-registry images * fix checkstyle * New integration tests (#1560) * Fix TBD * remove comments * mark README.md as outdated (will remove later) * final round edits on sample doc * Add validation checks for OPSS secret Signed-off-by: doxiao <dongbo.xiao@oracle.com> * starting to experiment * some more experimenting and thinking * some more experimenting and thinking * some more experimenting and thinking * some more experimenting and thinking * some more experimenting and thinking * some more experimenting and thinking * some more experimenting and thinking * more thinking and experimenting * tidy up a bit * Minor javadoc fix Signed-off-by: doxiao <dongbo.xiao@oracle.com> * refacto startServer.sh * update script and doc * More javadoc changes Signed-off-by: doxiao <dongbo.xiao@oracle.com> * MII sample doc update * Fix a merge issue that caused duplicate configuration Signed-off-by: doxiao <dongbo.xiao@oracle.com> * MII sample script update * small updates * MII sample script update * update doc for saving wallet and remote docker registry instructions * update doc for script name changes * Add unit test cases Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Shorten suffix names * Fix merge issues Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix duplicate lines Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix generated files Signed-off-by: doxiao <dongbo.xiao@oracle.com> * refactor and remove prepending the domain name to configmap/secrets volumes * add back the mounting for existing introspect configmap source for life-cycle update * minor edit * additional edits * add traefix instructions for console * Update doc for introspectorJobActiveDeadlineSeconds Signed-off-by: doxiao <dongbo.xiao@oracle.com> * update doc * QA infra change to support new secret (#1474) Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> * update doc * Fix a typo Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Use 12.2.1.4 everywhere possible (#1475) * Use 12.2.1.4 everywhere possible * Back to soasuite:12.2.1.3 * Correct some 12.2.1.3 vs. 12.2.1.4 confusion * Correct word choice * fix to use different separator, '.' is a valid key name * Refactor getModelInImageSpecHash and fix logic; correct minor script error in encryption_util * check in for now waiting for WDT * Make the runtime encryption secret volume source "optional" Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Minor doc changes for introspectorJobActiveDeadlineSeconds Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Add extra line between merging properties file * add real blank lines between appending variable files * change wdt secret key to password * Model in image main hugo doc - first check-in. * Remove rcu_admin_password - not required at this point * MII sample updates * MII sample updates * Update copyright Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Add introspectorJobActiveDeadlineSeconds in toString(), hashCode() and equals() calculation Signed-off-by: doxiao <dongbo.xiao@oracle.com> * MII Sample README update. * MII Sample - remove mention of rcu admin password in sample doc. * first pass edits * Remove wdtEncryptionSecret from the schema and code * fix two broken links * Clean up after WDT encryption secret related code is removed Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix doc Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix doc links Signed-off-by: doxiao <dongbo.xiao@oracle.com> * remove wdt encryption passphrase logic from introspector job scripts since it no longer supported in the schema * update MII doc to mention wdt encryption isn't supported * update error message in modelInImage.sh * Enable updateRCUSchemaPassword and add special env variables for macro expansion in modelInImage.sh script * Add @@SECRET and @@ENV support to MII sample/doc. * Add utility methods for model in image tests (#1481) * adding mii utility methods * adding mii utility methods * adding wdtDomainType and use of properties for weblogic base image * minor doc update * doc update * doc update * doc update * doc update * doc update * add script comment * Add introspectorJobActiveDeadlinSeconds to the samples Signed-off-by: doxiao <dongbo.xiao@oracle.com> * first draft update of 'choosing a model' doc * first draft update of 'choosing a model' doc * Remove updateDomainResult - dynamic update code * doc updated * Doc update. * doc edits from Ryan * clean up sample descriptor * Remove mii section from samples domain-template.yaml (#1491) * undo changes in domain-template.yaml * adding mii config file * resolve comment merge * Move introspectVersion to spec level only * Update _index.md * Fix inadvertent change * Update sample doc for introspectorJobActiveDeadlineSeconds and runtimeEncryptionSecret Signed-off-by: doxiao <dongbo.xiao@oracle.com> * More sample doc update Signed-off-by: doxiao <dongbo.xiao@oracle.com> * doc update * clean up sample descriptor * Update Operator.properties * doc update * Removed unused field * edit new choose a model doc * Minor doc fix - address review comment Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix copyrights * Add support for defaulting the MII sample's WORKDIR. Default is '/tmp/tbarnes/model-in-image-sample-work-dir'. * doc update * sample update * doc update * doc update * fix for MII sample script opss_wallet_util.sh * remove mention of helm 2.x syntax from MII sample * doc update * doc update * doc update * doc update * doc update * doc update * Update the wallet in the primordial domain if the rcu schema password changed * doc update * doc update * add error checking * doc update * doc update * doc update * Checkstyle * Update restarting.md * Update usage.md * Code review * remove unnecessary comment * minor edit * minor edit * Minor doc changes Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Revert one doc change Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Javadoc * Adding weblogic credentials change test (#1493) * Adding testCredentialsChange * fix import * Add utility method to replace runtimeEncryptionSecret * modify the secret * fix formatting * fix formatting * remove unwanted code * cleanup * cleanup * cleanup * fix indendation * doc updates * doc update * doc update * Minor doc fix Signed-off-by: doxiao <dongbo.xiao@oracle.com> * doc update * doc update * add usage and friendlier syntax error reporting to MII sample create_secret.sh + create_configmap.sh, correct the usage text in opss_wallet_util.sh * doc update * doc update * fix to handle image names with '/' in them in create_domain.sh sample script * remove mention of unused var from build_image_model.sh sample script * Fix help text in create_configmap.sh helper script. * Put the domain name back if present * remove printing the model * Correct configmap data is not inserted into the flow after it's read. * Minor change to Operator.properties Signed-off-by: doxiao <dongbo.xiao@oracle.com> * remove debug code * minor help text correction for create_configmap.sh sample script * doc update (#1509) * doc update * doc update * doc update * MII: avoid deploying/referencing JRF secrets for non-JRF domain types, it's too confusing (#1507) * doc update (#1510) * doc update * doc update * doc update * update ci/cd doc for mii (#1502) * update ci/cd doc for mii * first pass edits * doc update * doc update Co-authored-by: Rosemary Marano <rosemary.marano@oracle.com> * added IntegrationTest annotation * corrected copyright statements * cleanup warnings in LoggedTest * Adding more actions (#1511) * adding new actions * adding more actions * typo * using fluent api for Helm * using fluent api for operatorparams instead of hashmap * fixing javadoc * Install wit actions interface (#1512) * Add actions for download and WIT * Minor fix of the formating * Address review comment Signed-off-by: doxiao <dongbo.xiao@oracle.com> * added checkstyle checks from master, and reformatted code to match * cherry pick 1517 from develop * K8s client api initial impl for feedback on usage (#1514) * K8s client api initial impl for feedback on usage * Changes based on initial feedback * implement delete PV/PVC, secrets, and config maps * create/delete domain custom resource * Updated javadoc * Use Assertions.assertDoesNotThrow() instead of try-catch * Use Assertions.assertDoesNotThrow() * Adding test assertions to new integration tests (#1516) * Adding test assertions to new integration tests * two automated test case for Wdt Config Update w single Model File jenkins-ignore (#1495) * The first test case for OWLS-80444 Automate Wdt Config Override with single Model File jenkins-ignore * Modified TestUtils.java jenkins-ignore * Added python file to verify JDBC DS prop in server pod jenkins-ignore * Changes b ased on the comments jenkins-ignore * Added the 2nd test case jenkins-ignore * Used patch domain to restart domain jenkins-ignore * Changed test case names jenkins-ignore * adding config delete and app delete tests using mode file (#1521) * adding config update tests * add config and app delete tests * Additional mii integration test support for K8s resources (#1524) * create/delete service accounts and update deleteNamespace() to use GenericKubernetesApi * Added javadoc and comments * Adding impl in Operator (#1522) * adding traefik params * adding more implementation for operator * addressing review comments, using assertj * adding helm commands * Wit action impl (#1520) * Add actions for download and WIT * Minor fix of the formating * Address review comment * WIT impl * Add execcommand * Use tmpDir as the root of the work dir * Support unzip WIT * Rename a class * Add ProcessBuilder code commented out * Setup WIT list parameters * Address review comments * More review comments * Minor style fix * Move download WIT/WDT code into the impl Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix an issue Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Model in image namefixes (#1515) * Fix for PR1478 * add more traces and minor update Co-authored-by: Johnny Shum <cbdream99@gmail.com> * Missing secret dir fix (#1525) * Add temporary work around for WDT return non-zero rc if secret directory doesn't exist. * Change per WDT fix for no more default for custom secrets mount Co-authored-by: Johnny Shum <cbdream99@gmail.com> * Update rest_domainqualtrue.yml * Update OperatorUtils.java * Update OperatorUtils.java * Implemented the pod and service check assertions (#1527) * working on the pod status * implement * add serviceCreated * implemented service level assertions * adding domain related assertions * add domain related assertions * reverting * Added javadoc * addressed the PR comments * fixed more javadoc comments * Create Domain types for use by tests (#1526) * Work in progress * Typo * Work in progress * Work in progress * Work in progress * Remove set methods and correct some typos * Correct pom * More fluent * removing commented/incomplete test code (#1533) * Merge from develop to model-in-image with conflict resolution (#1531) * OWLS-80522 Domain status ordering, OWLS-80144 Ordered rolling upgrade (#1503) * Domain.getServers() should return servers in order * ordered rolling upgrade * minor test fix * new RollingHelperTest * update getSortingString to handle up to 20 digits * rolling upgrade clusters sorted by cluster names * add isAdminServer to ServerStatus * ServerStatus isAdminServer excluded from json schema * ClusterStatus sorted by sorting name * getClusters returning sorted clusters * add unit tests * handle null map * Enhance Helm chart deletion Logic in cleanup.sh Script (#1517) * Enhance the clean up Script to support Helm 2/3 * Addressed the review comment Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> * Added test for domainQualifier=true, added cleanup for intermittent failures (#1513) * added support for helm 3.0 * added check for repo * moved from monitoring ns * added the test * fixed style * added missed file * added condition for ver * rework to avoid interm failures * fixed docs * updated version of MonExp * Stub the ApiClient in tests that get connections but where this was not already done. (#1519) * Enhance the cleanup script to include deletion of few namesapce(s) created by Integration Tests (#1523) Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> * overall doc edits (#1518) * overall doc edits * fix a mistake I created * update Kubernetes prereqs * incorporate edits from Ryan and Mark * fix typo * fix my mistake * minor fixes * Disable preserveUnknownFields * Update rest_domainqualtrue.yml * Update OperatorUtils.java * Update OperatorUtils.java Co-authored-by: Anthony Lai <anthony.lai@oracle.com> Co-authored-by: Antaryami Panigrahi <31135902+anpanigr@users.noreply.github.com> Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> Co-authored-by: Marina Kogan <marina.kogan@oracle.com> Co-authored-by: Rosemary Marano <rosemary.marano@oracle.com> * Fix javadoc * fix broken anchor links (#1540) * Assert improvements (#1541) * check for NPEs * fix Domaina assertions * Added assert message * Updated model files to user @@SECRET macro; added sparce jms/wldf mod… (#1529) * Updated model files to user @@SECRET macro; added sparce jms/wldf model files * Added Copyright Statements * Missing CopyRight * Resync the branch and removed work-around * Addressed review comment Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> * adding helm implementation (#1535) * moving common props to helmprops and common methods to helm class * adding helm install, upgrade, delete implementation * fix namespace and helm delete command * change delete to uninstall * addressing review comments * addressing review comments * change method name * fix exception class * Add more contents into MII image plus cleanup (#1534) * Add model to wit test Signed-off-by: doxiao <dongbo.xiao@oracle.com> * More impl Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Restruct the code and move constants into ActionConstants Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Revert an unintended change Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Minor cleanup Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Address review comments Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Get rid of inheritance - move command methods to Command action/params and FileUtils Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Minor java doc change Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Remove unused code Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Minor style changes Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Remove imports and code that have been commented out Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Rename assertion method name and fix javadoc Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Address review comment Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Change with() to params() Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Add assertions Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Avoid type checks Signed-off-by: doxiao <dongbo.xiao@oracle.com> * move WIT/WDT versions to pom.xml Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Remove a class that is no longer needed Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Minor cleanup Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Additional support for K8s resources for actions in test mii framework (#1543) * Refactoring, services, pods * Some refactoring and added additional Kubernetes primitives * Use oracle.weblogic.domain.Domain class for getDomainCustomResource() method * Address PR feedback * Correct merge of cleanup.sh * Add additional env to WIT execution (#1548) Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Propogate env to other image tool commands Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Replace java.util.Logger with logging facade (#1555) * brought LoggingFacade over from main code to replace java.util.Logger * fixed a couple typos * Javadoc cleanup per review comments Co-authored-by: Johnny Shum <cbdream99@gmail.com> Co-authored-by: Tom Barnes <tom.barnes@oracle.com> Co-authored-by: Rosemary Marano <rosemary.marano@oracle.com> Co-authored-by: doxiao <dongbo.xiao@oracle.com> Co-authored-by: Mark Nelson <mark.x.nelson@oracle.com> Co-authored-by: Antaryami Panigrahi <31135902+anpanigr@users.noreply.github.com> Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> Co-authored-by: Vanajakshi Mukkara <35709372+vanajamukkara@users.noreply.github.com> Co-authored-by: Sankar Periyathambi Neelakandan <45743425+sankarpn@users.noreply.github.com> Co-authored-by: Derek Sharpe <derek.sharpe@oracle.com> Co-authored-by: Lenny Phan <33355669+lennyphan@users.noreply.github.com> Co-authored-by: Huiling Zhao <41090416+hzhao-github@users.noreply.github.com> Co-authored-by: Johnny Shum <johnny.shum@oracle.com> Co-authored-by: Anthony Lai <anthony.lai@oracle.com> Co-authored-by: Marina Kogan <marina.kogan@oracle.com> Co-authored-by: Derek Sharpe <36005286+ddsharpe@users.noreply.github.com> * Remove check for base image (#1559) * delete image only for domain in image tests * moving the code to actual test class for delete domain * adding check not to delete container-registry images * fix checkstyle * base image is not required as image tool pulls the image * remove check for base image * Add app archive to MII image (#1550) * More javadoc changes Signed-off-by: doxiao <dongbo.xiao@oracle.com> * MII sample doc update * Fix a merge issue that caused duplicate configuration Signed-off-by: doxiao <dongbo.xiao@oracle.com> * MII sample script update * small updates * MII sample script update * update doc for saving wallet and remote docker registry instructions * update doc for script name changes * Add unit test cases Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Shorten suffix names * Fix merge issues Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix duplicate lines Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix generated files Signed-off-by: doxiao <dongbo.xiao@oracle.com> * refactor and remove prepending the domain name to configmap/secrets volumes * add back the mounting for existing introspect configmap source for life-cycle update * minor edit * additional edits * add traefix instructions for console * Update doc for introspectorJobActiveDeadlineSeconds Signed-off-by: doxiao <dongbo.xiao@oracle.com> * update doc * QA infra change to support new secret (#1474) Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> * update doc * Fix a typo Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Use 12.2.1.4 everywhere possible (#1475) * Use 12.2.1.4 everywhere possible * Back to soasuite:12.2.1.3 * Correct some 12.2.1.3 vs. 12.2.1.4 confusion * Correct word choice * fix to use different separator, '.' is a valid key name * Refactor getModelInImageSpecHash and fix logic; correct minor script error in encryption_util * check in for now waiting for WDT * Make the runtime encryption secret volume source "optional" Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Minor doc changes for introspectorJobActiveDeadlineSeconds Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Add extra line between merging properties file * add real blank lines between appending variable files * change wdt secret key to password * Model in image main hugo doc - first check-in. * Remove rcu_admin_password - not required at this point * MII sample updates * MII sample updates * Update copyright Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Add introspectorJobActiveDeadlineSeconds in toString(), hashCode() and equals() calculation Signed-off-by: doxiao <dongbo.xiao@oracle.com> * MII Sample README update. * MII Sample - remove mention of rcu admin password in sample doc. * first pass edits * Remove wdtEncryptionSecret from the schema and code * fix two broken links * Clean up after WDT encryption secret related code is removed Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix doc Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix doc links Signed-off-by: doxiao <dongbo.xiao@oracle.com> * remove wdt encryption passphrase logic from introspector job scripts since it no longer supported in the schema * update MII doc to mention wdt encryption isn't supported * update error message in modelInImage.sh * Enable updateRCUSchemaPassword and add special env variables for macro expansion in modelInImage.sh script * Add @@SECRET and @@ENV support to MII sample/doc. * Add utility methods for model in image tests (#1481) * adding mii utility methods * adding mii utility methods * adding wdtDomainType and use of properties for weblogic base image * minor doc update * doc update * doc update * doc update * doc update * doc update * add script comment * Add introspectorJobActiveDeadlinSeconds to the samples Signed-off-by: doxiao <dongbo.xiao@oracle.com> * first draft update of 'choosing a model' doc * first draft update of 'choosing a model' doc * Remove updateDomainResult - dynamic update code * doc updated * Doc update. * doc edits from Ryan * clean up sample descriptor * Remove mii section from samples domain-template.yaml (#1491) * undo changes in domain-template.yaml * adding mii config file * resolve comment merge * Move introspectVersion to spec level only * Update _index.md * Fix inadvertent change * Update sample doc for introspectorJobActiveDeadlineSeconds and runtimeEncryptionSecret Signed-off-by: doxiao <dongbo.xiao@oracle.com> * More sample doc update Signed-off-by: doxiao <dongbo.xiao@oracle.com> * doc update * clean up sample descriptor * Update Operator.properties * doc update * Removed unused field * edit new choose a model doc * Minor doc fix - address review comment Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix copyrights * Add support for defaulting the MII sample's WORKDIR. Default is '/tmp/tbarnes/model-in-image-sample-work-dir'. * doc update * sample update * doc update * doc update * fix for MII sample script opss_wallet_util.sh * remove mention of helm 2.x syntax from MII sample * doc update * doc update * doc update * doc update * doc update * doc update * Update the wallet in the primordial domain if the rcu schema password changed * doc update * doc update * add error checking * doc update * doc update * doc update * Checkstyle * Update restarting.md * Update usage.md * Code review * remove unnecessary comment * minor edit * minor edit * Minor doc changes Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Revert one doc change Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Javadoc * Adding weblogic credentials change test (#1493) * Adding testCredentialsChange * fix import * Add utility method to replace runtimeEncryptionSecret * modify the secret * fix formatting * fix formatting * remove unwanted code * cleanup * cleanup * cleanup * fix indendation * doc updates * doc update * doc update * Minor doc fix Signed-off-by: doxiao <dongbo.xiao@oracle.com> * doc update * doc update * add usage and friendlier syntax error reporting to MII sample create_secret.sh + create_configmap.sh, correct the usage text in opss_wallet_util.sh * doc update * doc update * fix to handle image names with '/' in them in create_domain.sh sample script * remove mention of unused var from build_image_model.sh sample script * Fix help text in create_configmap.sh helper script. * Put the domain name back if present * remove printing the model * Correct configmap data is not inserted into the flow after it's read. * Minor change to Operator.properties Signed-off-by: doxiao <dongbo.xiao@oracle.com> * remove debug code * minor help text correction for create_configmap.sh sample script * doc update (#1509) * doc update * doc update * doc update * MII: avoid deploying/referencing JRF secrets for non-JRF domain types, it's too confusing (#1507) * doc update (#1510) * doc update * doc update * doc update * update ci/cd doc for mii (#1502) * update ci/cd doc for mii * first pass edits * doc update * doc update Co-authored-by: Rosemary Marano <rosemary.marano@oracle.com> * added IntegrationTest annotation * corrected copyright statements * cleanup warnings in LoggedTest * Adding more actions (#1511) * adding new actions * adding more actions * typo * using fluent api for Helm * using fluent api for operatorparams instead of hashmap * fixing javadoc * Install wit actions interface (#1512) * Add actions for download and WIT * Minor fix of the formating * Address review comment Signed-off-by: doxiao <dongbo.xiao@oracle.com> * added checkstyle checks from master, and reformatted code to match * cherry pick 1517 from develop * K8s client api initial impl for feedback on usage (#1514) * K8s client api initial impl for feedback on usage * Changes based on initial feedback * implement delete PV/PVC, secrets, and config maps * create/delete domain custom resource * Updated javadoc * Use Assertions.assertDoesNotThrow() instead of try-catch * Use Assertions.assertDoesNotThrow() * Adding test assertions to new integration tests (#1516) * Adding test assertions to new integration tests * two automated test case for Wdt Config Update w single Model File jenkins-ignore (#1495) * The first test case for OWLS-80444 Automate Wdt Config Override with single Model File jenkins-ignore * Modified TestUtils.java jenkins-ignore * Added python file to verify JDBC DS prop in server pod jenkins-ignore * Changes b ased on the comments jenkins-ignore * Added the 2nd test case jenkins-ignore * Used patch domain to restart domain jenkins-ignore * Changed test case names jenkins-ignore * adding config delete and app delete tests using mode file (#1521) * adding config update tests * add config and app delete tests * Additional mii integration test support for K8s resources (#1524) * create/delete service accounts and update deleteNamespace() to use GenericKubernetesApi * Added javadoc and comments * Adding impl in Operator (#1522) * adding traefik params * adding more implementation for operator * addressing review comments, using assertj * adding helm commands * Wit action impl (#1520) * Add actions for download and WIT * Minor fix of the formating * Address review comment * WIT impl * Add execcommand * Use tmpDir as the root of the work dir * Support unzip WIT * Rename a class * Add ProcessBuilder code commented out * Setup WIT list parameters * Address review comments * More review comments * Minor style fix * Move download WIT/WDT code into the impl Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Fix an issue Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Model in image namefixes (#1515) * Fix for PR1478 * add more traces and minor update Co-authored-by: Johnny Shum <cbdream99@gmail.com> * Missing secret dir fix (#1525) * Add temporary work around for WDT return non-zero rc if secret directory doesn't exist. * Change per WDT fix for no more default for custom secrets mount Co-authored-by: Johnny Shum <cbdream99@gmail.com> * Update rest_domainqualtrue.yml * Update OperatorUtils.java * Update OperatorUtils.java * Implemented the pod and service check assertions (#1527) * working on the pod status * implement * add serviceCreated * implemented service level assertions * adding domain related assertions * add domain related assertions * reverting * Added javadoc * addressed the PR comments * fixed more javadoc comments * Create Domain types for use by tests (#1526) * Work in progress * Typo * Work in progress * Work in progress * Work in progress * Remove set methods and correct some typos * Correct pom * More fluent * removing commented/incomplete test code (#1533) * Merge from develop to model-in-image with conflict resolution (#1531) * OWLS-80522 Domain status ordering, OWLS-80144 Ordered rolling upgrade (#1503) * Domain.getServers() should return servers in order * ordered rolling upgrade * minor test fix * new RollingHelperTest * update getSortingString to handle up to 20 digits * rolling upgrade clusters sorted by cluster names * add isAdminServer to ServerStatus * ServerStatus isAdminServer excluded from json schema * ClusterStatus sorted by sorting name * getClusters returning sorted clusters * add unit tests * handle null map * Enhance Helm chart deletion Logic in cleanup.sh Script (#1517) * Enhance the clean up Script to support Helm 2/3 * Addressed the review comment Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> * Added test for domainQualifier=true, added cleanup for intermittent failures (#1513) * added support for helm 3.0 * added check for repo * moved from monitoring ns * added the test * fixed style * added missed file * added condition for ver * rework to avoid interm failures * fixed docs * updated version of MonExp * Stub the ApiClient in tests that get connections but where this was not already done. (#1519) * Enhance the cleanup script to include deletion of few namesapce(s) created by Integration Tests (#1523) Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> * overall doc edits (#1518) * overall doc edits * fix a mistake I created * update Kubernetes prereqs * incorporate edits from Ryan and Mark * fix typo * fix my mistake * minor fixes * Disable preserveUnknownFields * Update rest_domainqualtrue.yml * Update OperatorUtils.java * Update OperatorUtils.java Co-authored-by: Anthony Lai <anthony.lai@oracle.com> Co-authored-by: Antaryami Panigrahi <31135902+anpanigr@users.noreply.github.com> Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> Co-authored-by: Marina Kogan <marina.kogan@oracle.com> Co-authored-by: Rosemary Marano <rosemary.marano@oracle.com> * Fix javadoc * fix broken anchor links (#1540) * Assert improvements (#1541) * check for NPEs * fix Domaina assertions * Added assert message * Updated model files to user @@SECRET macro; added sparce jms/wldf mod… (#1529) * Updated model files to user @@SECRET macro; added sparce jms/wldf model files * Added Copyright Statements * Missing CopyRight * Resync the branch and removed work-around * Addressed review comment Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> * adding helm implementation (#1535) * moving common props to helmprops and common methods to helm class * adding helm install, upgrade, delete implementation * fix namespace and helm delete command * change delete to uninstall * addressing review comments * addressing review comments * change method name * fix exception class * Add more contents into MII image plus cleanup (#1534) * Add model to wit test Signed-off-by: doxiao <dongbo.xiao@oracle.com> * More impl Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Restruct the code and move constants into ActionConstants Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Revert an unintended change Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Minor cleanup Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Address review comments Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Get rid of inheritance - move command methods to Command action/params and FileUtils Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Minor java doc change Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Remove unused code Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Minor style changes Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Remove imports and code that have been commented out Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Rename assertion method name and fix javadoc Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Address review comment * Change with() to params() * Add assertions * Avoid type checks Signed-off-by: doxiao <dongbo.xiao@oracle.com> * move WIT/WDT versions to pom.xml * Remove a class that is no longer needed * Additional support for K8s resources for actions in test mii framework (#1543) * Refactoring, services, pods * Some refactoring and added additional Kubernetes primitives * Use oracle.weblogic.domain.Domain class for getDomainCustomResource() method * Address PR feedback * Correct merge of cleanup.sh * Add application archive to mii * Add additional env to WIT execution (#1548) * Propogate env to other image tool commands * Change Command.executeAndVerify to Command.execute. * Remove unintended files * Javadoc update * Address review comments * Download and use apache commons-io to clean up a directory Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Improve error handling in AppBuilder * Fix an error message * Replace java.util.Logger with logging facade (#1555) * brought LoggingFacade over from main code to replace java.util.Logger * fixed a couple typos * Javadoc cleanup per review comments * Remove one unnecessary assertion * Address review comments * Remove another section of comments about WDT * Add copyright to sample_app and rename sample_app to sample-app Signed-off-by: doxiao <dongbo.xiao@oracle.com> * Support SSL in the domain-home-in-image sample (#1542) * update the common utility & domain-home-in-image to support ssl * update the docs * add ssl tests for 12213-domain-home-in-image * Separate the SSL test * updated param comments * Update the test's javadoc comments * Update domain-home-in-image sample's doc * wording, spelling updates * added test assertions Co-authored-by: Ryan Eberhard <ryan.eberhard@oracle.com> * cleanup.sh: add fast WL pod exit, --force phase, backgrounding, and --timeout (#1557) * add --force delete phase to cleanup.sh * set timeout in cleanup.sh * fix typo in --timeout parameter for kubectl delete in cleanup.sh * add 'diefast' support to wl pods and to QA cleanup.sh script * cleanup.sh: run deletes in background and kill bg jobs if they take more than 15 seconds * use same image name but different tags for a it class (#1565) * Log level review and change status from using patch to using endpoint (#1558) * Review log message levels and include details about request when an async call fails * Use status endpoint rather than patch * Record work for other PR's * Continue adjusting log levels * Fix exception display and retry on domain status * Update FailureStatusSourceException.java * Update OtherUnrecoverableErrorBuilder.java * Reconcile logger change * Review comments * Changes to push new image to Docker repo jenkins-ignore (#1568) * Use OpenJDK 11.0.7 JRE (#1569) * Use 11.0.7 JRE * Adjust whitespace * Created a new PR for PV and PVC addition because of merge conflict (#1564) * Created a new PR for PV and PVC addition because of merge conflict * Changes messages to be little bit more clear * Adding test for mii end to end use case (#1563) * adding mii end to end use case * same image name, different tag * addressing review comments * modified exception handling and creating docker registry secret * Add getters and setters for Domain classes (#1576) * Add getters and setters for Domain classes * Missing bean method * pull in 1575 changes from master * Cannot add skipWLSModuleScanning here, once the WLSDEPLOY_PROPERTIES is set in the pod, wlst.sh fails to start (#1579) * Patch Domain Support (#1580) * Add log for introspector job creation time (#1577) Co-authored-by: doxiao <dongbo.xiao@oracle.com> * Errormsg 81217 (#1578) * OWLS-81217 Enhance error message for decrypting wdt model * Fix import and correct report bash lineno * change error handling and wordings * change wordings * Remove extra space Co-authored-by: Johnny Shum <cbdream99@gmail.com> Co-authored-by: Ryan Eberhard <ryan.eberhard@oracle.com> * Always use the latest release of WDT and Image Tool (#1574) * Initial changes for getting the latest version * Get the version number of the latest release of the tools * Minor updates * Minor change in error handling * Remove additional checks of the stderr on command execution result and add javadoc to the new method * Change return null to throw runtime exception * Cleanup * Modified test infra to run integration test in helm3 (#1572) * Skipping tiller installation for Helm 3.x * Added debug flag to setup.sh * Add provision to describe the lb pod when fails to start * More dubug on setup.sh * Added more debug for setup.sh * Modified the helm3 logic in LoadBalancer.java * modified ItUsabilityOperatorHelmChart.java * Modified load balance setup.sh script * Added debug option to helm upgrade * Remove support for Helm 2 based on review comments * remove helm v2 support from setupenv.sh * sync up develop branch, few changes to ItUsabilityOperatorHelmChart class * Update product names * Fix a few more Co-authored-by: ANTARYAMI.PANIGRAHI@ORACLE.COM <anpanigr@anpanigr-1.subnet1ad2phx.devweblogicphx.oraclevcn.com> Co-authored-by: Ryan Eberhard <ryan.eberhard@oracle.com> * POM updates for new integration tests and other clean-ups. (#1581) * Connect new integration tests, remove build-tools module, remove unnecessary files * Add missing property * Resolve Checkstyle issues * Create profile for new integration tests * Remove properties interferring with coverage * Add javadoc * Correct Checkstyle * Find parent pom directory using maven magic (#1585) * Adding diagnostic log collection feature to integration tests (#1562) * Adding diagnostic features to integration test * wip * wip * wip * wip * initial implementation of diagnostic logging * wip * changed the implementation to use LifecycleMethodExecutionExceptionHandler * Added javadoc * fix newline * fixed javadocs in Kubernetes.java * debuggging * fix javadocs * changed the implmentation for namespace collectioin * added test status overrides * Fix javadocs * Fix for the empty namespace list * remove debug code * Get domain object lists using CustomObjectsApi * Catch the exception * Remove double message logging * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * fix javadoc * fixed pvc list * use RESULT_ROOT in Jenkins or tmp dir for local runs * fix comment * changes as per Ryan's comments * fix pv location * Changes as per Ryan's comments * remove getting logs for all domains * Address Mark comments * address mark's review comments * correct the typos * Fix command stdout (#1587) * Fix ExecCommand to allow both redirect and saveResults enabled the same time * minor cleanup * Remove duplicate failsafe and leftover sample test * Adding extension class to build and push Operator image and more (#1589) * script to build and push operator image to ocir for jenkins to work * Revert "script to build and push operator image to ocir for jenkins to work" This reverts commit a83f7000fb00384fdcfb6e5bb496a25cbce3e1b4. * script to build and push operator image to ocir for jenkins to work * Synchronization for one-time initialization logic * Add try finally * moving constants to a interface * Adding imagebuilder * adding imagebuilder class * build and push operator image in extension * fix command run * use BRANCH env var for JENKINS * fix image name for Jenkins * remove double REPO_NAME * remove double REPO_NAME * fix domain image name * fix domain image name * fix domain image name * checking operator helm release status * workaround for image check * adding assertions for checking docker image and helm release status * address review comments Co-authored-by: Ryan Eberhard <ryan.eberhard@oracle.com> * Break the code in to BeforeAll, Test and AfterAll blocks (#1590) * Break the code in to BeforeAll, Test and AfterAll blocks * remove comments * add javadoc * do not fail the whole test if the curl command returns a non-zero status (#1595) * do not fail the whole test if the curl command returns a non-zero status we expect if to fail, and want to retry it until it is successful. it can fail because the web app has not had time to start up yet. the current code throws a runtime exception on a non-zero return code, which causes this test to fail too fast and incorrectly. * use vanaja's simpler solution * Fix exec command (#1593) * Fix exec command * Fix an intermittent issue - join the thread earlier * tests - create domain from existing image and same domainUID in different ns (#1586) * test to add a second domain using the image as the first one * refactoring and also adding test for same domainUID in different ns * refactoring the test * removing the readSecret calls and refactoring the test * remove empty lines * fixing after review comments * more updates after review comments Co-authored-by: BHAVANI.RAVICHANDRAN@ORACLE.COM <bravicha@bravicha-1.subnet1ad1phx.devweblogicphx.oraclevcn.com> * It resilience (#1600) * do not fail the whole test if the curl command returns a non-zero status we expect if to fail, and want to retry it until it is successful. it can fail because the web app has not had time to start up yet. the current code throws a runtime exception on a non-zero return code, which causes this test to fail too fast and incorrectly. * use vanaja's simpler solution * fix code so it retries and does not die on RuntimeException on first iteration. Observed a failure in this run: https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-quicktest/1375/testReport/oracle.kubernetes.operator/ItElasticLogging/testWebLogicLogSearch/ testWebLogicLogSearch fails arund line 1114 of the log (out file). The first fall to execSearchQuery is getting rc=6 from the curl command and then throws an RE and prematurely aborts the test. This PR changes it to use ExecCommand.exec() instead of TestUtils.exec() so that the result is just returned to the called without killing the test run. * WIP: Add some debugging for ITElasticLogging test (#1601) * add some debugging * fix checkstyle errors * fix logging test * Rethrow the exception caught in the BeforeAll, BeforeEach and AfterEach (#1599) * Rethrow the exception caught in the BeforeAll, BeforeEach and AfterEach methods * Get the LOGS_DIR from TestConstants * Fix the volume Name in PVC * Attempt to clean up use of bad exec() (#1605) * add some debugging * fix checkstyle errors * fix logging test * Attempt to clean up use of bad exec() This commit attempts to resolve a number of test failures that occur due to the bad use of the TestUtils.exec() method. This method throws a RuntimeException if the return code of the executed command is non-zero. This method is being used in many places (over 40). Many of those do not appear to need or want that behavior, and should instead be using the ExecCommand.exec() method which executes a command and then returns the result, without throwing an exception if the command fails. In this commit, I have done a visual inspection of each use of TestUtils.exec() and changed them to ExecCommand.exec() where it appeared to make sense. This includes every case where the call was using the return value from the method, and those where it appears clear from the subsequent logic that a failed command was not expected to terminate the process. There were some calls that I left because I could not be sure of the intent, and these will require more study. In order to make the code clearer, and make people think twice about using TestUtils.exec(), which has caused so many failures, I renamed that method to TestUtils.execOrAbortProcess(). Hopefully that will make it clearer that that method has a dangerous and unexpected side effect. Co-authored-by: Ryan Eberhard <ryan.eberhard@oracle.com> * Support for Kubernetes exec command (#1604) * Add support for Kubernetes exec API * Update processing input stream and adding ExecResult return type * clean up reading output thread join * add test to call exec * First code review changes * Remove set/get methods in KubernetesExec * Cleanup artifacts in Kubernetes cluster (#1603) * Adding cleanup methods to cleanup all the Kubernetyes artifacts left behind by the test class. * Leave the cluster artifacts untouched * correct the typo * cleanup javadoc * add logs for pods * Addressing review comments * Refactor the methods * javadoc fix * Fix javadoc * Check fileext wdt (#1592) * add check for wdt version and file extensions in model directories * fix script errors * fix script error * update error wordings * fix wordings * update check extension for wdt configmap * PR fixes * add bypass option for wdt version check * update script for checkDirectoryExtension * update wordings * update wordings * Correct spelling * add bypsss wdt version check wordings * Add support in diagnostic logging to archive PV (#1609) * Added methods to copy persistent volume contents to the client machine by the use of a temporary pod. Creating a temporary pod to mount to same volume used by the tests. Also few more fixes in the logging of files * Enable the cleanup method * Add ja…
1 parent d6f747a commit 0d00b8c

File tree

1,333 files changed

+124954
-62299
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,333 files changed

+124954
-62299
lines changed

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,23 @@ RUN set -eux; \
2020
# Default to UTF-8 file.encoding
2121
ENV LANG en_US.UTF-8
2222

23-
ENV JAVA_HOME /usr/local/graalvm-ce-java11
23+
ENV JAVA_HOME /usr/local/java
2424
ENV PATH /operator:$JAVA_HOME/bin:$PATH
2525

26-
ENV JAVA_VERSION 11.0.7
27-
ENV JAVA_URL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-19.3.2/graalvm-ce-java11-linux-amd64-19.3.2.tar.gz
26+
ENV JAVA_VERSION 14.0.2
27+
ENV JAVA_URL https://download.java.net/java/GA/jdk14.0.2/205943a0976c4ed48cb16f1043c5c647/11/GPL/openjdk-14.0.2_linux-x64_bin.tar.gz
2828

2929
# Install Java and make the operator run with a non-root user id (1000 is the `oracle` user)
3030
RUN set -eux; \
31-
curl -fL -o /graalvm-ce-java11.tar.gz "$JAVA_URL"; \
31+
curl -fL -o /jdk.tar.gz "$JAVA_URL"; \
3232
mkdir -p "$JAVA_HOME"; \
33-
tar --extract --file /graalvm-ce-java11.tar.gz --directory "$JAVA_HOME" --strip-components 1; \
34-
rm /graalvm-ce-java11.tar.gz; \
33+
tar --extract --file /jdk.tar.gz --directory "$JAVA_HOME" --strip-components 1; \
34+
rm /jdk.tar.gz; \
3535
mkdir /usr/java; \
3636
ln -sfT "$JAVA_HOME" /usr/java/default; \
3737
ln -sfT "$JAVA_HOME" /usr/java/latest; \
38-
rm -Rf "$JAVA_HOME/include" "$JAVA_HOME/jmods" "$JAVA_HOME/languages" "$JAVA_HOME/tools" "$JAVA_HOME/lib/svm" "$JAVA_HOME/lib/installer" "$JAVA_HOME/lib/visualvm" "$JAVA_HOME/lib/truffle" "$JAVA_HOME/lib/polyglot"; \
39-
rm -f "$JAVA_HOME/lib/src.zip" "$JAVA_HOME/lib/libjvmcicompiler.so" "$JAVA_HOME/bin/polyglot"; \
38+
rm -Rf "$JAVA_HOME/include" "$JAVA_HOME/jmods"; \
39+
rm -f "$JAVA_HOME/lib/src.zip"; \
4040
for bin in "$JAVA_HOME/bin/"*; do \
4141
base="$(basename "$bin")"; \
4242
[ ! -e "/usr/bin/$base" ]; \
@@ -60,4 +60,4 @@ HEALTHCHECK --interval=1m --timeout=10s \
6060

6161
WORKDIR /operator/
6262

63-
CMD ["/operator/operator.sh"]
63+
CMD ["/operator/operator.sh"]

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
1+
Copyright (c) 2017, 2020, Oracle Corporation and/or its affiliates.
22

33
The Universal Permissive License (UPL), Version 1.0
44

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Oracle is finding ways for organizations using WebLogic Server to run important
1717
The fastest way to experience the operator is to follow the [Quick Start guide](https://oracle.github.io/weblogic-kubernetes-operator/quickstart/), or you can peruse our [documentation](https://oracle.github.io/weblogic-kubernetes-operator), read our [blogs](https://blogs.oracle.com/weblogicserver/updated-weblogic-kubernetes-support-with-operator-20), or try out the [samples](https://oracle.github.io/weblogic-kubernetes-operator/samples/).
1818

1919
***
20-
The [current release of the operator](https://github.com/oracle/weblogic-kubernetes-operator/releases) is 2.6.0.
21-
This release was published on June 22, 2020.
20+
The [current release of the operator](https://github.com/oracle/weblogic-kubernetes-operator/releases) is 3.0.0.
21+
This release was published on July 17, 2020.
2222
***
2323

2424
# Documentation

build-tools/checkstyle/customized_google_checks.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302
<module name="MissingJavadocMethod">
303303
<property name="scope" value="public"/>
304304
<property name="minLineCount" value="2"/>
305-
<property name="allowedAnnotations" value="Override, Test"/>
305+
<property name="allowedAnnotations" value="Override, Test, Before, After"/>
306306
<property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF"/>
307307
</module>
308308
<module name="MethodName">

build/kube.config

Lines changed: 0 additions & 19 deletions
This file was deleted.

buildDockerImage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ while getopts "t:" optname; do
3333
esac
3434
done
3535

36-
IMAGE_NAME=${name:-oracle/weblogic-kubernetes-operator:2.6.0}
36+
IMAGE_NAME=${name:-oracle/weblogic-kubernetes-operator:3.0.0}
3737
SCRIPTPATH="$( cd "$(dirname "$0")" > /dev/null 2>&1 ; pwd -P )"
3838

3939
# Proxy settings

buildtime-reports/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<artifactId>operator-parent</artifactId>
1010
<groupId>oracle.kubernetes</groupId>
11-
<version>2.6.0</version>
11+
<version>3.0.0</version>
1212
</parent>
1313

1414
<artifactId>buildtime-reports</artifactId>

deploy.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs-source/content/_index.md

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -23,37 +23,12 @@ using the operator to deploy and run a WebLogic domain container-packaged web ap
2323
***
2424
#### Current production release
2525

26-
The [current production release of the operator](https://github.com/oracle/weblogic-kubernetes-operator/releases) is 2.6.0.
27-
This release was published on June 22, 2020. See the operator prerequisites and supported environments [here]({{< relref "/userguide/introduction/introduction#operator-prerequisites" >}}).
28-
29-
#### Preview of next major release
30-
31-
The [current preview release of the operator](https://github.com/oracle/weblogic-kubernetes-operator/releases) is 3.0.0-rc1 (release candidate).
32-
This release candidate is suitable for use by early adopters who wish to test 3.0.0 features and provide feedback.
33-
This release candidate was published on May 8, 2020. There may be additional release candidates before the final 3.0.0 release.
34-
35-
This release candidate introduces _non-backward compatible_ changes. This release candidate cannot be run in the same
36-
cluster as another release of the operator. You can upgrade from 2.6.0 to 3.0.0-rc1 without needing to restart or recreate
37-
any existing domains. However, please note that we _do_ plan to support running the final 3.0.0
38-
release in the same cluster with at least one 2.x release of the operator to allow for staged migration.
39-
40-
The feature changes in 3.0.0-rc1 are:
41-
42-
* Introduction of a new ["Model In Image"]({{% relref "/userguide/managing-domains/model-in-image" %}}) feature which allows you to have a domain
43-
created at pod startup time from a WebLogic Deploy Tool model and archive.
44-
This supports user-requested use cases like creating multiple domains from
45-
the same model and automated updating of the domain based on model changes.
46-
The operator automates management of the domain encryption keys to ensure
47-
that they are not changed during domain updates.
48-
We provide a [sample]({{% relref "/samples/simple/domains/model-in-image" %}}) that
49-
demonstrates the key use cases for this feature.
50-
* Support for running the operator on Kubernetes 1.16.
51-
* Deprecation and removal of support for running the operator on Kubernetes 1.13
52-
and earlier versions.
53-
* Deprecation and removal of support for Helm 2.x. Helm 2.x uses the "tiller" pod
54-
which needs to run with elevated privileges (`cluster-admin` or very close to that)
55-
and which could be a vector for a privilege escalation attack. Helm 3.x removes
56-
Tiller and does not create the same exposure.
26+
The [current release of the operator](https://github.com/oracle/weblogic-kubernetes-operator/releases) is 3.0.0.
27+
This release was published on July 17, 2020. See the operator prerequisites and supported environments [here]({{< relref "/userguide/introduction/introduction#operator-prerequisites" >}}).
28+
29+
This release introduces _non-backward compatible_ changes; however, operators using this release can be run in the same
30+
Kubernetes cluster as operators using the 2.6.0 version allowing for staged migration. You can replace a 2.6.0 operator with a 3.x operator without needing to recreate any existing domains; however, you must delete the 2.6.0 Helm release and then install the 3.x version rather than using a Helm upgrade. When the 3.x operator starts, it will roll any running WebLogic Server instances
31+
started by the 2.6.0 operator. See the operator upgrade guide [here]({{< relref "/userguide/managing-operators/installation/_index.md#upgrade-the-operator" >}}).
5732

5833
***
5934

docs-source/content/developerguide/backwards-compatibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ draft: false
55
weight: 9
66
---
77

8-
Starting with the 2.0.1 release, operator releases must be backward compatible with respect to the domain resource schema, operator Helm chart input values, configuration overrides template, Kubernetes resources created by the operator Helm chart, Kubernetes resources created by the operator, and the operator REST interface. We will maintain compatibility for three releases, except in the case of a clearly communicated deprecated feature, which will be maintained for one release after a replacement is available.
8+
Starting with the 2.0.1 release, operator releases must be backward compatible with respect to the Domain schema, operator Helm chart input values, configuration overrides template, Kubernetes resources created by the operator Helm chart, Kubernetes resources created by the operator, and the operator REST interface. We will maintain compatibility for three releases, except in the case of a clearly communicated deprecated feature, which will be maintained for one release after a replacement is available.

docs-source/content/developerguide/code-structure.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@ weight: 6
77

88
This project has the following directory structure:
99

10-
* `docs`: Generated Javadoc and Swagger
11-
* `integration-tests`: Integration test suite
10+
* `docs`: Helm charts, Javadoc, Operator REST API Swagger, and Domain reference
11+
* `docs-source`: This documentation
12+
* `integration-tests`: Original, JUnit 4 integration test suite (see also `new-integration-tests`)
1213
* `json-schema`: Java model to JSON schema generator
1314
* `json-schema-maven-plugin`: Maven plugin for schema generator
1415
* `kubernetes/charts`: Helm charts
1516
* `kubernetes/samples`: All samples, including for WebLogic domain creation
16-
* `model`: Domain resource Java model
17+
* `new-integration-tests`: JUnit 5 integration test suite (see also `integration-tests`)
1718
* `operator`: Operator runtime
18-
* `site`: This documentation
19+
* `site`: Historical documentation
1920
* `src/scripts`: Scripts operator injects into WebLogic Server instance Pods
20-
* `swagger`: Swagger files for the Kubernetes API server and domain resource
21+
* `swagger`: Swagger files for the Kubernetes API server and Domain type
2122

2223
### Watch package
2324

docs-source/content/developerguide/domain-processing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ weight: 8
66
---
77

88

9-
When the operator starts, it lists all existing Domain resources and processes these domains to create the necessary Kubernetes resources, such as Pods and Services, if they don't already exist. This initialization also includes looking for any stranded resources that, while created by the operator, no longer correlate with a Domain resource.
9+
When the operator starts, it lists all the existing Domains and then processes these Domains to create the necessary Kubernetes resources, such as Pods and Services, if they don't already exist. This initialization also includes looking for any stranded resources that, while created by the operator, no longer correlate with a Domain.
1010

11-
After this, the operator starts watches for changes to Domain resources and any changes to other resources created by the operator. When a watch event is received, the operator processes the modified Domain resource to again bring the runtime presence in to alignment with the desired state.
11+
After this, the operator starts watches for changes to Domains and any changes to other resources created by the operator. When a watch event is received, the operator processes the modified Domain to again bring the runtime presence into alignment with the desired state.
1212

13-
The operator ensures that at most one `Fiber` is running for any given Domain. For instance, if the customer modifies a Domain resource to trigger a rolling restart, then the operator will create a `Fiber` to process this activity. However, if while the rolling restart is in process, the customer makes another change to the Domain resource, such as to increase the `replicas` field for a cluster, then the operator will cancel the in-flight `Fiber` and replace it with a new `Fiber`. This replacement processing must be able to handle taking over for the cancelled work regardless of where the earlier processing may have been in its flow. Therefore, domain processing always starts at the beginning of the "make right" flow without any state other than the current Domain resource.
13+
The operator ensures that at most one `Fiber` is running for any given Domain. For instance, if the customer modifies a Domain to initiate a rolling restart, then the operator will create a `Fiber` to process this activity. However, if while the rolling restart is in process, the customer makes another change to the Domain, such as to increase the `replicas` field for a cluster, then the operator will cancel the in-flight `Fiber` and replace it with a new `Fiber`. This replacement processing must be able to handle taking over for the cancelled work regardless of where the earlier processing may have been in its flow. Therefore, domain processing always starts at the beginning of the "make right" flow without any state other than the current Domain resource.
1414

1515
Finally, the operator periodically lists all Domains and rechecks them. This is a backstop against the possibility that a watch event is missed, such as because of a temporary network outage. Recheck activities will not interrupt already running processes for a given Domain.

docs-source/content/faq/_index.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
+++
2-
title = "Frequently asked questions"
3-
date = 2019-02-23T08:14:59-05:00
4-
weight = 7
5-
chapter = true
6-
draft = false
7-
pre = "<b>7. </b>"
8-
+++
9-
10-
### Chapter 7
11-
12-
# Frequently Asked Questions
1+
---
2+
title: "Frequently asked questions"
3+
date: 2019-02-23T08:14:59-05:00
4+
weight: 7
5+
draft: false
6+
---
137

148
This section provides answers to frequently asked questions.
9+
10+
{{% children style="h4" description="true" %}}

docs-source/content/faq/boot-identity-not-valid.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
title: "Boot identity not valid"
33
date: 2020-03-02T08:08:19-04:01
44
draft: false
5-
weight: 20
5+
weight: 3
6+
description: "One or more WebLogic Server instances in my domain will not start and I see errors in the server log like this: Boot identity not valid."
67
---
78

89
> One or more WebLogic Server instances in my domain will not start and I see errors in the server log like this:

docs-source/content/faq/cannot-pull-image.md

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
title: "Cannot pull image"
33
date: 2019-03-23T08:08:19-04:00
44
draft: false
5-
weight: 10
5+
weight: 2
6+
description: "My domain will not start and I see errors like `ImagePullBackoff` or `Cannot pull image`."
67
---
78

89
> My domain will not start and I see errors like `ImagePullBackoff` or `Cannot pull image`
910
1011
When you see these kinds of errors, it means that Kubernetes cannot find your Docker image.
1112
The most common causes are:
1213

13-
* The `image` value in your domain resource is set incorrectly, meaning Kubernetes will be
14+
* The `image` value in your Domain is set incorrectly, meaning Kubernetes will be
1415
trying to pull the wrong image.
1516
* The image requires authentication or permission in order to pull it and you have not
1617
configured Kubernetes with the necessary credentials, for example in an `imagePullSecret`.
@@ -91,17 +92,16 @@ Here is an example of part of a domain custom resource file with the `imagePullS
9192
specified:
9293

9394
```
94-
apiVersion: "weblogic.oracle/v7"
95+
apiVersion: "weblogic.oracle/v8"
9596
kind: Domain
9697
metadata:
9798
name: domain1
9899
namespace: default
99100
labels:
100-
weblogic.resourceVersion: domain-v2
101101
weblogic.domainUID: domain1
102102
spec:
103103
domainHome: /u01/oracle/user_projects/domains/domain1
104-
domainHomeInImage: true
104+
domainHomeSourceType: Image
105105
image: "some.registry.com/owner/domain1:1.0"
106106
imagePullPolicy: "IfNotPresent"
107107
imagePullSecrets:
@@ -122,15 +122,37 @@ kubectl patch serviceaccount default \
122122
```
123123

124124
{{% notice note %}}
125-
You can provide mutliple `imagePullSecrets` if you need to pull Docker images from multiple
125+
You can provide multiple `imagePullSecrets` if you need to pull Docker images from multiple
126126
remote Docker registries or if your images require different authentication credentials.
127127
For more information, see [Docker Image Protection]({{<relref "/security/domain-security/image-protection#weblogic-domain-in-docker-image-protection">}}).
128128
{{% /notice %}}
129129

130+
#### Pushing the image to a repository
131+
132+
If you have an image in your local repository that you would like to copy to
133+
a remote repository, then the Docker steps are:
134+
135+
- Use [docker login](https://docs.docker.com/engine/reference/commandline/login/)
136+
to log in to the target repository's registry. For example:
137+
```
138+
docker login some.registry.com -u username -p password
139+
```
140+
- Use [docker tag](https://docs.docker.com/engine/reference/commandline/tag/)
141+
to mark the image with the target registry, owner, repository name, and tag.
142+
For example:
143+
```
144+
docker tag domain1:1.0 some.registry.com/owner/domain1:1.0
145+
```
146+
- Use [docker push](https://docs.docker.com/engine/reference/commandline/push/)
147+
to push the image to the repository. For example:
148+
```
149+
docker push some.registry.com/owner/domain1:1.0
150+
```
151+
130152
#### Manually copying the image to your worker nodes
131153

132154
If you are not able to use a remote Docker registry, for example if your Kubernetes cluster is
133-
in a secure network with no external access, you can manually copy the Docker images to the
155+
in a secure network with no external access, then you can manually copy the Docker images to the
134156
cluster instead.
135157

136158
On the machine where you created the image, export it into a TAR file using this command:
@@ -150,4 +172,4 @@ docker load < domain1.tar
150172

151173
After you have ensured that the images are accessible on all worker nodes, you may need to restart
152174
the pods so that Kubernetes will attempt to pull the images again. You can do this by
153-
deleting the pods themselves, or deleting the domain resource and then recreating it.
175+
deleting the pods themselves, or deleting the Domain and then recreating it.

docs-source/content/faq/coherence-requirements.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
---
2-
title: "Coherence Requirements"
2+
title: "Coherence requirements"
33
date: 2019-08-12T12:41:38-04:00
44
draft: false
5-
weight: 90
5+
weight: 12
6+
description: "If you are running Coherence on Kubernetes, either inside a WebLogic domain
7+
or standalone, then there are some additional requirements to make sure
8+
that Coherence can form clusters."
69
---
710

811
If you are running Coherence on Kubernetes, either inside a WebLogic domain

docs-source/content/faq/configmaps.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
title: "Providing access to a ConfigMap"
33
date: 2020-01-07T15:02:28-05:00
44
draft: false
5-
weight: 70
5+
weight: 10
6+
description: "I need to provide an instance with access to a ConfigMap."
67
---
78
> I need to provide an instance with access to a ConfigMap.
89
@@ -15,7 +16,7 @@ In each case, the access is configured within the `serverPod` element of the des
1516
For example, given
1617
a ConfigMap named `my-map` with entries `key-1` and `key-2`, you can provide access to both values as separate files
1718
in the same directory within the `cluster-1` cluster with the following
18-
in your [domain resource](https://github.com/oracle/weblogic-kubernetes-operator/blob/master/docs/domains/Domain.md):
19+
in your [Domain](https://github.com/oracle/weblogic-kubernetes-operator/blob/master/docs/domains/Domain.md):
1920

2021

2122
```

docs-source/content/faq/domain-secret-mismatch.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
title: "Domain secret mismatch"
33
date: 2020-03-02T08:08:19-04:00
44
draft: false
5-
weight: 21
5+
weight: 4
6+
description: "One or more WebLogic Server instances in my domain will not start and the domain resource `status` or the pod log reports errors like this: Domain secret mismatch."
67
---
78

8-
> One or more WebLogic Server instances in my domain will not start and the domain resource `status` or the pod log reports errors like this:
9+
> One or more WebLogic Server instances in my domain will not start and the Domain `status` or the pod log reports errors like this:
910
>
1011
> ***Domain secret mismatch. The domain secret in `DOMAIN_HOME/security/SerializedSystemIni.dat` where DOMAIN_HOME=`$DOMAIN_HOME` does not match the domain secret found by the introspector job. WebLogic requires that all WebLogic Servers in the same domain share the same domain secret.***
1112

0 commit comments

Comments
 (0)