Chore: Upgrade k8s.io/api v0.34.1 and grafana-app-sdk v0.43.1 (#111009)
This commit is contained in:
@@ -167,8 +167,27 @@ func NewStorage(
|
||||
return s, func() {}, nil
|
||||
}
|
||||
|
||||
// CompactRevision implements storage.Interface.
|
||||
// https://github.com/kubernetes/kubernetes/blob/v1.34.0/staging/src/k8s.io/apiserver/pkg/storage/interfaces.go#L278
|
||||
// https://github.com/kubernetes/kubernetes/blob/v1.34.0/staging/src/k8s.io/apiserver/pkg/storage/etcd3/store.go#L204
|
||||
func (s *Storage) CompactRevision() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
// SetKeysFunc allows to override the function used to get keys from storage.
|
||||
// This allows to replace default function that fetches keys from storage with one using cache.
|
||||
// https://github.com/kubernetes/kubernetes/blob/v1.34.0/staging/src/k8s.io/apiserver/pkg/storage/interfaces.go#L273
|
||||
func (s *Storage) SetKeysFunc(storage.KeysFunc) {
|
||||
// noop
|
||||
}
|
||||
|
||||
// Stats implements storage.Interface.
|
||||
func (s *Storage) Stats(ctx context.Context) (storage.Stats, error) {
|
||||
return storage.Stats{}, nil
|
||||
}
|
||||
|
||||
// GetCurrentResourceVersion implements storage.Interface.
|
||||
// See: https://github.com/kubernetes/kubernetes/blob/v1.33.0/staging/src/k8s.io/apiserver/pkg/storage/etcd3/store.go#L647
|
||||
// See: https://github.com/kubernetes/kubernetes/blob/v1.34.0/staging/src/k8s.io/apiserver/pkg/storage/etcd3/store.go#L686
|
||||
func (s *Storage) GetCurrentResourceVersion(ctx context.Context) (uint64, error) {
|
||||
// Although not totally accurate, this is sufficient
|
||||
return uint64(time.Now().UnixMicro()), nil
|
||||
@@ -629,12 +648,6 @@ func (s *Storage) GuaranteedUpdate(
|
||||
return nil
|
||||
}
|
||||
|
||||
// Count returns number of different entries under the key (generally being path prefix).
|
||||
// TODO: Implement count.
|
||||
func (s *Storage) Count(key string) (int64, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
// RequestWatchProgress requests the a watch stream progress status be sent in the
|
||||
// watch response stream as soon as possible.
|
||||
// Used for monitor watch progress even if watching resources with no changes.
|
||||
|
||||
@@ -13,14 +13,12 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/grafana/grafana-plugin-sdk-go/data/utils/jsoniter"
|
||||
|
||||
"github.com/grafana/grafana/pkg/storage/unified/resourcepb"
|
||||
)
|
||||
|
||||
|
||||
+2
-4
@@ -46,8 +46,7 @@
|
||||
"metadata": {
|
||||
"name": "aaa",
|
||||
"namespace": "default",
|
||||
"resourceVersion": "10",
|
||||
"creationTimestamp": null
|
||||
"resourceVersion": "10"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -67,8 +66,7 @@
|
||||
"metadata": {
|
||||
"name": "bbb",
|
||||
"namespace": "default",
|
||||
"resourceVersion": "10",
|
||||
"creationTimestamp": null
|
||||
"resourceVersion": "10"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -221,8 +221,7 @@
|
||||
"apiVersion": "dashboard.grafana.app",
|
||||
"metadata": {
|
||||
"name": "ccc",
|
||||
"namespace": "ns",
|
||||
"creationTimestamp": null
|
||||
"namespace": "ns"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -264,8 +263,7 @@
|
||||
"apiVersion": "dashboard.grafana.app",
|
||||
"metadata": {
|
||||
"name": "bbb",
|
||||
"namespace": "ns",
|
||||
"creationTimestamp": null
|
||||
"namespace": "ns"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -309,8 +307,7 @@
|
||||
"apiVersion": "dashboard.grafana.app",
|
||||
"metadata": {
|
||||
"name": "aaa",
|
||||
"namespace": "ns",
|
||||
"creationTimestamp": null
|
||||
"namespace": "ns"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+5
-10
@@ -27,8 +27,7 @@
|
||||
"apiVersion": "dashboard.grafana.app",
|
||||
"metadata": {
|
||||
"name": "aaa",
|
||||
"namespace": "ns",
|
||||
"creationTimestamp": null
|
||||
"namespace": "ns"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -42,8 +41,7 @@
|
||||
"apiVersion": "dashboard.grafana.app",
|
||||
"metadata": {
|
||||
"name": "bbb",
|
||||
"namespace": "ns",
|
||||
"creationTimestamp": null
|
||||
"namespace": "ns"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -57,8 +55,7 @@
|
||||
"apiVersion": "dashboard.grafana.app",
|
||||
"metadata": {
|
||||
"name": "ccc",
|
||||
"namespace": "ns",
|
||||
"creationTimestamp": null
|
||||
"namespace": "ns"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -72,8 +69,7 @@
|
||||
"apiVersion": "folder.grafana.app",
|
||||
"metadata": {
|
||||
"name": "yyy",
|
||||
"namespace": "ns",
|
||||
"creationTimestamp": null
|
||||
"namespace": "ns"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -87,8 +83,7 @@
|
||||
"apiVersion": "folder.grafana.app",
|
||||
"metadata": {
|
||||
"name": "zzz",
|
||||
"namespace": "ns",
|
||||
"creationTimestamp": null
|
||||
"namespace": "ns"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-4
@@ -75,8 +75,7 @@
|
||||
"apiVersion": "folder.grafana.app",
|
||||
"metadata": {
|
||||
"name": "yyy",
|
||||
"namespace": "ns",
|
||||
"creationTimestamp": null
|
||||
"namespace": "ns"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -96,8 +95,7 @@
|
||||
"apiVersion": "folder.grafana.app",
|
||||
"metadata": {
|
||||
"name": "zzz",
|
||||
"namespace": "ns",
|
||||
"creationTimestamp": null
|
||||
"namespace": "ns"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user