mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
Merge pull request #970 from openshift/revert-927-aws-public-worker-ips
Revert "pkg/asset/machines/aws/machinesets: Give workers public IPs (for now)"
This commit is contained in:
@@ -6,8 +6,6 @@ import (
|
||||
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/utils/pointer"
|
||||
awsprovider "sigs.k8s.io/cluster-api-provider-aws/pkg/apis/awsproviderconfig/v1alpha1"
|
||||
clusterapi "sigs.k8s.io/cluster-api/pkg/apis/cluster/v1alpha1"
|
||||
|
||||
"github.com/openshift/installer/pkg/types"
|
||||
@@ -90,14 +88,3 @@ func MachineSets(config *types.InstallConfig, pool *types.MachinePool, role, use
|
||||
|
||||
return machinesets, nil
|
||||
}
|
||||
|
||||
// ConfigWorkers sets the PublicIP flag for the given machine sets.
|
||||
//
|
||||
// Deprecated: We'll remove this once the e2e tests no longer require
|
||||
// worker SSH access.
|
||||
func ConfigWorkers(machineSets []clusterapi.MachineSet) {
|
||||
for _, machineSet := range machineSets {
|
||||
providerConfig := machineSet.Spec.Template.Spec.ProviderConfig.Value.Object.(*awsprovider.AWSMachineProviderConfig)
|
||||
providerConfig.PublicIP = pointer.BoolPtr(true)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,7 +100,6 @@ func (w *Worker) Generate(dependencies asset.Parents) error {
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "failed to create worker machine objects")
|
||||
}
|
||||
aws.ConfigWorkers(sets)
|
||||
|
||||
list := listFromMachineSets(sets)
|
||||
raw, err := yaml.Marshal(list)
|
||||
|
||||
Reference in New Issue
Block a user