load_rndc_key

Function load_rndc_key 

Source
pub async fn load_rndc_key(
    client: &Client,
    namespace: &str,
    instance_name: &str,
) -> Result<RndcKeyData>
Expand description

Load RNDC key from the instance’s secret.

§Arguments

  • client - Kubernetes API client
  • namespace - Namespace of the instance
  • instance_name - Name of the instance

§Returns

Parsed RNDC key data

§Errors

Returns an error if the secret is not found or cannot be parsed