Skip to content
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

Add support for DNS tags and comments #2105

Merged
merged 7 commits into from Jan 9, 2023

Conversation

Cyb3r-Jak3
Copy link
Contributor

Requires #2102 and cloudflare/cloudflare-go#1151

Adds support for adding tags and comments

Opened as draft as haven't been able to run acceptances tests yet as there are breaking changes that need to be resolved with #2102

@github-actions
Copy link
Contributor

changelog detected ✅

@carl-armis
Copy link

Any way we could get this fast tracked? This is a very valuable feature for enterprise.

@janik-cloudflare
Copy link
Member

🎉 Thank you so much @Cyb3r-Jak3! I built the API for this feature, let me know if there's anything I can help with (but it looks like this is pretty much done already and just needs a rebase?)

@Cyb3r-Jak3
Copy link
Contributor Author

Marking this as ready as the changes are in the go SDK and acceptance tests pass when using it.

root@4bc1654e26fd:/workspaces/terraform-provider-cloudflare# TESTARGS='-run "^TestAccCloudflareRecord" -count 1 -parallel 1' make testacc
TF_ACC=1 go test $(go list ./...) -v -run "^TestAccCloudflareRecord" -count 1 -parallel 1 -timeout 120m -parallel 1
?       github.com/cloudflare/terraform-provider-cloudflare     [no test files]
=== RUN   TestAccCloudflareRecordDataSource
--- PASS: TestAccCloudflareRecordDataSource (4.73s)
=== RUN   TestAccCloudflareRecordDataSourceTXT
--- PASS: TestAccCloudflareRecordDataSourceTXT (4.82s)
=== RUN   TestAccCloudflareRecordDataSourceMX
--- PASS: TestAccCloudflareRecordDataSourceMX (4.84s)
=== RUN   TestAccCloudflareRecord_ImportBasic
--- PASS: TestAccCloudflareRecord_ImportBasic (3.89s)
=== RUN   TestAccCloudflareRecord_ImportSRV
--- PASS: TestAccCloudflareRecord_ImportSRV (4.15s)
=== RUN   TestAccCloudflareRecord_Basic
=== PAUSE TestAccCloudflareRecord_Basic
=== RUN   TestAccCloudflareRecord_CaseInsensitive
=== PAUSE TestAccCloudflareRecord_CaseInsensitive
=== RUN   TestAccCloudflareRecord_Apex
=== PAUSE TestAccCloudflareRecord_Apex
=== RUN   TestAccCloudflareRecord_LOC
=== PAUSE TestAccCloudflareRecord_LOC
=== RUN   TestAccCloudflareRecord_SRV
=== PAUSE TestAccCloudflareRecord_SRV
=== RUN   TestAccCloudflareRecord_CAA
=== PAUSE TestAccCloudflareRecord_CAA
=== RUN   TestAccCloudflareRecord_Proxied
=== PAUSE TestAccCloudflareRecord_Proxied
=== RUN   TestAccCloudflareRecord_Updated
=== PAUSE TestAccCloudflareRecord_Updated
=== RUN   TestAccCloudflareRecord_typeForceNewRecord
=== PAUSE TestAccCloudflareRecord_typeForceNewRecord
=== RUN   TestAccCloudflareRecord_hostnameForceNewRecord
=== PAUSE TestAccCloudflareRecord_hostnameForceNewRecord
=== RUN   TestAccCloudflareRecord_CreateAfterManualDestroy
=== PAUSE TestAccCloudflareRecord_CreateAfterManualDestroy
=== RUN   TestAccCloudflareRecord_TtlValidation
=== PAUSE TestAccCloudflareRecord_TtlValidation
=== RUN   TestAccCloudflareRecord_ExplicitProxiedFalse
=== PAUSE TestAccCloudflareRecord_ExplicitProxiedFalse
=== RUN   TestAccCloudflareRecord_MXWithPriorityZero
=== PAUSE TestAccCloudflareRecord_MXWithPriorityZero
=== RUN   TestAccCloudflareRecord_TtlValidationUpdate
=== PAUSE TestAccCloudflareRecord_TtlValidationUpdate
=== RUN   TestAccCloudflareRecord_HTTPS
=== PAUSE TestAccCloudflareRecord_HTTPS
=== RUN   TestAccCloudflareRecord_MXNull
=== PAUSE TestAccCloudflareRecord_MXNull
=== CONT  TestAccCloudflareRecord_Basic
--- PASS: TestAccCloudflareRecord_Basic (3.62s)
=== CONT  TestAccCloudflareRecord_hostnameForceNewRecord
--- PASS: TestAccCloudflareRecord_hostnameForceNewRecord (6.85s)
=== CONT  TestAccCloudflareRecord_MXNull
--- PASS: TestAccCloudflareRecord_MXNull (4.50s)
=== CONT  TestAccCloudflareRecord_HTTPS
--- PASS: TestAccCloudflareRecord_HTTPS (3.08s)
=== CONT  TestAccCloudflareRecord_TtlValidationUpdate
--- PASS: TestAccCloudflareRecord_TtlValidationUpdate (7.56s)
=== CONT  TestAccCloudflareRecord_MXWithPriorityZero
--- PASS: TestAccCloudflareRecord_MXWithPriorityZero (3.22s)
=== CONT  TestAccCloudflareRecord_ExplicitProxiedFalse
--- PASS: TestAccCloudflareRecord_ExplicitProxiedFalse (8.39s)
=== CONT  TestAccCloudflareRecord_TtlValidation
--- PASS: TestAccCloudflareRecord_TtlValidation (0.80s)
=== CONT  TestAccCloudflareRecord_CreateAfterManualDestroy
--- PASS: TestAccCloudflareRecord_CreateAfterManualDestroy (6.57s)
=== CONT  TestAccCloudflareRecord_CAA
--- PASS: TestAccCloudflareRecord_CAA (6.86s)
=== CONT  TestAccCloudflareRecord_typeForceNewRecord
--- PASS: TestAccCloudflareRecord_typeForceNewRecord (6.93s)
=== CONT  TestAccCloudflareRecord_Updated
--- PASS: TestAccCloudflareRecord_Updated (7.74s)
=== CONT  TestAccCloudflareRecord_Proxied
--- PASS: TestAccCloudflareRecord_Proxied (3.77s)
=== CONT  TestAccCloudflareRecord_LOC
--- PASS: TestAccCloudflareRecord_LOC (3.77s)
=== CONT  TestAccCloudflareRecord_SRV
--- PASS: TestAccCloudflareRecord_SRV (5.71s)
=== CONT  TestAccCloudflareRecord_Apex
--- PASS: TestAccCloudflareRecord_Apex (3.59s)
=== CONT  TestAccCloudflareRecord_CaseInsensitive
--- PASS: TestAccCloudflareRecord_CaseInsensitive (4.78s)
PASS
ok      github.com/cloudflare/terraform-provider-cloudflare/internal/provider   110.214s

