-
Notifications
You must be signed in to change notification settings - Fork 476
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
Add var.dns_prefix_private_cluster
#584
base: main
Are you sure you want to change the base?
Changes from all commits
a449f9c
7cf3feb
1118b4e
e344c91
02d0df6
6c537ed
6b6e5ea
b1086b7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -9,7 +9,7 @@ locals { | |||||
(contains(["patch"], var.automatic_channel_upgrade) && can(regex("^[0-9]{1,}\\.[0-9]{1,}$", var.kubernetes_version)) && (can(regex("^[0-9]{1,}\\.[0-9]{1,}$", var.orchestrator_version)) || var.orchestrator_version == null)) || | ||||||
(contains(["rapid", "stable", "node-image"], var.automatic_channel_upgrade) && var.kubernetes_version == null && var.orchestrator_version == null) | ||||||
) | ||||||
cluster_name = coalesce(var.cluster_name, trim("${var.prefix}-aks", "-")) | ||||||
cluster_name = try(coalesce(var.cluster_name, trim("${var.prefix}-aks", "-")), "aks") | ||||||
# Abstract the decision whether to create an Analytics Workspace or not. | ||||||
create_analytics_solution = var.log_analytics_workspace_enabled && var.log_analytics_solution == null | ||||||
create_analytics_workspace = var.log_analytics_workspace_enabled && var.log_analytics_workspace == null | ||||||
|
@@ -54,8 +54,15 @@ locals { | |||||
pool.pod_subnet_id | ||||||
] | ||||||
], [var.vnet_subnet_id])) | ||||||
private_dns_zone_name = try(reverse(split("/", var.private_dns_zone_id))[0], null) | ||||||
query_datasource_for_log_analytics_workspace_location = var.log_analytics_workspace_enabled && (var.log_analytics_workspace != null ? var.log_analytics_workspace.location == null : false) | ||||||
subnet_ids = toset([for id in local.potential_subnet_ids : id if id != null]) | ||||||
use_brown_field_gw_for_ingress = var.brown_field_application_gateway_for_ingress != null | ||||||
use_green_field_gw_for_ingress = var.green_field_application_gateway_for_ingress != null | ||||||
valid_private_dns_zone_regexs = [ | ||||||
"private\\.[a-z]+\\.azmk8s\\.io", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
"privatelink\\.[a-z]+\\.azmk8s\\.io", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lonegunmanb can I commit the above change in the regular expression ? thanks |
||||||
"[a-zA-Z0-9\\-]{1,32}\\.private\\.[a-z]+\\.azmk8s\\.io", | ||||||
"[a-zA-Z0-9\\-]{1,32}\\.privatelink\\.[a-z]+\\.azmk8s\\.io", | ||||||
] | ||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the match
[a-z]
should be changed into[a-z0-9]
to match region names with numbers like eastus2