summaryrefslogtreecommitdiff
path: root/hack
diff options
context:
space:
mode:
authorShelley-BaoYue <baoyue2@huawei.com>2024-01-03 10:43:50 +0800
committerShelley-BaoYue <baoyue2@huawei.com>2024-01-03 10:49:45 +0800
commitbb82335741d90047fafe23a3aecb9e09729ac035 (patch)
tree1e035de9404c6445a561b916894679beaeba5f16 /hack
parentMerge pull request #5326 from wbc6080/upgrade-mapper (diff)
downloadkubeedge-bb82335741d90047fafe23a3aecb9e09729ac035.tar.gz
add image prepull api
Signed-off-by: Shelley-BaoYue <baoyue2@huawei.com>
Diffstat (limited to 'hack')
-rwxr-xr-xhack/generate-crds.sh3
-rwxr-xr-xhack/local-up-kubeedge.sh1
2 files changed, 3 insertions, 1 deletions
diff --git a/hack/generate-crds.sh b/hack/generate-crds.sh
index 295afa102..bc29ee1f4 100755
--- a/hack/generate-crds.sh
+++ b/hack/generate-crds.sh
@@ -86,6 +86,7 @@ function :copy:to:destination {
mkdir -p ${CRD_OUTPUTS}/reliablesyncs
mkdir -p ${CRD_OUTPUTS}/apps
mkdir -p ${CRD_OUTPUTS}/policy
+ mkdir -p ${CRD_OUTPUTS}/operations
for entry in `ls /tmp/crds/*.yaml`; do
CRD_NAME=$(echo ${entry} | cut -d'.' -f3 | cut -d'_' -f2)
@@ -108,7 +109,7 @@ function :copy:to:destination {
elif [ "$CRD_NAME" == "objectsyncs" ]; then
cp -v ${entry} ${CRD_OUTPUTS}/reliablesyncs/objectsync_${RELIABLESYNCS_VERSION}.yaml
cp -v ${entry} ${HELM_CRDS_DIR}/objectsync_${RELIABLESYNCS_VERSION}.yaml
- elif [ "$CRD_NAME" == "nodeupgradejobs" ]; then
+ elif [ "$CRD_NAME" == "nodeupgradejobs" ] || [ "$CRD_NAME" == "imageprepulljobs" ]; then
CRD_NAME=$(remove_suffix_s "$CRD_NAME")
cp -v ${entry} ${CRD_OUTPUTS}/operations/operations_${OPERATIONS_VERSION}_${CRD_NAME}.yaml
cp -v ${entry} ${HELM_CRDS_DIR}/operations_${OPERATIONS_VERSION}_${CRD_NAME}.yaml
diff --git a/hack/local-up-kubeedge.sh b/hack/local-up-kubeedge.sh
index 750cf13bc..d008a082c 100755
--- a/hack/local-up-kubeedge.sh
+++ b/hack/local-up-kubeedge.sh
@@ -102,6 +102,7 @@ function create_rule_crd {
function create_operation_crd {
echo "creating the operation crd..."
kubectl apply -f ${KUBEEDGE_ROOT}/build/crds/operations/operations_v1alpha1_nodeupgradejob.yaml
+ kubectl apply -f ${KUBEEDGE_ROOT}/build/crds/operations/operations_v1alpha1_imageprepulljob.yaml
}
function create_serviceaccountaccess_crd {