modify the chart dir
Signed-off-by: calvin0327 <wen.chen@daocloud.io>
This commit is contained in:
parent
e84381ccd0
commit
791208bf0a
|
@ -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
|
||||
|
||||
|
|
|
@ -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**
|
||||
|
|
|
@ -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}"
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue