Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion internal/controller/shared_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,10 @@ func makeUptimeName[O pdoknlv3.WMSWFS](obj O) (string, error) {

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

Expand Down
Loading