Skip to content

Commit

Permalink
Drop unused machine labels
Browse files Browse the repository at this point in the history
  • Loading branch information
vikaschoudhary16 committed Apr 10, 2019
1 parent b3b8a89 commit 2ff3925
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 1 addition & 3 deletions pkg/asset/machines/aws/machines.go
Expand Up @@ -49,9 +49,7 @@ func Machines(clusterID string, config *types.InstallConfig, pool *types.Machine
Namespace: "openshift-machine-api",
Name: fmt.Sprintf("%s-%s-%d", clusterID, pool.Name, idx),
Labels: map[string]string{
"machine.openshift.io/cluster-api-cluster": clusterID,
"machine.openshift.io/cluster-api-machine-role": role,
"machine.openshift.io/cluster-api-machine-type": role,
"machine.openshift.io/cluster-api-cluster": clusterID,
},
},
Spec: machineapi.MachineSpec{
Expand Down
10 changes: 3 additions & 7 deletions pkg/asset/machines/aws/machinesets.go
Expand Up @@ -51,9 +51,7 @@ func MachineSets(clusterID string, config *types.InstallConfig, pool *types.Mach
Namespace: "openshift-machine-api",
Name: name,
Labels: map[string]string{
"machine.openshift.io/cluster-api-cluster": clusterID,
"machine.openshift.io/cluster-api-machine-role": role,
"machine.openshift.io/cluster-api-machine-type": role,
"machine.openshift.io/cluster-api-cluster": clusterID,
},
},
Spec: machineapi.MachineSetSpec{
Expand All @@ -67,10 +65,8 @@ func MachineSets(clusterID string, config *types.InstallConfig, pool *types.Mach
Template: machineapi.MachineTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Labels: map[string]string{
"machine.openshift.io/cluster-api-machineset": name,
"machine.openshift.io/cluster-api-cluster": clusterID,
"machine.openshift.io/cluster-api-machine-role": role,
"machine.openshift.io/cluster-api-machine-type": role,
"machine.openshift.io/cluster-api-machineset": name,
"machine.openshift.io/cluster-api-cluster": clusterID,
},
},
Spec: machineapi.MachineSpec{
Expand Down

0 comments on commit 2ff3925

Please sign in to comment.