/
githubmirror
/
grafana
Обзор
Документация
Войти
/
githubmirror
/
grafana
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
apps/provisioning/pkg/controller/labels.go
14 строк
526 B
Gonzalo Trigueros Manzanas
Provisioning: skips jobs for repositories that are pending deletion (#120582)
18 мар 2026, 19:54
Не верифицирован
18 мар 2026, 19:54
7bb2bf6
Код
Авторство
О чём код?
package controller const ( // LabelPendingDelete mirrors the label written by the tenant watcher // (pkg/storage/unified/resource/tenant_watcher.go) to signal that a // namespace/stack is being soft-deleted by the cloud platform. LabelPendingDelete = "cloud.grafana.com/pending-delete" ) // IsPendingDelete reports whether an object's namespace is undergoing a // soft-delete, as indicated by the pending-delete label. func IsPendingDelete(labels map[string]string) bool { return labels[LabelPendingDelete] == "true" }