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 NotificationConfig to google_container_cluster #4012

Merged
merged 6 commits into from
Sep 28, 2020
Merged

Add NotificationConfig to google_container_cluster #4012

merged 6 commits into from
Sep 28, 2020

Conversation

freddd
Copy link
Contributor

@freddd freddd commented Sep 24, 2020

This PR aims to introduce the new beta attribute NotificationConfig to google_container_cluster. This is the issue I created in the terraform provider (though in the wrong provider, I should've added it to the beta provider): hashicorp/terraform-provider-google#7337

In order to test this PR I ran:

  • bundle exec compiler -a -v "beta" -e terraform -o "$GOPATH/src/github.com/hashicorp/terraform-provider-google-beta" to generate the provider
  • make test in the provider
  • make lint in the provider
  • rake test in magic modules

References:

If this PR is for Terraform, I acknowledge that I have:

  • Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Generated Terraform, and ran make test and make lint to ensure it passes unit and linter tests.
  • Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • Ran relevant acceptance tests (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read the Release Notes Guide before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

container: Added `notification_config` to `google_container_cluster`

@google-cla google-cla bot added the cla: yes label Sep 24, 2020
@modular-magician
Copy link
Collaborator

Hello! I am a robot who works on Magic Modules PRs.

I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review.

Thanks for your contribution! A human will be with you soon.

@ndmckinley, please review this PR or find an appropriate assignee.

@freddd
Copy link
Contributor Author

freddd commented Sep 24, 2020

Ping @megan07 - this is the PR to replace hashicorp/terraform-provider-google#7338. I can't seem to add you as a reviewer.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 1 file changed, 31 insertions(+))
Terraform Beta: Diff ( 2 files changed, 225 insertions(+), 2 deletions(-))

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform Beta: Diff ( 2 files changed, 225 insertions(+), 2 deletions(-))

@megan07 megan07 requested review from megan07 and removed request for nat-henderson September 24, 2020 13:49
@megan07
Copy link
Contributor

megan07 commented Sep 24, 2020

/gcbrun

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=148414"

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform Beta: Diff ( 2 files changed, 225 insertions(+), 2 deletions(-))

Copy link
Contributor

@megan07 megan07 left a comment

Choose a reason for hiding this comment

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

Hi @freddd! This looks great! Just a few comments on the tests and I think we'll be ready to merge!
Thank you!

@freddd freddd requested a review from megan07 September 25, 2020 07:51
@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform Beta: Diff ( 2 files changed, 202 insertions(+), 2 deletions(-))

@megan07
Copy link
Contributor

megan07 commented Sep 25, 2020

/gcbrun

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=148612"

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform Beta: Diff ( 2 files changed, 202 insertions(+), 2 deletions(-))

@freddd
Copy link
Contributor Author

freddd commented Sep 25, 2020

I can't seem to see why it failed. Cloud build is stating You do not have sufficient permissions to view this page and I can't seem to log into https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=148612.

Copy link
Contributor

@megan07 megan07 left a comment

Choose a reason for hiding this comment

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

Hi @freddd! Sorry for the confusion, I run our entire test suite against previously recorded responses from the API to check that no other tests have been affected - and recently that run has been timing out and showing a failure, but I double-check them and will let you know if there are any errors to worry about. Thanks again!

notification_config {
pubsub {
enabled = true
topic = "google_pubsub_topic.%s.id"
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, I missed this! This shouldn't be in quotes, we want to extrapolate the value from google_pubsub_topic.%s.id, we don't want that string here. Then it should be good!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No worries! I removed the quotes in 3862c14

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform Beta: Diff ( 2 files changed, 202 insertions(+), 2 deletions(-))

@freddd freddd requested a review from megan07 September 28, 2020 06:39
@megan07
Copy link
Contributor

megan07 commented Sep 28, 2020

/gcbrun

@modular-magician
Copy link
Collaborator

I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=149151"

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform Beta: Diff ( 2 files changed, 202 insertions(+), 2 deletions(-))

Copy link
Contributor

@megan07 megan07 left a comment

Choose a reason for hiding this comment

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

Looks great! Tests pass! Thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants