Skip to content

Commit

Permalink
kubernetes-sigs#92 Ignore master nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen Haynes committed May 10, 2017
1 parent f458745 commit 5a7c409
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions controller/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ func assembleIngresses(ac *ALBController) ALBIngressesT {
ingressID := namespace + "-" + ingressName

rs := &alb.ResourceRecordSet{
IngressID: &ingressID,
ZoneID: zone.Id,
IngressID: &ingressID,
ZoneID: zone.Id,
CurrentResourceRecordSet: resourceRecordSet,
}

Expand Down Expand Up @@ -400,6 +400,11 @@ func GetNodes(ac *ALBController) util.AWSStringSlice {
var result util.AWSStringSlice
nodes, _ := ac.storeLister.Node.List()
for _, node := range nodes.Items {
if label, ok := node.ObjectMeta.Labels["kubernetes.io/role"]; ok {
if label == "master" {
continue
}
}
result = append(result, aws.String(node.Spec.ExternalID))
}
sort.Sort(result)
Expand Down

0 comments on commit 5a7c409

Please sign in to comment.