Skip to content

Commit

Permalink
Merge pull request projectcalico#399 from neiljerram/labels-to-apply
Browse files Browse the repository at this point in the history
Set LabelsToApply on the CNI-created Profile
  • Loading branch information
gunjan5 authored Oct 25, 2017
2 parents 62b1557 + c312624 commit 85c0911
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions calico.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,9 @@ func cmdAdd(args *skel.CmdArgs) error {
Labels: map[string]string{conf.Name: ""},
},
Spec: api.ProfileSpec{
EgressRules: []api.Rule{{Action: "allow"}},
IngressRules: inboundRules,
EgressRules: []api.Rule{{Action: "allow"}},
IngressRules: inboundRules,
LabelsToApply: map[string]string{conf.Name: ""},
},
}

Expand Down

0 comments on commit 85c0911

Please sign in to comment.