Skip to content

Commit

Permalink
Revert unintentional change.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Nelson <minelson@vmware.com>
  • Loading branch information
absoludity committed Nov 2, 2022
1 parent 0f8391d commit d7c5ddd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/pinniped-proxy/src/pinniped.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,11 @@ fn get_client_config(
.context("Failed parsing url for exchange")?,
);
config.default_namespace = pinniped_namespace.clone();
let x509 = X509::from_pem(&k8s_api_ca_cert_data).context("error creating x509 from pem")?;
let x509 = X509::from_pem(k8s_api_ca_cert_data).context("error creating x509 from pem")?;
let der = x509.to_der().context("error creating der from x509")?;
config.root_cert = Some(vec![der]);

let client = Client::try_from(config)?;
Ok(client)
Ok(Client::try_from(config)?)
}

/// prepare_and_call_pinniped_exchange returns the resulting
Expand Down

0 comments on commit d7c5ddd

Please sign in to comment.