Skip to content

Commit e9f9c55

Browse files
committed
Operator gebruikt v2 labels (dataset-owner) daarover crashed v3
1 parent 178716c commit e9f9c55

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/controller/shared_controller.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,10 @@ func makeUptimeName[O pdoknlv3.WMSWFS](obj O) (string, error) {
515515

516516
ownerID, ok := obj.GetLabels()["dataset-owner"]
517517
if !ok {
518-
return "", errors.New("dataset-owner label not found in object")
518+
ownerID, ok = obj.GetLabels()["pdok.nl/owner-id"]
519+
if !ok {
520+
return "", errors.New("dataset-owner and pdok.nl/owner-id labels are not found in object")
521+
}
519522
}
520523
parts = append(parts, strings.ToUpper(strings.ReplaceAll(ownerID, "-", "")))
521524

0 commit comments

Comments
 (0)