From 3d2b4643300b2788a6487a87c97d1cb0ca7e915c Mon Sep 17 00:00:00 2001 From: ljun20160606 Date: Thu, 21 Mar 2024 06:44:21 +0800 Subject: [PATCH] feat: allow certificate_authority_data not present (#1432) Signed-off-by: ljun20160606 --- 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 1f051f0ca..06d3fe492 100644 --- a/kube-client/src/config/file_config.rs +++ b/kube-client/src/config/file_config.rs @@ -556,7 +556,7 @@ pub struct ExecAuthCluster { #[serde(skip_serializing_if = "Option::is_none")] pub insecure_skip_tls_verify: Option, /// PEM-encoded certificate authority certificates. Overrides `certificate_authority` - #[serde(skip_serializing_if = "Option::is_none")] + #[serde(default, skip_serializing_if = "Option::is_none")] #[serde(with = "base64serde")] pub certificate_authority_data: Option>, /// URL to the proxy to be used for all requests.