Skip to content

OWLS-86038: Helm upgrade error missing internalOperatorKey #2050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 13, 2020

Conversation

lennyphan
Copy link
Member

@lennyphan lennyphan commented Nov 12, 2020

When using 'helm upgrade' command for the operator, the 'weblogic-operator-secrets' data field is nil (empty or null) if there are no key/value pairs defined in the 'data' dictionary. In this specific scenario, the 'internalOperatorKey' key is not defined and so the 'data' field of the 'weblogic-operator-secrets' Secret resource has no defined key/value pairs hence it is defined as 'nil' (null or empty). The 'index' function cannot operate on a 'nil' object. The fix was to add a condition check for '$secret.data'.

When doing an upgrade, if either the key or certificate of the operator's internal SSL identity is missing then the operator will generate a new one when the operator is re-started.

@lennyphan
Copy link
Member Author

Sorry about this, a little premature as I'm going to see if we can reuse the internal operator key if it already exists in the operator config map or to generate a new one.

@rjeberhard rjeberhard merged commit 7872ee4 into develop Nov 13, 2020
@lennyphan lennyphan deleted the OWLS-86038 branch November 13, 2020 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants