Skip to content

Commit ee5e251

Browse files
committed
allow empty annotation tag value
1 parent 0b8fb2f commit ee5e251

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

internal/controller/controller.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,10 +772,11 @@ func extractMetadataFromObject(obj *metav1.PartialObjectMetadata, aggPodMetadata
772772
)
773773
continue
774774
}
775-
if tagKey == "" || tagValue == "" {
776-
slog.Warn("Tag key or value is empty, skipping",
775+
if tagKey == "" {
776+
slog.Warn("Tag key is empty, skipping",
777777
"object_name", obj.GetName(),
778778
"kind", obj.Kind,
779+
"annotation", key,
779780
"tag_key", tagKey,
780781
"tag_value", tagValue,
781782
)

0 commit comments

Comments
 (0)