Skip to content

Use library constants for KubernetesPullPolicy.Get() returns

What does this MR do?

  • Changes the return type of common.KubernetesPullPolicy to refer to the k8s type instead of our KubernetesPullPolicy.
  • Adds tests to ensure the correct parsing of pull policy values.

Why was this MR needed?

To follow the same pattern as KubernetesDNSPolicy.

What's the best way to test this MR?

The TestSetupBuildPod and TestConfigParse tests should pass.

What are the relevant issue numbers?

Closes #27203 (closed)

Merge request reports