pub fn image_pull_policy_for(
resource: &str,
export: Option<&ExportConfig>,
) -> ImagePullPolicyExpand 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);