Open rohanKanojia opened 1 day ago
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign evidolob for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
Hi @rohanKanojia. Thanks for your PR.
I'm waiting for a crc-org member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test
on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test
label.
I understand the commands that are listed here.
Fixes: Issue #4410 Relates to: Issue #4410
Solution/Idea
Add another entry in
/etc/hosts/
forhost.crc.testing
domain as suggested in https://github.com/crc-org/crc/issues/4410#issuecomment-2431907547Proposed changes
GetHostName()
to CrcBundleInfo struct in order to provide host domaindns.addOpenShiftHosts
in order to add another dns entry forhost.crc.testing
Testing
After doing
crc start
you'd notice an additional entry in/etc/hosts
forhost.crc.testing
Old state of
/etc/hosts
New state of
/etc/hosts
(after these changes):