diff options
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 f29f0daf1..8ffe0c9f9 100755 --- a/hack/local-up-kubeedge.sh +++ b/hack/local-up-kubeedge.sh @@ -119,6 +119,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 { |
