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

resource/cloudflare_argo: Allow settings to be individually customised #703

Merged
merged 2 commits into from
Jun 15, 2020

Conversation

jacobbednarz
Copy link
Member

@jacobbednarz jacobbednarz commented Jun 9, 2020

There was an assumption in this resource that when you were applying one
of the settings, that you would have entitlements to both and you would
be explicitly setting both during the resource management. This isn't
the case and there are scenarios where someone will manage the
tiered_caching setting without the entitlement to toggle
smart_routing to the default value of "off".

This splits the two API calls to be individually managed and only
applied if there is a value provided for both (customised or default
doesn't matter). In this PR, we're also removing the default value for
these two properties to help differentiate whether or not the value
has been defined.

Fixes #701

@ghost ghost added the size/XS label Jun 9, 2020
@jacobbednarz jacobbednarz force-pushed the split-argo-entitlements branch from 1e5c8dd to 3f633d6 Compare June 9, 2020 23:26
There was an assumption in this resource that when you were applying one
of the settings, that you would have entitlements to both and you would
be explicitly setting both during the resource management. This isn't
the case[1] and there are scenarios where someone will manage the
`tiered_caching` setting without the entitlement to toggle
`smart_routing` to the default value of "off".

This splits the two API calls to be individually managed and only
applied if there is a value provided for both (customised or default
doesn't matter)

Fixes cloudflare#701

[1]: terraform-providers/terraform-provider-cloudflare#701
@jacobbednarz jacobbednarz force-pushed the split-argo-entitlements branch from 3f633d6 to a89e8c4 Compare June 9, 2020 23:47
@ghost ghost added size/M kind/documentation Categorizes issue or PR as related to documentation. and removed size/XS labels Jun 9, 2020
@jacobbednarz jacobbednarz changed the title argo: Allow settings to be individually customised resource/cloudflare_argo: Allow settings to be individually customised Jun 9, 2020
@patryk patryk merged commit 639c5c8 into cloudflare:master Jun 15, 2020
boekkooi-lengoo pushed a commit to boekkooi-lengoo/terraform-provider-cloudflare that referenced this pull request Feb 28, 2022
remove feature for deleting Notification PagerDuty destinations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Categorizes issue or PR as related to documentation. size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cloudflare_argo Tiered Caching only = "HTTP status 401: invalid credentials"
2 participants