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

Updated ASM terraform module for 1.8 and 1.9 #895

Merged
merged 19 commits into from
May 20, 2021
Merged

Updated ASM terraform module for 1.8 and 1.9 #895

merged 19 commits into from
May 20, 2021

Conversation

ameer00
Copy link
Contributor

@ameer00 ameer00 commented May 14, 2021

This is a major update to the current ASM terraform module with the following updates:

  1. Supports ASM versions 1.8 and 1.9 (configurable).
  2. Supports install and upgrade mode (upgrades supports deploying the new control plane only).
  3. Supports all configuration options provided by the install_asm script.
  4. Support skip_validation for CI systems where you dont want the script to perform validation checks.
  5. Allows users to choose the precise git tag for the install_asm script (for example 1.8.2-asm.2+config2).
  6. Support for ASM Managed Control Plane (MCP) v1.9.

@ameer00 ameer00 requested review from bharathkkb, Jberlinsky and a team as code owners May 14, 2021 21:38
@comment-bot-dev
Copy link

comment-bot-dev commented May 14, 2021

Thanks for the PR! 🚀
✅ Lint checks have passed.

Copy link
Member

@bharathkkb bharathkkb left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @ameer00

modules/asm/variables.tf Outdated Show resolved Hide resolved
modules/asm/main.tf Outdated Show resolved Hide resolved
modules/asm/variables.tf Outdated Show resolved Hide resolved
modules/asm/scripts/install_asm.sh Outdated Show resolved Hide resolved
modules/asm/variables.tf Show resolved Hide resolved
modules/asm/README.md Show resolved Hide resolved
examples/simple_zonal_with_asm/variables.tf Outdated Show resolved Hide resolved
modules/asm/scripts/install_asm.sh Show resolved Hide resolved
default = "1.9"
}

variable "asm_git_tag" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need to expose this level of detail? It's a bit concerning if customers are having to separately version the install script from ASM.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this is a feedback directly from Lifecycle eng

default = ""
}

variable "mode" {
Copy link
Contributor

Choose a reason for hiding this comment

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

If a variable has only one acceptable value, it shouldn't be a variable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will soon change to also support upgrade

default = "install"
}

variable "service_account" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to use a service account to authenticate? I'd prefer if we use whatever credentials Terraform is running as (Application Default Credentials).

Downloading service account keys should not be encouraged.

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 agree. The install_asm script supports it as an option and this was a feedback from a partner.

Copy link
Member

@bharathkkb bharathkkb left a comment

Choose a reason for hiding this comment

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

#905 created for follow up

@bharathkkb bharathkkb merged commit e2ba8d2 into terraform-google-modules:master May 20, 2021
@release-please release-please bot mentioned this pull request May 20, 2021
CPL-markus pushed a commit to WALTER-GROUP/terraform-google-kubernetes-engine that referenced this pull request Jul 15, 2024
…-modules#895)

* updated asm module

* updated asm module

* updated asm module

* updated asm module

* updated asm module

* updated asm module

* updated asm module

* updated asm module

* updated asm module

* updated asm module

* updated asm module

* updated asm module

* updated asm module

* updated asm module

* updated asm module

* updated asm module

* updated asm module

Co-authored-by: coder <coder@google.com>
Co-authored-by: Bharath KKB <bharathkrishnakb@gmail.com>
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.

None yet

5 participants