mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-10 03:17:02 +00:00
fix diff update example and test data version fix convert function fix e2e for helm clean up creationTimestamp in a hack way fix ci pending package suit test fix group version fix ci fix ut rename type to kind fix example fix conflicts Co-authored-by: yangsoon <yangsoonlx@gmail.com>
32 lines
504 B
Bash
Executable File
32 lines
504 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR=$(dirname "$0")
|
|
pushd $SCRIPT_DIR
|
|
|
|
TEMPLATE_DIR="../../charts/vela-core/crds"
|
|
|
|
echo "clean up unused fields of CRDs"
|
|
|
|
for filename in `ls $TEMPLATE_DIR`; do
|
|
|
|
sed -i.bak '/creationTimestamp: null/d' ${TEMPLATE_DIR}/$filename
|
|
|
|
done
|
|
|
|
rm ${TEMPLATE_DIR}/*.bak
|
|
|
|
TEMPLATE_DIR="../../legacy/charts/vela-core-legacy/crds"
|
|
|
|
for filename in `ls $TEMPLATE_DIR`; do
|
|
|
|
sed -i.bak '/creationTimestamp: null/d' ${TEMPLATE_DIR}/$filename
|
|
|
|
done
|
|
|
|
rm ${TEMPLATE_DIR}/*.bak
|
|
|
|
|
|
popd
|