Skip to content

Add diff suppress for empty network policy provider in GKE cluster #1034

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

Merged
merged 2 commits into from
Feb 1, 2018

Conversation

emilymye
Copy link
Contributor

@emilymye emilymye commented Jan 31, 2018

Fixes #1031

make test TEST=./google TESTARGS='-run=TestEmptyOrDefaultStringSuppress'
==> Checking that code complies with gofmt requirements...
go test -i ./google || exit 1
echo ./google |
xargs -t -n4 go test -run=TestEmptyOrDefaultStringSuppress -timeout=30s -parallel=4
go test -run=TestEmptyOrDefaultStringSuppress -timeout=30s -parallel=4 ./google
ok github.com/terraform-providers/terraform-provider-google/google 0.170s

@emilymye emilymye requested review from danawillow and rosbo January 31, 2018 22:38
@@ -310,6 +310,7 @@ func resourceContainerCluster() *schema.Resource {
},
},
},
DiffSuppressFunc: emptyOrDefaultStringSuppress("PROVIDER_UNSPECIFIED"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the DiffSuppressFunc should be on the provider field under network_policy. Could you test quickly with a simple config that it works and reports to the PR about your test. Thanks :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how it worked before - anyways, done! I added some test steps to the network policy test as well.

@emilymye emilymye force-pushed the container_network_policy_1031 branch from da465a9 to 10ef26a Compare February 1, 2018 18:25
@emilymye emilymye merged commit 9ca905d into hashicorp:master Feb 1, 2018
@emilymye emilymye deleted the container_network_policy_1031 branch February 1, 2018 18:33
modular-magician added a commit to modular-magician/terraform-provider-google that referenced this pull request Sep 27, 2019
@ghost
Copy link

ghost commented Mar 29, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants