Merge pull request #1984 from calvin0327/modify-chart-dir

modify the chart dir
This commit is contained in:
karmada-bot 2022-06-10 18:58:01 +08:00 committed by GitHub
commit 13319e539b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
46 changed files with 10 additions and 10 deletions

View File

@ -162,7 +162,7 @@ kube-controller-manager-85c789dcfc-k89f8 1/1 Running 0 2m10
```
## Install Karmada by Helm Chart Deployment
Please refer to [installing by Helm](https://github.com/karmada-io/karmada/tree/master/charts).
Please refer to [installing by Helm](https://github.com/karmada-io/karmada/tree/master/charts/karmada).
## Install Karmada from source

View File

@ -50,8 +50,8 @@ kubectl get mutatingwebhookconfigurations.admissionregistration.k8s.io mutating-
Copy the `ca_string` from the yaml path `webhooks.name[x].clientConfig.caBundle`, then replace the `{{caBundle}}` from
the yaml files in `patches`. e.g:
```bash
sed -i'' -e "s/{{caBundle}}/${ca_string}/g" ./"charts/_crds/patches/webhook_in_resourcebindings.yaml"
sed -i'' -e "s/{{caBundle}}/${ca_string}/g" ./"charts/_crds/patches/webhook_in_clusterresourcebindings.yaml"
sed -i'' -e "s/{{caBundle}}/${ca_string}/g" ./"charts/karmada/_crds/patches/webhook_in_resourcebindings.yaml"
sed -i'' -e "s/{{caBundle}}/${ca_string}/g" ./"charts/karmada/_crds/patches/webhook_in_clusterresourcebindings.yaml"
```
**Step2: Build final CRD**

View File

@ -221,7 +221,7 @@ then
fi
TEMP_PATH_CRDS=$(mktemp -d)
cp -rf "${REPO_ROOT}"/charts/_crds "${TEMP_PATH_CRDS}"
cp -rf "${REPO_ROOT}"/charts/karmada/_crds "${TEMP_PATH_CRDS}"
util::fill_cabundle "${ROOT_CA_FILE}" "${TEMP_PATH_CRDS}/_crds/patches/webhook_in_resourcebindings.yaml"
util::fill_cabundle "${ROOT_CA_FILE}" "${TEMP_PATH_CRDS}/_crds/patches/webhook_in_clusterresourcebindings.yaml"
installCRDs "${TEMP_PATH_CRDS}"

View File

@ -13,8 +13,8 @@ echo "Generating with controller-gen"
util::install_tools ${CONTROLLER_GEN_PKG} ${CONTROLLER_GEN_VER} >/dev/null 2>&1
# Unify the crds used by helm chart and the installation scripts
controller-gen crd paths=./pkg/apis/config/... output:crd:dir=./charts/_crds/bases
controller-gen crd paths=./pkg/apis/policy/... output:crd:dir=./charts/_crds/bases
controller-gen crd paths=./pkg/apis/work/... output:crd:dir=./charts/_crds/bases
controller-gen crd paths=./pkg/apis/networking/... output:crd:dir=./charts/_crds/bases
controller-gen crd paths=./pkg/apis/config/... output:crd:dir=./charts/karmada/_crds/bases
controller-gen crd paths=./pkg/apis/policy/... output:crd:dir=./charts/karmada/_crds/bases
controller-gen crd paths=./pkg/apis/work/... output:crd:dir=./charts/karmada/_crds/bases
controller-gen crd paths=./pkg/apis/networking/... output:crd:dir=./charts/karmada/_crds/bases
controller-gen crd paths=./examples/customresourceinterpreter/apis/... output:crd:dir=./examples/customresourceinterpreter/apis/

View File

@ -6,8 +6,8 @@ set -o pipefail
SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
DIFFROOT="${SCRIPT_ROOT}/charts/_crds/bases"
TMP_DIFFROOT="${SCRIPT_ROOT}/_tmp/charts/_crds/bases"
DIFFROOT="${SCRIPT_ROOT}/charts/karmada/_crds/bases"
TMP_DIFFROOT="${SCRIPT_ROOT}/_tmp/charts/karmada/_crds/bases"
DIFFEXAMPLES="${SCRIPT_ROOT}/examples/customresourceinterpreter/apis"
TMP_DIFFEXAMPLES="${SCRIPT_ROOT}/_tmp/examples/customresourceinterpreter/apis"
_tmp="${SCRIPT_ROOT}/_tmp"