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

Support all asm_install option #890

Conversation

YpNo
Copy link

@YpNo YpNo commented May 9, 2021

Support all asm_install script's option.
Disable enable_cluster_labels and enable_cluster_roles which was enabled by default in the module.

@YpNo YpNo requested review from bharathkkb, Jberlinsky and a team as code owners May 9, 2021 19:00
@comment-bot-dev
Copy link

comment-bot-dev commented May 9, 2021

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

@YpNo
Copy link
Author

YpNo commented May 10, 2021

I just found that the asm_dir option is not used anywhere... I will fix it in this PR.

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 @YpNo

Comment on lines +84 to +95
variable "enable_gcp_apis" {
description = "Whether the needed GCP APIs should be activated."
type = bool
default = false
}

variable "enable_gcp_iam_roles" {
description = "Whether the `resourcemanager.projectIamAdmin` IAM roles should be set."
type = bool
default = false
}

Copy link
Member

Choose a reason for hiding this comment

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

We have disabled these options as we recommend managing most of these via Terraform and not via the ASM installer script. Generally we should try to use native Terraform resources to manage these as much as possible.

Copy link
Author

Choose a reason for hiding this comment

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

You're right but you should let the users choose. Perhaps they had not managed it (or don't want it) with Terraform.
Like enable_cluster_labels and enable_cluster_roles you've enabled it by default. The cluster roles should be managed with native terraform resources.
I hesitated for enable_cluster_labels because if you use it, it adds labels, yes, but for the next terraform apply, the gke module will try to delete those labels because it doesn't manage it itself. On the other hand, it requires to know and manage the labels earlier in the gke module.

When you follow the install_asm documentation, the default examples don't talk about those options and use the "default" installation (without any option).

Regards.

@@ -54,11 +54,65 @@ variable "service_account_key_file" {
variable "asm_version" {
description = "ASM version to deploy. Available versions are documented in https://github.com/GoogleCloudPlatform/anthos-service-mesh-packages"
type = string
default = "1.8"
default = "1.9"
Copy link
Member

Choose a reason for hiding this comment

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

note: breaking change, this will result in delete and recreate

Copy link
Author

Choose a reason for hiding this comment

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

Maybe notice it in the release note ?
Should version change need to execute an upgrade instead ?

We can let "1.8" but we need to explain the risk and the workaround to upgrade or downgrade the version. I didnt try it.

@github-actions
Copy link

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Jul 11, 2021
@bharathkkb
Copy link
Member

Thanks for working on this @YpNo
Looks like most options were added via #895 so closing this.

@bharathkkb bharathkkb closed this Jul 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants