Skip to content

Commit

Permalink
fix comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
alphanota committed Jan 31, 2025
1 parent fdf13d5 commit 7efe7b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/skaffold/kubernetes/manifest/image_pull_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package manifest

import (
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
apimachinery "k8s.io/apimachinery/pkg/runtime/schema"
)

Expand Down Expand Up @@ -87,7 +87,7 @@ func (i *imagePullPolicyReplacer) Visit(gk apimachinery.GroupKind, navpath strin
if _, ok := v.(string); !ok {
return true
}
if o[imagePullPolicyField] == v1.PullAlways {
if o[imagePullPolicyField] == string(v1.PullAlways) {
o[imagePullPolicyField] = v1.PullIfNotPresent
}
return false
Expand Down

0 comments on commit 7efe7b3

Please sign in to comment.