Skip to content

Commit

Permalink
Merge pull request openshift#1027 from enxebre/providerspec
Browse files Browse the repository at this point in the history
Providerspec
  • Loading branch information
openshift-merge-robot authored Jan 9, 2019
2 parents 3166250 + 188884e commit 6880b3e
Show file tree
Hide file tree
Showing 23 changed files with 1,884 additions and 56 deletions.
20 changes: 14 additions & 6 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pkg/asset/machines/aws/machines.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func Machines(config *types.InstallConfig, pool *types.MachinePool, role, userDa
},
},
Spec: clusterapi.MachineSpec{
ProviderConfig: clusterapi.ProviderConfig{
ProviderSpec: clusterapi.ProviderSpec{
Value: &runtime.RawExtension{Object: provider},
},
// we don't need to set Versions, because we control those via operators.
Expand Down Expand Up @@ -122,9 +122,9 @@ func tagsFromUserTags(clusterID, clusterName string, usertags map[string]string)
// ConfigMasters sets the PublicIP flag and assigns a set of load balancers to the given machines
func ConfigMasters(machines []clusterapi.Machine, clusterName string) {
for _, machine := range machines {
providerConfig := machine.Spec.ProviderConfig.Value.Object.(*awsprovider.AWSMachineProviderConfig)
providerConfig.PublicIP = pointer.BoolPtr(true)
providerConfig.LoadBalancers = []awsprovider.LoadBalancerReference{
providerSpec := machine.Spec.ProviderSpec.Value.Object.(*awsprovider.AWSMachineProviderConfig)
providerSpec.PublicIP = pointer.BoolPtr(true)
providerSpec.LoadBalancers = []awsprovider.LoadBalancerReference{
{
Name: fmt.Sprintf("%s-ext", clusterName),
Type: awsprovider.NetworkLoadBalancerType,
Expand Down
2 changes: 1 addition & 1 deletion pkg/asset/machines/aws/machinesets.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func MachineSets(config *types.InstallConfig, pool *types.MachinePool, role, use
},
},
Spec: clusterapi.MachineSpec{
ProviderConfig: clusterapi.ProviderConfig{
ProviderSpec: clusterapi.ProviderSpec{
Value: &runtime.RawExtension{Object: provider},
},
// we don't need to set Versions, because we control those via cluster operators.
Expand Down
2 changes: 1 addition & 1 deletion pkg/asset/machines/libvirt/machines.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func Machines(config *types.InstallConfig, pool *types.MachinePool, role, userDa
},
},
Spec: clusterapi.MachineSpec{
ProviderConfig: clusterapi.ProviderConfig{
ProviderSpec: clusterapi.ProviderSpec{
Value: &runtime.RawExtension{Object: provider},
},
// we don't need to set Versions, because we control those via cluster operators.
Expand Down
2 changes: 1 addition & 1 deletion pkg/asset/machines/libvirt/machinesets.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func MachineSets(config *types.InstallConfig, pool *types.MachinePool, role, use
},
},
Spec: clusterapi.MachineSpec{
ProviderConfig: clusterapi.ProviderConfig{
ProviderSpec: clusterapi.ProviderSpec{
Value: &runtime.RawExtension{Object: provider},
},
// we don't need to set Versions, because we control those via cluster operators.
Expand Down
2 changes: 1 addition & 1 deletion pkg/asset/machines/openstack/master.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ items:
sigs.k8s.io/cluster-api-machine-role: master
sigs.k8s.io/cluster-api-machine-type: master
spec:
providerConfig:
providerSpec:
value:
apiVersion: openstack.cluster.k8s.io/v1alpha1
kind: OpenStackMachineProviderConfig
Expand Down
2 changes: 1 addition & 1 deletion pkg/asset/machines/openstack/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
sigs.k8s.io/cluster-api-machine-role: worker
sigs.k8s.io/cluster-api-machine-type: worker
spec:
providerConfig:
providerSpec:
value:
apiVersion: openstack.cluster.k8s.io/v1alpha1
kind: OpenStackMachineProviderConfig
Expand Down

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.

191 changes: 191 additions & 0 deletions vendor/k8s.io/klog/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6880b3e

Please sign in to comment.