Skip to content

Commit

Permalink
Operator version 3.0.0 (#1819)
Browse files Browse the repository at this point in the history
* 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 4cde6596b7a4cd53089f1ede09bcfc30e2a817f5.

* 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 javadocs…
  • Loading branch information
30 people committed Jul 17, 2020
1 parent bb6d76f commit a14b767
Show file tree
Hide file tree
Showing 1,333 changed files with 124,954 additions and 62,299 deletions.
18 changes: 9 additions & 9 deletions Dockerfile
Expand Up @@ -20,23 +20,23 @@ RUN set -eux; \
# Default to UTF-8 file.encoding
ENV LANG en_US.UTF-8

ENV JAVA_HOME /usr/local/graalvm-ce-java11
ENV JAVA_HOME /usr/local/java
ENV PATH /operator:$JAVA_HOME/bin:$PATH

ENV JAVA_VERSION 11.0.7
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
ENV JAVA_VERSION 14.0.2
ENV JAVA_URL https://download.java.net/java/GA/jdk14.0.2/205943a0976c4ed48cb16f1043c5c647/11/GPL/openjdk-14.0.2_linux-x64_bin.tar.gz

# Install Java and make the operator run with a non-root user id (1000 is the `oracle` user)
RUN set -eux; \
curl -fL -o /graalvm-ce-java11.tar.gz "$JAVA_URL"; \
curl -fL -o /jdk.tar.gz "$JAVA_URL"; \
mkdir -p "$JAVA_HOME"; \
tar --extract --file /graalvm-ce-java11.tar.gz --directory "$JAVA_HOME" --strip-components 1; \
rm /graalvm-ce-java11.tar.gz; \
tar --extract --file /jdk.tar.gz --directory "$JAVA_HOME" --strip-components 1; \
rm /jdk.tar.gz; \
mkdir /usr/java; \
ln -sfT "$JAVA_HOME" /usr/java/default; \
ln -sfT "$JAVA_HOME" /usr/java/latest; \
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"; \
rm -f "$JAVA_HOME/lib/src.zip" "$JAVA_HOME/lib/libjvmcicompiler.so" "$JAVA_HOME/bin/polyglot"; \
rm -Rf "$JAVA_HOME/include" "$JAVA_HOME/jmods"; \
rm -f "$JAVA_HOME/lib/src.zip"; \
for bin in "$JAVA_HOME/bin/"*; do \
base="$(basename "$bin")"; \
[ ! -e "/usr/bin/$base" ]; \
Expand All @@ -60,4 +60,4 @@ HEALTHCHECK --interval=1m --timeout=10s \

WORKDIR /operator/

CMD ["/operator/operator.sh"]
CMD ["/operator/operator.sh"]
2 changes: 1 addition & 1 deletion LICENSE.txt
@@ -1,4 +1,4 @@
Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
Copyright (c) 2017, 2020, Oracle Corporation and/or its affiliates.

The Universal Permissive License (UPL), Version 1.0

Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -17,8 +17,8 @@ Oracle is finding ways for organizations using WebLogic Server to run important
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/).

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

# Documentation
Expand Down
2 changes: 1 addition & 1 deletion build-tools/checkstyle/customized_google_checks.xml
Expand Up @@ -302,7 +302,7 @@
<module name="MissingJavadocMethod">
<property name="scope" value="public"/>
<property name="minLineCount" value="2"/>
<property name="allowedAnnotations" value="Override, Test"/>
<property name="allowedAnnotations" value="Override, Test, Before, After"/>
<property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF"/>
</module>
<module name="MethodName">
Expand Down
19 changes: 0 additions & 19 deletions build/kube.config

This file was deleted.

2 changes: 1 addition & 1 deletion buildDockerImage.sh
Expand Up @@ -33,7 +33,7 @@ while getopts "t:" optname; do
esac
done

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

# Proxy settings
Expand Down
2 changes: 1 addition & 1 deletion buildtime-reports/pom.xml
Expand Up @@ -8,7 +8,7 @@
<parent>
<artifactId>operator-parent</artifactId>
<groupId>oracle.kubernetes</groupId>
<version>2.6.0</version>
<version>3.0.0</version>
</parent>

