Skip to content

Open Service Mesh addon#132

Merged
lonegunmanb merged 6 commits intoAzure:masterfrom
nlamirault:feat/addon-osm
Jul 8, 2022
Merged

Open Service Mesh addon#132
lonegunmanb merged 6 commits intoAzure:masterfrom
nlamirault:feat/addon-osm

Conversation

@nlamirault
Copy link
Copy Markdown
Contributor

@nlamirault nlamirault commented Nov 26, 2021

This PR add support for Open Service Mesh for AKS

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
@nlamirault nlamirault changed the title Add: Open Service Mesh addon Open Service Mesh addon Nov 26, 2021
Comment thread main.tf Outdated
open_service_mesh {
enabled = var.enable_open_service_mesh
}

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.

Looking at the documentation this is not a block:
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#open_service_mesh_enabled

It should be a oneliner:

open_service_mesh_enabled = var.enable_open_service_mesh

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 actually tested this and it works with provider registry.terraform.io/hashicorp/azurerm v2.99.0. The change I proposed will be needed once the module will use the version 3 of the provider.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@zioproto you're right. For now this module works with provider 2.x so this patch is correct, but we're close to merge a pr that upgrade provider to 3.x so I'm not sure whether we should continue work on 2.x. My thought is we upgrade to 3.x first then let's see what we can do for this pr.

Comment thread main.tf Outdated
}

open_service_mesh_enabled = var.enable_open_service_mesh

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.

@nlamirault you introduced a line with empty spaces at line 102. We are going to introduce very soon a CI that will lint the code, and this file will not pass the linting. Could you please remove the empty spaces ?

To avoid this pain in the future you can set your editor to automatically trim empty spaces at the end of lines when you save the files. Thank you

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sorry 👎 I made the fix using Github UI ... I fix that asap.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi @zioproto agreed but I think we can accept this pr for this time since we'll submit a single pr to fix all the naming issues and style issues.

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Copy link
Copy Markdown
Member

@lonegunmanb lonegunmanb left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @nlamirault

Copy link
Copy Markdown
Member

@lonegunmanb lonegunmanb left a comment

Choose a reason for hiding this comment

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

Hi @nlamirault these changes LGTM but there're some conflicts because we've accepted some prs, would you please solve these conflicts so I can merge this pr? Thanks!

Copy link
Copy Markdown
Member

@lonegunmanb lonegunmanb left a comment

Choose a reason for hiding this comment

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

Almost LGTM but two tiny issues, would you consider make change? Thanks @nlamirault !

Comment thread variables.tf Outdated
}

variable "enable_open_service_mesh" {
description = "Enable Open Service Mesh Addon."
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we use the same description as provider's document?

Comment thread variables.tf Outdated
variable "enable_open_service_mesh" {
description = "Enable Open Service Mesh Addon."
type = bool
default = false
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would the default value null be better? A false default value will cause changes in plan when the users upgrade module's value.

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Copy link
Copy Markdown
Member

@lonegunmanb lonegunmanb left a comment

Choose a reason for hiding this comment

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

Thanks @nlamirault , LGTM

@lonegunmanb lonegunmanb merged commit 953a91f into Azure:master Jul 8, 2022
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