mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-15 21:08:23 +00:00
scripts: fix prepare-release.sh to update all kustomize files
This commit is contained in:
parent
c07c6354fc
commit
9db5807bf4
1 changed files with 2 additions and 1 deletions
|
@ -97,9 +97,10 @@ if [ -z "$assets_only" ]; then
|
||||||
|
|
||||||
# Patch deployment templates
|
# Patch deployment templates
|
||||||
echo Patching kustomize templates to use $container_image
|
echo Patching kustomize templates to use $container_image
|
||||||
|
find deployment/base deployment/overlays deployment/components -name '*.yaml' | xargs -I '{}' \
|
||||||
sed -E -e s",^([[:space:]]+)image:.+$,\1image: $container_image," \
|
sed -E -e s",^([[:space:]]+)image:.+$,\1image: $container_image," \
|
||||||
-e s",^([[:space:]]+)imagePullPolicy:.+$,\1imagePullPolicy: IfNotPresent," \
|
-e s",^([[:space:]]+)imagePullPolicy:.+$,\1imagePullPolicy: IfNotPresent," \
|
||||||
-i deployment/base/*/*yaml
|
-i '{}'
|
||||||
|
|
||||||
# Patch Helm chart
|
# Patch Helm chart
|
||||||
echo "Patching Helm chart"
|
echo "Patching Helm chart"
|
||||||
|
|
Loading…
Add table
Reference in a new issue