mirror of
https://github.com/grafana/grafana.git
synced 2026-08-26 21:37:31 -05:00
K8s: Rename origin.key to origin.hash (#89337)
This commit is contained in:
@@ -143,8 +143,11 @@ func (c *K8sResourceClient) SanitizeJSON(v *unstructured.Unstructured) string {
|
||||
|
||||
deep := v.DeepCopy()
|
||||
anno := deep.GetAnnotations()
|
||||
if anno["grafana.app/originKey"] != "" {
|
||||
anno["grafana.app/originKey"] = "${originKey}"
|
||||
if anno["grafana.app/originPath"] != "" {
|
||||
anno["grafana.app/originPath"] = "${originPath}"
|
||||
}
|
||||
if anno["grafana.app/originHash"] != "" {
|
||||
anno["grafana.app/originHash"] = "${originHash}"
|
||||
}
|
||||
if anno["grafana.app/updatedTimestamp"] != "" {
|
||||
anno["grafana.app/updatedTimestamp"] = "${updatedTimestamp}"
|
||||
|
||||
@@ -360,7 +360,7 @@ func doPlaylistTests(t *testing.T, helper *apis.K8sTestHelper) *apis.K8sTestHelp
|
||||
"kind": "Playlist",
|
||||
"metadata": {
|
||||
"annotations": {
|
||||
"grafana.app/originKey": "${originKey}",
|
||||
"grafana.app/originPath": "${originPath}",
|
||||
"grafana.app/originName": "SQL",
|
||||
"grafana.app/updatedTimestamp": "${updatedTimestamp}"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user