From edd1121840306a3ff2f915f2e63bb6a763b37ae5 Mon Sep 17 00:00:00 2001 From: Guilherme Oenning Date: Wed, 7 Dec 2022 00:01:49 +0000 Subject: [PATCH] Change `Kubeconfig::merge` fn to public. (#1100) make merge fn public Signed-off-by: goenning Signed-off-by: goenning --- kube-client/src/config/file_config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube-client/src/config/file_config.rs b/kube-client/src/config/file_config.rs index b93652da3..0b34b8d9c 100644 --- a/kube-client/src/config/file_config.rs +++ b/kube-client/src/config/file_config.rs @@ -392,7 +392,7 @@ impl Kubeconfig { /// > Example: Preserve the context of the first file to set `current-context`. /// > Example: If two files specify a `red-user`, use only values from the first file's `red-user`. /// > Even if the second file has non-conflicting entries under `red-user`, discard them. - fn merge(mut self, next: Kubeconfig) -> Result { + pub fn merge(mut self, next: Kubeconfig) -> Result { if self.kind.is_some() && next.kind.is_some() && self.kind != next.kind { return Err(KubeconfigError::KindMismatch); }