chore: simplify build scripts for kubectl apply when handling kustomization resources

Signed-off-by: joengjyu <joengjyu@gmail.com>
This commit is contained in:
joengjyu 2022-07-24 23:39:58 +08:00
parent 6969a5d643
commit 9c29991edf
3 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@ spec:
- |
bash <<'EOF'
set -ex
kubectl kustomize /crds | kubectl apply --kubeconfig /etc/kubeconfig -f -
kubectl apply -k /crds --kubeconfig /etc/kubeconfig
kubectl apply -f /static-resources --kubeconfig /etc/kubeconfig
EOF
volumeMounts:

View File

@ -62,7 +62,7 @@ kubectl kustomize ./charts/karmada/_crds
```
Or, you can apply to `karmada-apiserver` by:
```bash
kubectl kustomize ./charts/karmada/_crds | kubectl apply -f -
kubectl apply -k ./charts/karmada/_crds
```
### Upgrading Components

View File

@ -109,7 +109,7 @@ function installCRDs() {
kubectl apply -f "${REPO_ROOT}/artifacts/deploy/namespace.yaml"
kubectl kustomize "${crd_path}"/_crds | kubectl apply -f -
kubectl apply -k "${crd_path}"/_crds
}
# Use x.x.x.6 IP address, which is the same CIDR with the node address of the Kind cluster,