@Cyb3r-Jak3 Cyb3r-Jak3 marked this pull request as ready for review December 28, 2022 19:43
@jacobbednarz jacobbednarz added the workflow/pending-upstream-library Indicates an issue or PR requires changes from an upstream library. label Dec 28, 2022
@jacobbednarz
Copy link
Member

looks good with this shimmed in, thanks. i'll get this merged once cloudflare-go release lands next week.

@ahrenstein
Copy link

looks good with this shimmed in, thanks. i'll get this merged once cloudflare-go release lands next week.

Is there a PR or Issue I can track to see when this is completed?

@jacobbednarz jacobbednarz merged commit 02bf98d into cloudflare:master Jan 9, 2023
@github-actions github-actions bot added this to the v3.32.0 milestone Jan 9, 2023
github-actions bot pushed a commit that referenced this pull request Jan 9, 2023
@github-actions
Copy link
Contributor

This functionality has been released in v3.32.0 of the Terraform Cloudflare Provider.

Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@sirwolfgang
Copy link

I am currently attempting to apply tags to my dns records, and they don't seem to stick; Is this expected? Should I be overwriting?

@Cyb3r-Jak3 Cyb3r-Jak3 deleted the dns-comments-tags branch January 11, 2023 19:45
@Cyb3r-Jak3
Copy link
Contributor Author

@sirwolfgang You should open an issue if you are expecting an issue with the tags

@lvets lvets mentioned this pull request Jan 16, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
workflow/pending-upstream-library Indicates an issue or PR requires changes from an upstream library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants