Skip to main content

image_pull_policy_for

Function image_pull_policy_for 

Source
pub fn image_pull_policy_for(
    resource: &str,
    export: Option<&ExportConfig>,
) -> ImagePullPolicy
Expand description

Returns the image pull policy for resource on the Kubernetes or Helm target.

Resolution order: per-resource override -> per-target default -> IfNotPresent.

use lightshuttle_export::resolve::image_pull_policy_for;
use lightshuttle_manifest::ImagePullPolicy;

assert_eq!(image_pull_policy_for("api", None), ImagePullPolicy::IfNotPresent);