-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature Branch for ib go client migration (#317)
* Migrated terraform provider to a new version of IB go cli * Updated some of the field usages, since many of the fields in new client are now references instead of original objects. * Updated some terraform-plugin-sdk dependencies to run acceptance tests. * Updated terraform-plugin-sdk dependency * Updated terraform-plugin-sdk dependency from v2.4.3 to v2.27.0. * Changed "network" data source * Implemented a new way to search for a network resource using filters. EA search is supported by appending asterisk to the search key. * Updated vendor dir after upgrading terraform-provider-sdk * Changed network container data source * Rewrote read schema and logic for network container data source. Search by extensible attributes is now available for this data source. * Fixed small bugs for network data source * Changed network view data source * Rewrote read schema and logic for network view data source. Search by extensible attributes is now available for this data source. * Changed terraform-plugin-sdk version from v2.27.0 to v2.19.0 * Version v2.27.0 is not compatible with go 1.17, which is used to compile this terraform provider. * Fixed resource_infoblox_cname_record_test.go * Some checks were failing because of updated field types in CNAME record struct. * Updated 'ext_attrs' field in the network resource * Changed 'ext_attrs' field type from String to Map. * Added extAttrsDiffSuppressFunc to suppress diff for EA entry, if state value is provided, but config value is not provided (e.g. in case of EA inheritance). * Created acceptance test to validate that terraform provider won't try to remove EAs, that added by outside tool (e.g. NIOS in case of EA inheritance). * Added test case for inherited network EA update * In case, if inherited EA is specified in configuration, it should be overridden by terraform. * Fixes nil pointer dereference panic in ip allocation * Re-implemented inherited EA support * Previous solution containing a diff suppress function had a problem with EA delete operations, since diff suppress function doesn't have the access to actual API object state. * Now, inherited EAs are omitted on the read stage and added back on the update stage. * Added two helper functions for serialization and deserialization EAs into/from JSON formatted string, which is usually used as a value of 'ext_attrs' fields. * fixing the tests: part 1 * Added support for EA definition API resource * This resource could be used for creating EA definition (e.g. in acceptance tests). * Added EA inheritance support for network container * Now inherited EAs won't be removed by terraform on a second apply step. * fixing the tests: part 2 * fixing the tests: part 3, final * Added support for EA search for record objects * Fixes minor issue in TXT Record unit tests * Fixed IP allocation tests * Added EA inheritance support for network view resource * Added DNS view terraform resource, small EA def refactoring * `infoblox_zone_auth` resource implementation. Based on b9fe7c2 * Implemented EA inheritance support for IP allocation object * Added EA inheritance fix for record objects * Updating vendor dir and dependencies of go-client * Added Zone Auth datasource with EA search feature * Added DNS View datasource feature and Import Functionality * Removing EA definition resource part * Added supported arguments for filters in docs * Fixes EA's are imported as null in state * Fixes EA inheritance issues for updating specified EAs and required EAs * Updates vendor directory with Multi Value EASearch Fix * Fixes Error Message is not handled while updating A, AAAA * Fixes Multi-value search fails while user provide space in a comma * Fixes Auth Zone fails to update with NSGroup Field * Updates documentation with filters info and newly added objects * Updated the list of resources and datasources in index * Updated go-client new changes in dependencies * Updates Datasource Example files --------- Co-authored-by: Aleksei Chernevskii <aleksei_chernevskii@epam.com> Co-authored-by: Sergey Kudriavtsev <skudriavtsev@infoblox.com>
- Loading branch information
1 parent
0e36596
commit 757dcea
Showing
1,240 changed files
with
94,765 additions
and
207,222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.