-
Notifications
You must be signed in to change notification settings - Fork 458
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
[WFCORE-5489] As a developer, I want to override management attribute… #4816
Merged
jmesnil
merged 1 commit into
wildfly:main
from
jmesnil:WFCORE-5489_override_attribute_value_from_env_var
Nov 24, 2021
Merged
[WFCORE-5489] As a developer, I want to override management attribute… #4816
jmesnil
merged 1 commit into
wildfly:main
from
jmesnil:WFCORE-5489_override_attribute_value_from_env_var
Nov 24, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
supersedes #4639 |
jmesnil
added
Feature
This PR adds a new feature to WildFly
missing-reqs
This PR is missing external requirements before it can be merged
labels
Oct 18, 2021
github-actions
bot
added
the
deps-ok
Dependencies have been checked, and there are no significant changes
label
Oct 18, 2021
jmesnil
force-pushed
the
WFCORE-5489_override_attribute_value_from_env_var
branch
from
October 18, 2021 10:32
afdf45f
to
5afc50b
Compare
vsalbaba
reviewed
Oct 21, 2021
controller/src/test/java/org/jboss/as/controller/EnvVarAttributeOverrideModelTestCase.java
Outdated
Show resolved
Hide resolved
jmesnil
force-pushed
the
WFCORE-5489_override_attribute_value_from_env_var
branch
from
October 27, 2021 08:29
5afc50b
to
056c62b
Compare
Community Documentation is in PR wildfly/wildfly#14418 |
jmesnil
force-pushed
the
WFCORE-5489_override_attribute_value_from_env_var
branch
from
November 3, 2021 16:42
056c62b
to
cce4b54
Compare
LGTM |
bstansberry
reviewed
Nov 17, 2021
bstansberry
reviewed
Nov 17, 2021
controller/src/main/java/org/jboss/as/controller/AttributeDefinition.java
Outdated
Show resolved
Hide resolved
jmesnil
force-pushed
the
WFCORE-5489_override_attribute_value_from_env_var
branch
from
November 18, 2021 10:55
cce4b54
to
e8ef138
Compare
… values using environment variables When validating and setting the value for an non-complex attribute, check if there is an env var that would override its value before doing any expression resolution or correction. Complex attributes (object, property, list) does not allow overriding their value from an env var. This feature is enabled by the existence of the `WILDFLY_OVERRIDING_ENV_VARS` environment variable. The EnvVarAttributeOverrideModelTestCase test is executed in 2 different execution to test the behaviour with and without the env var that activates the feature. JIRA: https://issues.redhat.com/browse/WFCORE-5489 Signed-off-by: Jeff Mesnil <jmesnil@redhat.com>
jmesnil
force-pushed
the
WFCORE-5489_override_attribute_value_from_env_var
branch
from
November 18, 2021 15:33
e8ef138
to
7c284db
Compare
bstansberry
approved these changes
Nov 22, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @jmesnil!
Looking good to me |
jmesnil
removed
the
missing-reqs
This PR is missing external requirements before it can be merged
label
Nov 24, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… values using environment variables
When validating and setting the value for an attribute, check if there is an env var
that would override its value before doing any expression resolution or
correction.
This feature is enabled by the existence of the
WILDFLY_OVERRIDING_ENV_VARS
environment variable.JIRA: https://issues.redhat.com/browse/WFCORE-5489
Dev analysis is at wildfly/wildfly-proposals#404
Signed-off-by: Jeff Mesnil jmesnil@redhat.com