K8s: use deprecatedInternalID label rather than SQL annotation (#99263)

This commit is contained in:
Ryan McKinley
2025-01-21 12:38:14 +03:00
committed by GitHub
parent 9ce9ad1777
commit d8b6ded101
15 changed files with 62 additions and 90 deletions
@@ -41,8 +41,8 @@ func TestStandardDocumentBuilder(t *testing.T) {
"updatedBy": "user:XYZ",
"name": "test1",
"repo": {
"name": "SQL",
"path": "15",
"name": "something",
"path": "path/in/system.json",
"hash": "xyz"
}
}`, string(jj))
@@ -9,8 +9,8 @@
"annotations": {
"grafana.app/createdBy": "user:ABC",
"grafana.app/updatedBy": "user:XYZ",
"grafana.app/repoName": "SQL",
"grafana.app/repoPath": "15",
"grafana.app/repoName": "something",
"grafana.app/repoPath": "path/in/system.json",
"grafana.app/repoHash": "xyz",
"grafana.app/updatedTimestamp": "2024-07-01T10:11:12Z"
}
@@ -9,9 +9,9 @@
"rv": 1234,
"title": "Test AAA",
"title_sort": "test aaa",
"labels": {
"grafana.app/deprecatedInternalID": "123"
},
"created": 1706690655000,
"createdBy": "user:abc",
"repo": {
"name": "SQL"
}
"createdBy": "user:abc"
}
+4 -2
View File
@@ -8,8 +8,10 @@
"resourceVersion": "1706690655000",
"creationTimestamp": "2024-01-31T08:44:15Z",
"annotations": {
"grafana.app/createdBy": "user:abc",
"grafana.app/originName": "SQL"
"grafana.app/createdBy": "user:abc"
},
"labels": {
"grafana.app/deprecatedInternalID": "123"
}
},
"spec": {