Skip to content

Commit

Permalink
passing labels to the default node
Browse files Browse the repository at this point in the history
  • Loading branch information
alshabib committed Nov 28, 2023
1 parent 2468403 commit 4c2b4de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions topo/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,9 @@ func (n *Impl) CreatePod(ctx context.Context) error {
},
},
}
for label, v := range n.GetProto().GetLabels() {
pod.ObjectMeta.Labels[label] = v
}
if pb.Config.ConfigData != nil {
vol, err := n.CreateConfig(ctx)
if err != nil {
Expand Down

0 comments on commit 4c2b4de

Please sign in to comment.