-
Notifications
You must be signed in to change notification settings - Fork 89
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
ec_deployment: Add config to stateless resources #49
ec_deployment: Add config to stateless resources #49
Conversation
Signed-off-by: Marc Lopez <[email protected]>
Signed-off-by: Marc Lopez <[email protected]>
Signed-off-by: Marc Lopez <[email protected]>
Signed-off-by: Marc Lopez <[email protected]>
Signed-off-by: Marc Lopez <[email protected]>
Signed-off-by: Marc Lopez <[email protected]>
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.
Looks good! just a small nit and a question. One more thing, I think you meant to say it resolves #22 not #8
in the description 😄
"docker_image": { | ||
Type: schema.TypeString, | ||
Description: `A docker URI that allows overriding of the default docker image specified for this version`, | ||
Optional: true, | ||
}, | ||
|
||
// APM System Settings | ||
"debug_enabled": { | ||
Type: schema.TypeBool, | ||
Description: `Optionally enable debug mode for APM servers - defaults to false`, | ||
Optional: true, | ||
Default: false, | ||
}, | ||
"elasticsearch_password": { | ||
Type: schema.TypeString, | ||
Description: `Optionally override the account within APM - defaults to a system account that always exists (if specified, the username must also be specified)`, | ||
Optional: true, | ||
}, | ||
"elasticsearch_url": { | ||
Type: schema.TypeString, | ||
Description: `Optionally override the URL to which to send data (for advanced users only, if unspecified the system selects an internal URL)`, | ||
Optional: true, | ||
}, | ||
"elasticsearch_username": { | ||
Type: schema.TypeString, | ||
Description: `Optionally override the account within APM - defaults to a system account that always exists (if specified, the password must also be specified)`, | ||
Optional: true, | ||
}, | ||
"kibana_url": { | ||
Type: schema.TypeString, | ||
Description: `Optionally override the URL to which to send data (for advanced users only, if unspecified the system selects an internal URL)`, | ||
Optional: true, | ||
}, |
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.
What happened to all of these fields? I assume the idea is to parse everything from raw JSON/YAML? just double checking
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.
These fields shouldn't be settable by API users and have the potential to cause breakage in the deployment, so removing them because they're not a good thing to have :D. I talked to Stack and Solutions about it and think that's the best course of action too.
Signed-off-by: Marc Lopez <[email protected]>
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.
🏅
Description
Adds a
config
block to all the stateless resources with the settablesettings being the same across the resources:
user_settings_yaml
user_settings_overrides_yaml
user_settings_json
user_settings_overrides_json
Except for:
secret_token
anddebug_enabled
.secret_session_key
secret_session_key
All the fields above except
apm.debug_enabled
might be removed in thenear future pending an internal discussion.
The pull request has been split in different commits to ease the review
process, the commit names should be enough for the reviewers.
Related Issues
Resolves #22
Resolves #42
Resolves #6
How Has This Been Tested?
Types of Changes