diff options
| author | Shelley-BaoYue <baoyue2@huawei.com> | 2024-01-03 10:43:50 +0800 |
|---|---|---|
| committer | Shelley-BaoYue <baoyue2@huawei.com> | 2024-01-03 10:49:45 +0800 |
| commit | bb82335741d90047fafe23a3aecb9e09729ac035 (patch) | |
| tree | 1e035de9404c6445a561b916894679beaeba5f16 /hack | |
| parent | Merge pull request #5326 from wbc6080/upgrade-mapper (diff) | |
| download | kubeedge-bb82335741d90047fafe23a3aecb9e09729ac035.tar.gz | |
add image prepull api
Signed-off-by: Shelley-BaoYue <baoyue2@huawei.com>
Diffstat (limited to 'hack')
| -rwxr-xr-x | hack/generate-crds.sh | 3 | ||||
| -rwxr-xr-x | hack/local-up-kubeedge.sh | 1 |
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 { |
