From 9b7e2aa5f30224dd74811402d31b31348b75fcfe Mon Sep 17 00:00:00 2001 From: Georges Chaudy Date: Mon, 7 Jul 2025 11:57:08 +0200 Subject: [PATCH] unistore: add custom kv grpc (#107464) add StorageTypeUnifiedKVGrpc --- pkg/services/apiserver/options/storage.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkg/services/apiserver/options/storage.go b/pkg/services/apiserver/options/storage.go index d6c700303b6..2ff900037fd 100644 --- a/pkg/services/apiserver/options/storage.go +++ b/pkg/services/apiserver/options/storage.go @@ -22,10 +22,11 @@ import ( type StorageType string const ( - StorageTypeFile StorageType = "file" - StorageTypeEtcd StorageType = "etcd" - StorageTypeUnified StorageType = "unified" - StorageTypeUnifiedGrpc StorageType = "unified-grpc" + StorageTypeFile StorageType = "file" + StorageTypeEtcd StorageType = "etcd" + StorageTypeUnified StorageType = "unified" + StorageTypeUnifiedGrpc StorageType = "unified-grpc" + StorageTypeUnifiedKVGrpc StorageType = "unified-kv-grpc" // Deprecated: legacy is a shim that is no longer necessary StorageTypeLegacy StorageType = "legacy" @@ -95,6 +96,8 @@ func (o *StorageOptions) Validate() []error { // nolint:staticcheck case StorageTypeLegacy: // no-op + case StorageTypeUnifiedKVGrpc: + // no-op (enterprise only) case StorageTypeFile, StorageTypeEtcd, StorageTypeUnified, StorageTypeUnifiedGrpc: // no-op default: