Skip to content
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

Conversation

jmesnil
Copy link
Member

@jmesnil jmesnil commented Oct 18, 2021

… 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

@jmesnil
Copy link
Member Author

jmesnil commented Oct 18, 2021

supersedes #4639

@jmesnil 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 github-actions bot added the deps-ok Dependencies have been checked, and there are no significant changes label Oct 18, 2021
@jmesnil jmesnil force-pushed the WFCORE-5489_override_attribute_value_from_env_var branch from afdf45f to 5afc50b Compare October 18, 2021 10:32
@jmesnil jmesnil force-pushed the WFCORE-5489_override_attribute_value_from_env_var branch from 5afc50b to 056c62b Compare October 27, 2021 08:29
@wildfly wildfly deleted a comment from wildfly-ci Oct 29, 2021
@jmesnil
Copy link
Member Author

jmesnil commented Nov 3, 2021

Community Documentation is in PR wildfly/wildfly#14418

@vsalbaba
Copy link

vsalbaba commented Nov 3, 2021

LGTM

controller/pom.xml Outdated Show resolved Hide resolved
@jmesnil jmesnil force-pushed the WFCORE-5489_override_attribute_value_from_env_var branch from cce4b54 to e8ef138 Compare November 18, 2021 10:55
… 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 jmesnil force-pushed the WFCORE-5489_override_attribute_value_from_env_var branch from e8ef138 to 7c284db Compare November 18, 2021 15:33
Copy link
Contributor

@bstansberry bstansberry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @jmesnil!

@vsalbaba
Copy link

Looking good to me

@jmesnil jmesnil merged commit 096c5da into wildfly:main Nov 24, 2021
@jmesnil 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
Labels
deps-ok Dependencies have been checked, and there are no significant changes Feature This PR adds a new feature to WildFly
Projects
None yet
3 participants