Skip to content

Cloudrun v1#2740

Merged
modular-magician merged 17 commits intoGoogleCloudPlatform:masterfrom
chrisst:cloudrun-v1
Nov 27, 2019
Merged

Cloudrun v1#2740
modular-magician merged 17 commits intoGoogleCloudPlatform:masterfrom
chrisst:cloudrun-v1

Conversation

@chrisst
Copy link
Copy Markdown

@chrisst chrisst commented Nov 22, 2019

Tasks

  • need to change import ID to have location as part of it

  • Fix docs with new import id?

  • custom_expander to infer namespace from getProject

  • need to ensure that sql connections can be made with annotations

  • move tests to GA

  • add a test that contains traffic

  • double check of spec.metadata ever comes back as anything.

  • Finish DomainMapping in a separate PR

fixes hashicorp/terraform-provider-google#4334
fixes hashicorp/terraform-provider-google#4933
service account support for hashicorp/terraform-provider-google#4262

Release Note Template for Downstream PRs (will be copied)

`cloudrun`: `cloud_run_service` is now at v1. Significant updates have been made to the resource including a breaking schema change.
`cloudrun`: `cloud_run_domain_mapping` is now at v1.

@modular-magician
Copy link
Copy Markdown
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, e85cea2.

Pull request statuses

No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I built this PR into one or more new PRs on other repositories, and when those are closed, this PR will also be merged and closed.
depends: hashicorp/terraform-provider-google-beta#1426
depends: GoogleCloudPlatform/terraform-google-conversion#267
depends: hashicorp/terraform-provider-google#4972

@modular-magician
Copy link
Copy Markdown
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, c8bc21f.

Pull request statuses

terraform-provider-google-beta already has an open PR.
terraform-google-conversion already has an open PR.
terraform-provider-google already has an open PR.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

@chrisst chrisst removed the request for review from emilymye November 22, 2019 21:37
@chrisst
Copy link
Copy Markdown
Author

chrisst commented Nov 22, 2019

I'm going to fix tests and remove the call to Compute for project comparison then I'll re-request.

@modular-magician
Copy link
Copy Markdown
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, 5c8430d.

Pull request statuses

terraform-provider-google-beta already has an open PR.
terraform-google-conversion already has an open PR.
terraform-provider-google already has an open PR.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

@emilymye emilymye self-requested a review November 22, 2019 23:28
@emilymye emilymye removed their assignment Nov 22, 2019
@modular-magician
Copy link
Copy Markdown
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, addf7d5.

Pull request statuses

terraform-provider-google-beta already has an open PR.
terraform-google-conversion already has an open PR.
terraform-provider-google already has an open PR.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

@emilymye
Copy link
Copy Markdown
Contributor

@chrisst still reviewing but i updated the auto-changelog - now if you have multiple items, put them in different release notes like so. Also, it's technically not new, right? I put them as breaking-changes, but feel free to change.

@chrisst
Copy link
Copy Markdown
Author

chrisst commented Nov 23, 2019

@emilymye it's new for the GA provider, and breaking change for the Beta provider... does changelog gen handle that?

@modular-magician
Copy link
Copy Markdown
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, f8479d8.

Pull request statuses

terraform-provider-google-beta already has an open PR.
terraform-google-conversion already has an open PR.
terraform-provider-google already has an open PR.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

@modular-magician
Copy link
Copy Markdown
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, c434d43.

Pull request statuses

terraform-provider-google-beta already has an open PR.
terraform-google-conversion already has an open PR.
terraform-provider-google already has an open PR.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

@modular-magician
Copy link
Copy Markdown
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, 4870072.

Pull request statuses

terraform-provider-google-beta already has an open PR.
terraform-google-conversion already has an open PR.
terraform-provider-google already has an open PR.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

@modular-magician
Copy link
Copy Markdown
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, 969a61b.

Pull request statuses

terraform-provider-google-beta already has an open PR.
terraform-google-conversion already has an open PR.
terraform-provider-google already has an open PR.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

@modular-magician
Copy link
Copy Markdown
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, 3defec7.

Pull request statuses

terraform-provider-google-beta already has an open PR.
terraform-google-conversion already has an open PR.
terraform-provider-google already has an open PR.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

return "", err
}
return re.ReplaceAllStringFunc(linkTmpl, f), nil
final, err := re.ReplaceAllStringFunc(linkTmpl, f), nil
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

when build works but vet fails on next line (err = nil so err can't be nil)

<% end -%>
transformed := make(map[string]interface{})
<% property.properties.each do |prop| -%>
<% property.properties.reject(&:ignore_read).each do |prop| -%>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i believe we can't do this because it'll cause a diff when we set a nested object to a nested object with no value set for the ignore_read fields - we really need the value for d.Get("a.0.nested.0.field") but that's tough with hashes for sets (see https://github.com/GoogleCloudPlatform/magic-modules/issues/1019)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Ah right. I think in another PR we should just fail on nested ignore_read since right now they appear to be silently not doing anything.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

a great idea!

@modular-magician
Copy link
Copy Markdown
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, 6c098bd.

Pull request statuses

terraform-provider-google-beta already has an open PR.
terraform-google-conversion already has an open PR.
terraform-provider-google already has an open PR.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

Copy link
Copy Markdown
Contributor

@emilymye emilymye left a comment

Choose a reason for hiding this comment

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

If test pass I am 👍

@modular-magician
Copy link
Copy Markdown
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, 6c098bd.

Pull request statuses

terraform-provider-google-beta already has an open PR.
terraform-google-conversion already has an open PR.
terraform-provider-google already has an open PR.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

Chris Stephens added 16 commits November 26, 2019 16:08
Allow import ids to contain location so that a full GET url can be constructed
Enable recursive substituion for replaceVars. This will allow region to be
injected into the cloudrun baseurl even when using base url overrides.
Add customDiff to support translating project number into a project name. The
namespace field supports both but will only return the project number which
will result in a permadiff without it.
Introduce metadata for revisions
De-nest spec so that revision metadata doesn't collide with the other flattened
metadata. Also keeps that metadata scoped to the revision template which makes
much more sense logically
Add a new test which associates a sql instance with a cloudrun instance
Once the replacement string has been identified an early return from the
replaceVars method means not checking every subsequent block to see if the
string has already been found. However we always need to identify if the final
substitution contains another replacable variable.
Reasons added in the comments for metadata.namespace
updating ID's for domainMapping and Service
Tracked submodules are build/terraform-beta build/terraform-mapper build/terraform build/ansible build/inspec.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update cloud run to v1 API Cloud Run: default values for location (region) and namespace

4 participants