Skip to content

Commit

Permalink
Merge pull request #970 from openshift/revert-927-aws-public-worker-ips
Browse files Browse the repository at this point in the history
Revert "pkg/asset/machines/aws/machinesets: Give workers public IPs (for now)"
  • Loading branch information
openshift-merge-robot authored Dec 22, 2018
2 parents a29ed8f + e026b8d commit c0104bd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions pkg/asset/machines/aws/machinesets.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
}
}
1 change: 0 additions & 1 deletion pkg/asset/machines/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c0104bd

Please sign in to comment.