Skip to content

Commit

Permalink
fix: issue with setting annotations and labels
Browse files Browse the repository at this point in the history
  • Loading branch information
TrayserCassa committed Feb 12, 2025
1 parent d354746 commit 8a49fe2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/v1/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,15 @@ func (c *ContainerSpec) Merge(from ContainerMergeSpec) {
c.Tolerations = from.Tolerations
}
if from.Annotations != nil {
if c.Annotations == nil {
c.Annotations = make(map[string]string)
}
maps.Copy(c.Annotations, from.Annotations)
}
if from.Labels != nil {
if c.Labels == nil {
c.Labels = make(map[string]string)
}
maps.Copy(c.Labels, from.Labels)
}
if from.TerminationGracePeriodSeconds != 0 {
Expand Down

0 comments on commit 8a49fe2

Please sign in to comment.