Skip to content

Commit

Permalink
feat: kubeapply add pod
Browse files Browse the repository at this point in the history
  • Loading branch information
origyZ committed May 24, 2024
1 parent dc5a849 commit 5ec0cfb
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 5ec0cfb

Please sign in to comment.