Skip to content

Conversation

@abhinavdahiya
Copy link
Contributor

@abhinavdahiya abhinavdahiya commented Feb 5, 2019

The installer needs to move towards 1 where the private zone named as cluster_name.base_domain ie. cluster_domain because of 2, but the
public zone still remains base_domain as that cannot be created by instaler.

This means that cluster-ingress-operator cannot use the public r53 zone with the same name as the base_domain from DNS.config.openshift.io 3 as it will be set to the
cluster_domain.

This changes the public zone discovery to find a public zone which is the nearest parent domain to cluster_domain.

/cc @wking @openshift/sig-network-edge

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 5, 2019
@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 5, 2019
The installer needs to move towards [1] where the private zone named as `cluster_name.base_domain` ie. `cluster_domain` because of [2], but the
public zone still remains `base_domain` as that cannot be created by instaler.

This means that cluster-ingress-operator cannot use the public r53 zone with the same name as the `base_domain` from `DNS.config.openshift.io` [3] as it will be set to the
`cluster_domain`.

This changes the public zone discovery to find a public zone which is the nearest parent domain to `cluster_domain`.

[1]: openshift/installer#1169
[2]: openshift/installer#1136
[3]: https://github.com/openshift/api/blob/d67473e7f1907b74d1f27706260eecf0bc9f2a52/config/v1/types_dns.go#L28
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: abhinavdahiya
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: knobunc

If they are not already assigned, you can assign the PR to them by writing /assign @knobunc in a comment when ready.

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@abhinavdahiya abhinavdahiya changed the title WIP: dns/aws: update public zone discovery to search parent domains dns/aws: update public zone discovery to search parent domains Feb 5, 2019
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 5, 2019
@ironcladlou
Copy link
Contributor

/hold

We need to have a discussion about the requirements here

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 5, 2019
@abhinavdahiya
Copy link
Contributor Author

/hold

+1

We need to have a discussion about the requirements here

What kind of requirements? Anything I can include in the commit message for why ?

@ironcladlou
Copy link
Contributor

@abhinavdahiya

What kind of requirements? Anything I can include in the commit message for why ?

Where's the change to the installer which would break our current assumption? Is it now too risky for us to guess hosted zone names to do record CRUD in? Could we get the zone information from cluster config instead? What would that API look like? etc.

@wking
Copy link
Member

wking commented Feb 5, 2019

Where's the change to the installer which would break our current assumption?

Removing the distinction between "cluster name" and "base domain" in favor of a unified "cluster domain". PR moving in this direction (but not yet completely there) is openshift/installer#1169.

Could we get the zone information from cluster config instead?

This sounds reasonable to me, and would save having repeated lookup logic here. As a bonus, if the ingress operator ignored the public zone when the setting was unset, it would allow us to address the "no thanks, I don't want public Route 53" use-case without further ingress changes.

@ironcladlou
Copy link
Contributor

Replaced by #121

/close

@openshift-ci-robot
Copy link
Contributor

@ironcladlou: Closed this PR.

Details

In response to this:

Replaced by #121

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants