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

Don't recreate google_container_cluster on master_auth change #1873

Merged
merged 2 commits into from
Aug 15, 2018
Merged

Don't recreate google_container_cluster on master_auth change #1873

merged 2 commits into from
Aug 15, 2018

Conversation

alexey-medvedchikov
Copy link
Contributor

I've used setMasterAuth to implement update of username and password fields. Although there's no possibility to update client_certificate_config. issue_client_certificate value and changing it will recreate cluster (no docs on that BTW. Also, I've stuck to forcing password input from a user and haven't implemented password autogeneration: not very useful feature and it will make the code more complex.

Closes #1820

…hout recreation of cluster, using setMasterAuth method
@nat-henderson
Copy link
Contributor

I've got pretty much the same PR in pretty much the same state on my machine. :) Looks great. The only thing left to do is add tests. Would you like to write the unit tests for yours, or should I write them for mine? :)

@alexey-medvedchikov
Copy link
Contributor Author

@ndmckinley ok, I will write tests tomorrow.

@nat-henderson
Copy link
Contributor

That's great! :)

@alexey-medvedchikov
Copy link
Contributor Author

Added tests, running results:

$ make testacc TEST=./google TESTARGS='-run=TestAccContainerCluster_withMasterAuthConfig$$'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./google -v -run=TestAccContainerCluster_withMasterAuthConfig$ -timeout 120m
=== RUN   TestAccContainerCluster_withMasterAuthConfig
=== PAUSE TestAccContainerCluster_withMasterAuthConfig
=== CONT  TestAccContainerCluster_withMasterAuthConfig
--- PASS: TestAccContainerCluster_withMasterAuthConfig (1005.76s)
PASS
ok  	github.com/terraform-providers/terraform-provider-google/google	1005.796s

@nat-henderson
Copy link
Contributor

Fantastic. I'll run them on my side then merge! :)

@nat-henderson
Copy link
Contributor

Looks good!

@nat-henderson nat-henderson merged commit 3fc71ee into hashicorp:master Aug 15, 2018
@alexey-medvedchikov alexey-medvedchikov deleted the update-master-auth branch August 24, 2018 08:25
@ghost
Copy link

ghost commented Nov 17, 2018

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 Nov 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants