-
Notifications
You must be signed in to change notification settings - Fork 6
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
env var only config #823
env var only config #823
Conversation
} | ||
) | ||
@ParameterizedTest | ||
public void remoteConfigVars(String paramName) { |
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.
🔴 missing test body
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.
missing test body
@@ -61,6 +61,10 @@ public SecretManagerConfigService(@Assisted("projectId") @NonNull String project | |||
|
|||
@Override | |||
public void putConfigProperty(ConfigProperty property, String value) { | |||
if (property.isEnvVarOnly()) { |
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.
Tip: I like preconditions for these kind of checks.
Preconditions.checkArgument(!property.isEnvVarOnly(), "Can't put env-only config property: " + property);
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.
OK after @jlorper changes
* a bunch of config property stuff * checks for env-var only config * fix missing test :facepalm * CR feedback to use preconditions to check args
Features
Change implications
CHANGELOG.md
anything that will show up interraform plan
/apply
that isn'tobviously a no-op? if anyone is depending on overriding env vars with secrets/parameter store, this will break that
alpha
, requires major versionchange