-
Notifications
You must be signed in to change notification settings - Fork 468
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?
Conversation
Warning We do have a
Would it be okay to have |
Thanks for your review @zioproto , quite good catch! I've removed An empty string for |
…ter` can be specified
During the testing I figure out we need more code. I pushed 2 commits with more preconditions. There is another problem. the private dns zone name should be in either of these formats:
Should we also create the necessary role assignments ? The docs say: |
Another problem. The default value for |
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 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
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", | ||
"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.
same here:
the match [a-z] should be changed into [a-z0-9] to match region names with numbers like eastus2
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
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 comment
The reason will be displayed to describe this comment to others. Learn more.
"private\\.[a-z]+\\.azmk8s\\.io", | |
"private\\.[a-z0-9]+\\.azmk8s\\.io", |
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", | ||
"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.
"privatelink\\.[a-z]+\\.azmk8s\\.io", | |
"privatelink\\.[a-z0-9]+\\.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.
@lonegunmanb can I commit the above change in the regular expression ? thanks
Describe your changes
Issue number
#568
Checklist before requesting a review
CHANGELOG.md
fileThanks for your cooperation!