-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add vSphere VIP support #2930
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
Add vSphere VIP support #2930
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,8 @@ import ( | |
| baremetaltypes "github.com/openshift/installer/pkg/types/baremetal" | ||
| openstacktypes "github.com/openshift/installer/pkg/types/openstack" | ||
| openstackdefaults "github.com/openshift/installer/pkg/types/openstack/defaults" | ||
| "github.com/openshift/installer/pkg/types/ovirt" | ||
| ovirttypes "github.com/openshift/installer/pkg/types/ovirt" | ||
| vspheretypes "github.com/openshift/installer/pkg/types/vsphere" | ||
| ) | ||
|
|
||
| // pointerIgnitionConfig generates a config which references the remote config | ||
|
|
@@ -30,8 +31,10 @@ func pointerIgnitionConfig(installConfig *types.InstallConfig, rootCA []byte, ro | |
| } else { | ||
| ignitionHost = fmt.Sprintf("api-int.%s:22623", installConfig.ClusterDomain()) | ||
| } | ||
| case ovirt.Name: | ||
| case ovirttypes.Name: | ||
| ignitionHost = fmt.Sprintf("%s:22623", installConfig.Ovirt.APIVIP) | ||
| case vspheretypes.Name: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mtnbikenc @vrutkovs right here is where ignition is broken. Need to add a check for empty string APIVIP
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| ignitionHost = fmt.Sprintf("%s:22623", installConfig.VSphere.APIVIP) | ||
| default: | ||
| ignitionHost = fmt.Sprintf("api-int.%s:22623", installConfig.ClusterDomain()) | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,14 +3,15 @@ package tls | |
| import ( | ||
| "crypto/x509" | ||
| "crypto/x509/pkix" | ||
| "github.com/openshift/installer/pkg/types/ovirt" | ||
| "net" | ||
|
|
||
| "github.com/openshift/installer/pkg/asset" | ||
| "github.com/openshift/installer/pkg/asset/installconfig" | ||
| baremetaltypes "github.com/openshift/installer/pkg/types/baremetal" | ||
| openstacktypes "github.com/openshift/installer/pkg/types/openstack" | ||
| openstackdefaults "github.com/openshift/installer/pkg/types/openstack/defaults" | ||
| ovirttypes "github.com/openshift/installer/pkg/types/ovirt" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Intentionally included here?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was standardizing the imports to use |
||
| vspheretypes "github.com/openshift/installer/pkg/types/vsphere" | ||
| ) | ||
|
|
||
| // MCSCertKey is the asset that generates the MCS key/cert pair. | ||
|
|
@@ -55,9 +56,14 @@ func (a *MCSCertKey) Generate(dependencies asset.Parents) error { | |
| } | ||
| cfg.IPAddresses = []net.IP{apiVIP} | ||
| cfg.DNSNames = []string{hostname, apiVIP.String()} | ||
| case ovirt.Name: | ||
| case ovirttypes.Name: | ||
| cfg.IPAddresses = []net.IP{net.ParseIP(installConfig.Config.Ovirt.APIVIP)} | ||
| cfg.DNSNames = []string{hostname, installConfig.Config.Ovirt.APIVIP} | ||
| case vspheretypes.Name: | ||
| if installConfig.Config.VSphere.APIVIP != "" { | ||
| cfg.IPAddresses = []net.IP{net.ParseIP(installConfig.Config.VSphere.APIVIP)} | ||
| cfg.DNSNames = []string{hostname, installConfig.Config.VSphere.APIVIP} | ||
| } | ||
| default: | ||
| cfg.DNSNames = []string{hostname} | ||
| } | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Intentionally included here?
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.
@rgolangh FYI if so.
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.
I was standardizing the imports to use
*types. I can back that out if it is an issue.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.
lets leave it, just wanted to make sure that it wasn't an oversight