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

Allow user provided domain #82

Merged
merged 1 commit into from
Oct 17, 2023
Merged

Allow user provided domain #82

merged 1 commit into from
Oct 17, 2023

Conversation

chiayi
Copy link
Collaborator

@chiayi chiayi commented Oct 17, 2023

No description provided.

@chiayi chiayi requested a review from imreddy13 October 17, 2023 20:01
jupyter-on-gke/iap_module/variables.tf Show resolved Hide resolved
default = ""
}

variable "url_domain_name" {
Copy link
Collaborator

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?

Copy link
Collaborator Author

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}"
Copy link
Collaborator

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?

Copy link
Collaborator Author

@chiayi chiayi Oct 17, 2023

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)

@chiayi chiayi merged commit daace3f into main Oct 17, 2023
4 checks passed
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.

2 participants