-
Notifications
You must be signed in to change notification settings - Fork 393
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
[data_source_datadog_software_catalog] Adding Software Catalog data source #2822
base: master
Are you sure you want to change the base?
Conversation
@DataDog/web-frameworks Hi, can I have a review on this please? thanks |
42ba3f6
to
bd2d590
Compare
optionalParams.WithPageOffset(offset) | ||
optionalParams.WithPageLimit(limit) | ||
|
||
ddResp, _, err := d.Api.ListCatalogEntity(d.Auth, *optionalParams) |
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.
We'll need to check if the ordering of entities from the API is stable. If not, could we do something to make it stable in the provider code (e.g. order by name). This way we minimize chances of meaningless drifts in plans.
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.
This API endpoint doesnt support ordering, I added sort.Slice to explicitly sort slice before setting it to state in func (d *datadogSoftwareCatalogDataSource) updateState
This PR adds Software Catalog data source, using V2 api for getting Catalog Entities.