Skip to content

Commit

Permalink
docs: point out that Kubeconfig client_key structs are base64 encoded (
Browse files Browse the repository at this point in the history
…#1526)

Update file_config.rs

client_key_data and  client_certificate_data should be base64 encoded

Signed-off-by: BurningRock <118241450+rockburning@users.noreply.github.com>
  • Loading branch information
rockburning committed Jun 21, 2024
1 parent 01f9c0c commit f7aca40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kube-client/src/config/file_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ pub struct AuthInfo {
#[serde(skip_serializing_if = "Option::is_none")]
pub client_certificate: Option<String>,
/// PEM-encoded data from a client cert file for TLS. Overrides `client_certificate`
/// this key should be base64 encoded instead of the decode string data
#[serde(rename = "client-certificate-data")]
#[serde(skip_serializing_if = "Option::is_none")]
pub client_certificate_data: Option<String>,
Expand All @@ -204,6 +205,7 @@ pub struct AuthInfo {
#[serde(skip_serializing_if = "Option::is_none")]
pub client_key: Option<String>,
/// PEM-encoded data from a client key file for TLS. Overrides `client_key`
/// this key should be base64 encoded instead of the decode string data
#[serde(rename = "client-key-data")]
#[serde(skip_serializing_if = "Option::is_none", default)]
#[serde(
Expand Down

0 comments on commit f7aca40

Please sign in to comment.