Skip to content

Trailing periods in base domains #831

@wgordon17

Description

@wgordon17

Version

$ openshift-install version
bin/openshift-install v0.5.0-master-36-gb4f5ceb6bfde8d3dc0e29f708e0494488ea37ee0
Terraform v0.11.10

Platform (aws|libvirt|openstack):

aws

What happened?

Running the provided help script for base domain (aws route53 list-hosted-zones --query 'HostedZones[? !(Config.PrivateZone)].Name' --output text) causes the output of a domain with a trailing period, e.g., example.com.. Copy/pasting this directly into the installer causes the generated kubeconfig to also contain the trailing period...there may also be other areas where this trailing period sticks around. But nothing ended up working, so I just nuked the cluster and rebuilt without the trailing period.

What you expected to happen?

Either automatically strip the trailing period, or provide some validation on the text to ensure only a validly formatted domain name is accepted

How to reproduce it (as minimally and precisely as possible)?

$ openshift-installer create cluster
? SSH Public Key <none>
? Base Domain example.com.
....

Check kubeconfig

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions