Files
kubevela/hack/crd/cleanup.sh
wyike 4eb33e9239 split out oam-spec v0.2 charts (#1842)
* WIP disable oam related controller and webhok

change velue

fix spell error

change namespace

add e2e for oam-runtime

fix charts hack

fix e2e definition namespace

fix diasble contains list

fix e2e-test

* disable components handler

* fix flaky ac test

add every definition in oam-runtime-system namespace

* upload ac e2e-test

replace files

fix upload reports

* more wait time
2021-07-01 16:32:01 +08:00

32 lines
498 B
Bash
Executable File

#!/usr/bin/env bash
set -e
SCRIPT_DIR=$(dirname "$0")
pushd $SCRIPT_DIR
TEMPLATE_DIR="../../config/crd/base"
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