Skip to content

Initial set of modules #1

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

Conversation

bharathkkb
Copy link
Member

@bharathkkb bharathkkb commented Mar 18, 2020

Added modules for

  • GKE Runners
  • MIG Container Runners
  • MIG Native Runners

Added examples for

  • Simple examples on both GKE and MIG Container
  • DIND runner examples on both GKE and MIG Container
  • Packer/Startup script example for MIG Native Runners

@bharathkkb bharathkkb requested a review from morgante March 18, 2020 17:52
@bharathkkb
Copy link
Member Author

@craigdbarber @sethvargo PTAL

@craigdbarber
Copy link

Great work! I'm adding @danawillow to this PR to solicit her feedback. She's the TLM for the gcp-terraform provider and would have a larger context to bring to bear.

repo_owner = var.repo_owner
repo_url = var.repo_url
gh_token = var.gh_token
machine_type = "n1-highcpu-4"

Choose a reason for hiding this comment

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

Why hard code these VM configs? Suggest instead using variables with these as default values.

Copy link
Member Author

Choose a reason for hiding this comment

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

This was something I was testing with, didn't intend to be part of the example. Just for some clarity- anything in examples/* is just an example of how to use the actual modules which reside in modules/*. I have used variables with sane defaults for the modules which will be what the end user directly uses.

repo_url = var.repo_url
gh_token = var.gh_token
machine_type = "n1-highcpu-4"
min_node_count = 3

Choose a reason for hiding this comment

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

Variables for these please

Copy link
Member Author

Choose a reason for hiding this comment

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

This was something I was testing with, didnt intend to be part of the example. Just for some clarity- anything in examples/* is just an example of how to use the actual modules which reside in modules/*. I have used variables with sane defaults for the modules which will be what the end user directly uses.

value = module.runner-gke.kubernetes_endpoint
}

output "client_token" {

Choose a reason for hiding this comment

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

Why do we need to output this?

Copy link
Member Author

Choose a reason for hiding this comment

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

I use these in some of the inspec tests here.

@bharathkkb
Copy link
Member Author

Hi All,
I am merging this PR but we can discuss if there are any additional outstanding items via issues.

@bharathkkb bharathkkb merged commit 20b0737 into terraform-google-modules:master Aug 18, 2020
jwcmd pushed a commit to jwcmd/terraform-google-github-actions-runners that referenced this pull request Nov 19, 2020
…et/update-transient-deps

Use GitHub sources to get master versions of dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants