-
Notifications
You must be signed in to change notification settings - Fork 192
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
Allow user provided domain #82
Conversation
default = "" | ||
} | ||
|
||
variable "url_domain_name" { |
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.
What is name vs address? Where is name used?
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.
So the name is used by the ingress annotations. It's used to specify the global ip address.
} | ||
|
||
# Ingress for IAP | ||
resource "kubectl_manifest" "static_ingress" { | ||
override_namespace = var.namespace | ||
|
||
yaml_body = templatefile("${path.module}/deployments/static-ingress.yaml", { | ||
static_addr_name = "${google_compute_global_address.default.name}" | ||
static_addr_name = var.url_domain_addr != "" ? var.url_domain_name : "${google_compute_global_address.default[0].name}" |
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.
should this be url_domain_name?
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.
So we don't want it to use the domain name if we are reserving an IP for them. I specified in the variable description that the domain name will only be used if they provide a domain url. Let me know if I should add more or clarify somewhere else as well. (Outside of the variable file mentioned earlier)
No description provided.