-
Notifications
You must be signed in to change notification settings - Fork 94
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
Fix fleet resources not having ID set on import #447
Conversation
- Fixed fleet objects not having an ID set when importing. - Update fleet documentation to remove kibana space id
Tested importing agent policy, fleet server host, and output:
|
I noticed when testing this that there seem to be some breaking changes around the provider schema, specifically when providing provider "elasticstack" {
fleet {
endpoint = "https://localhost:5601"
username = "elastic"
password = "abcd1234"
insecure = true
}
} Yields:
Kibana has the same problem. If I move those to Not sure if this was intentional or if you've seen anything with this, yet. |
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.
LGTM
@tobio, @taylor-swanson would it be possible to have a new release including this fix, maybe v0.9.1? |
Yea, we get these two released. It feels worthwhile waiting for #454 as well unless you think that one might get delayed? |
*_id
value is used from the schema. For all other modes (update, read, delete), the existing/provided ID is used. This resolves the issue where the*_id
value (even if it was empty) would override the provided ID value (i.e., during import).Related issues: