Skip to content

Commit 68acc12

Browse files
committed
Jira: OSPRH-17457
code change to prevent overiding existing labels
1 parent 9a923a3 commit 68acc12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/dataplane/v1beta1/openstackdataplaneservice_types.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ func (r *OpenStackDataPlaneService) DefaultLabels() {
166166
r.Labels = labels
167167
} else {
168168
for k, v := range labels {
169-
r.Labels[k] = v
169+
if _, ok := r.Labels[k]; !ok {
170+
r.Labels[k] = v
171+
}
170172
}
171173
}
172174
}

0 commit comments

Comments
 (0)