Skip to main content

stable_context

Function stable_context 

Source
pub fn stable_context(
    kubeconfig_yaml: &str,
    profile_name: &str,
) -> Result<String, ClusterToolError>
Expand description

Port of clustertool.stableContext: renames the cluster kubeconfig’s context to the Caproni context name, so that tools keying persistent state by context name see the same name whatever cluster driver produced the kubeconfig.