<artifactId>buildtime-reports</artifactId>
Expand Down
11 changes: 0 additions & 11 deletions deploy.sh

This file was deleted.

37 changes: 6 additions & 31 deletions docs-source/content/_index.md
Expand Up @@ -23,37 +23,12 @@ using the operator to deploy and run a WebLogic domain container-packaged web ap
***
#### Current production release

The [current production release of the operator](https://github.com/oracle/weblogic-kubernetes-operator/releases) is 2.6.0.
This release was published on June 22, 2020. See the operator prerequisites and supported environments [here]({{< relref "/userguide/introduction/introduction#operator-prerequisites" >}}).

#### Preview of next major release

The [current preview release of the operator](https://github.com/oracle/weblogic-kubernetes-operator/releases) is 3.0.0-rc1 (release candidate).
This release candidate is suitable for use by early adopters who wish to test 3.0.0 features and provide feedback.
This release candidate was published on May 8, 2020. There may be additional release candidates before the final 3.0.0 release.

This release candidate introduces _non-backward compatible_ changes. This release candidate cannot be run in the same
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
any existing domains. However, please note that we _do_ plan to support running the final 3.0.0
release in the same cluster with at least one 2.x release of the operator to allow for staged migration.

The feature changes in 3.0.0-rc1 are:

* Introduction of a new ["Model In Image"]({{% relref "/userguide/managing-domains/model-in-image" %}}) feature which allows you to have a domain
created at pod startup time from a WebLogic Deploy Tool model and archive.
This supports user-requested use cases like creating multiple domains from
the same model and automated updating of the domain based on model changes.
The operator automates management of the domain encryption keys to ensure
that they are not changed during domain updates.
We provide a [sample]({{% relref "/samples/simple/domains/model-in-image" %}}) that
demonstrates the key use cases for this feature.
* Support for running the operator on Kubernetes 1.16.
* Deprecation and removal of support for running the operator on Kubernetes 1.13
and earlier versions.
* Deprecation and removal of support for Helm 2.x. Helm 2.x uses the "tiller" pod
which needs to run with elevated privileges (`cluster-admin` or very close to that)
and which could be a vector for a privilege escalation attack. Helm 3.x removes
Tiller and does not create the same exposure.
The [current release of the operator](https://github.com/oracle/weblogic-kubernetes-operator/releases) is 3.0.0.
This release was published on July 17, 2020. See the operator prerequisites and supported environments [here]({{< relref "/userguide/introduction/introduction#operator-prerequisites" >}}).

This release introduces _non-backward compatible_ changes; however, operators using this release can be run in the same
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
started by the 2.6.0 operator. See the operator upgrade guide [here]({{< relref "/userguide/managing-operators/installation/_index.md#upgrade-the-operator" >}}).

***

Expand Down
Expand Up @@ -5,4 +5,4 @@ draft: false
weight: 9
---

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.
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.
11 changes: 6 additions & 5 deletions docs-source/content/developerguide/code-structure.md
Expand Up @@ -7,17 +7,18 @@ weight: 6

This project has the following directory structure:

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

### Watch package

Expand Down
6 changes: 3 additions & 3 deletions docs-source/content/developerguide/domain-processing.md
Expand Up @@ -6,10 +6,10 @@ weight: 8
---


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.
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.

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.
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.

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.
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.

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.
20 changes: 8 additions & 12 deletions docs-source/content/faq/_index.md
@@ -1,14 +1,10 @@
+++
title = "Frequently asked questions"
date = 2019-02-23T08:14:59-05:00
weight = 7
chapter = true
draft = false
pre = "<b>7. </b>"
+++

### Chapter 7

# Frequently Asked Questions
---
title: "Frequently asked questions"
date: 2019-02-23T08:14:59-05:00
weight: 7
draft: false
---

This section provides answers to frequently asked questions.

{{% children style="h4" description="true" %}}
3 changes: 2 additions & 1 deletion docs-source/content/faq/boot-identity-not-valid.md
Expand Up @@ -2,7 +2,8 @@
title: "Boot identity not valid"
date: 2020-03-02T08:08:19-04:01
draft: false
weight: 20
weight: 3
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."
---

> One or more WebLogic Server instances in my domain will not start and I see errors in the server log like this:
Expand Down
38 changes: 30 additions & 8 deletions docs-source/content/faq/cannot-pull-image.md
Expand Up @@ -2,15 +2,16 @@
title: "Cannot pull image"
date: 2019-03-23T08:08:19-04:00
draft: false
weight: 10
weight: 2
description: "My domain will not start and I see errors like `ImagePullBackoff` or `Cannot pull image`."
---

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

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

```
apiVersion: "weblogic.oracle/v7"
apiVersion: "weblogic.oracle/v8"
kind: Domain
metadata:
name: domain1
namespace: default
labels:
weblogic.resourceVersion: domain-v2
weblogic.domainUID: domain1
spec:
domainHome: /u01/oracle/user_projects/domains/domain1
domainHomeInImage: true
domainHomeSourceType: Image
image: "some.registry.com/owner/domain1:1.0"
imagePullPolicy: "IfNotPresent"
imagePullSecrets:
Expand All @@ -122,15 +122,37 @@ kubectl patch serviceaccount default \
```

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

#### Pushing the image to a repository

If you have an image in your local repository that you would like to copy to
a remote repository, then the Docker steps are:

- Use [docker login](https://docs.docker.com/engine/reference/commandline/login/)
to log in to the target repository's registry. For example:
```
docker login some.registry.com -u username -p password
```
- Use [docker tag](https://docs.docker.com/engine/reference/commandline/tag/)
to mark the image with the target registry, owner, repository name, and tag.
For example:
```
docker tag domain1:1.0 some.registry.com/owner/domain1:1.0
```
- Use [docker push](https://docs.docker.com/engine/reference/commandline/push/)
to push the image to the repository. For example:
```
docker push some.registry.com/owner/domain1:1.0
```

#### Manually copying the image to your worker nodes

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

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

After you have ensured that the images are accessible on all worker nodes, you may need to restart
the pods so that Kubernetes will attempt to pull the images again. You can do this by
deleting the pods themselves, or deleting the domain resource and then recreating it.
deleting the pods themselves, or deleting the Domain and then recreating it.
7 changes: 5 additions & 2 deletions docs-source/content/faq/coherence-requirements.md
@@ -1,8 +1,11 @@
---
title: "Coherence Requirements"
title: "Coherence requirements"
date: 2019-08-12T12:41:38-04:00
draft: false
weight: 90
weight: 12
description: "If you are running Coherence on Kubernetes, either inside a WebLogic domain
or standalone, then there are some additional requirements to make sure
that Coherence can form clusters."
---

If you are running Coherence on Kubernetes, either inside a WebLogic domain
Expand Down
5 changes: 3 additions & 2 deletions docs-source/content/faq/configmaps.md
Expand Up @@ -2,7 +2,8 @@
title: "Providing access to a ConfigMap"
date: 2020-01-07T15:02:28-05:00
draft: false
weight: 70
weight: 10
description: "I need to provide an instance with access to a ConfigMap."
---
> I need to provide an instance with access to a ConfigMap.
Expand All @@ -15,7 +16,7 @@ In each case, the access is configured within the `serverPod` element of the des
For example, given
a ConfigMap named `my-map` with entries `key-1` and `key-2`, you can provide access to both values as separate files
in the same directory within the `cluster-1` cluster with the following
in your [domain resource](https://github.com/oracle/weblogic-kubernetes-operator/blob/master/docs/domains/Domain.md):
in your [Domain](https://github.com/oracle/weblogic-kubernetes-operator/blob/master/docs/domains/Domain.md):


```
Expand Down
5 changes: 3 additions & 2 deletions docs-source/content/faq/domain-secret-mismatch.md
Expand Up @@ -2,10 +2,11 @@
title: "Domain secret mismatch"
date: 2020-03-02T08:08:19-04:00
draft: false
weight: 21
weight: 4
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."
---

> 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:
> One or more WebLogic Server instances in my domain will not start and the Domain `status` or the pod log reports errors like this:
>
> ***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.***
Expand Down

0 comments on commit a14b767

Please sign in to comment.