Skip to content

Commit

Permalink
Merge pull request #22 from js-ish/feat-kubeapply-add-pod
Browse files Browse the repository at this point in the history
feat: kubeapply add pod
  • Loading branch information
origyZ authored May 24, 2024
2 parents dc5a849 + 5ec0cfb commit 9a28ce0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kubectl/kubeapply
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ apply_one() {
kubectl delete --ignore-not-found=true job/$name -n $ns
yq e -i ".spec.template.spec.containers[0].image |= strenv(IMAGE_TAG)" $1
fi
elif [ $yaml_kind == "Pod" ]; then
kubectl delete --ignore-not-found=true pod/$name -n $ns
yq e -i ".spec.containers[0].image |= strenv(IMAGE_TAG)" $1
fi
kubectl apply -f $1
}
Expand Down

0 comments on commit 9a28ce0

Please sign in to comment.