Skip to content

Commit

Permalink
fix: add default label when nothing set for console service (#2049)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiuker committed Apr 17, 2024
1 parent 6f99550 commit aa1337c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/resources/services/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ func NewClusterIPForConsole(t *miniov2.Tenant) *corev1.Service {
}
if t.Spec.ServiceMetadata != nil && t.Spec.ServiceMetadata.ConsoleServiceLabels != nil {
labels = miniov2.MergeMaps(internalLabels, t.Spec.ServiceMetadata.ConsoleServiceLabels)
} else {
labels = internalLabels
}

if t.Spec.ServiceMetadata != nil && t.Spec.ServiceMetadata.ConsoleServiceAnnotations != nil {
Expand Down

0 comments on commit aa1337c

Please sign in to comment.