Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/karmada/templates/pre-upgrade-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ spec:
set -ex
# Fetch certs from existing secret
karmada_ca=$(kubectl get secret {{ $name }}-cert -n {{ $namespace }} -o jsonpath='{.data.server-ca\.crt}')
kubectl get configmap {{ $name }}-static-resources -n {{ $namespace }} -o yaml | sed -e "s/{{ print "{{ ca_crt }}" }}/${karmada_ca}/g" | kubectl apply -f -
kubectl get configmap {{ $name }}-crds-patches -n {{ $namespace }} -o yaml | sed -e "s/{{ print "{{ ca_crt }}" }}/${karmada_ca}/g" | kubectl apply -f -
kubectl get configmap {{ $name }}-static-resources -n {{ $namespace }} -o json | sed -e "s/{{ print "{{ ca_crt }}" }}/${karmada_ca}/g" | kubectl apply -f -
kubectl get configmap {{ $name }}-crds-patches -n {{ $namespace }} -o json | sed -e "s/{{ print "{{ ca_crt }}" }}/${karmada_ca}/g" | kubectl apply -f -
resources:
requests:
cpu: 50m
Expand Down
2 changes: 1 addition & 1 deletion examples/customresourceinterpreter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ If all your clusters are `Push` type clusters, you can access the webhook servic
Please run the following script to deploy `MetalLB`.

```bash
kubectl --context="karmada-host" get configmap kube-proxy -n kube-system -o yaml | \
kubectl --context="karmada-host" get configmap kube-proxy -n kube-system -o json | \
sed -e "s/strictARP: false/strictARP: true/" | \
kubectl --context="karmada-host" apply -n kube-system -f -

Expand Down
2 changes: 1 addition & 1 deletion hack/post-run-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ kubectl --context="${HOST_CLUSTER_NAME}" delete -f "${REPO_ROOT}"/examples/custo
# uninstall metallb
kubectl --context="${HOST_CLUSTER_NAME}" --ignore-not-found=true delete -f https://raw.githubusercontent.com/metallb/metallb/v0.13.5/config/manifests/metallb-native.yaml

kubectl --context="${HOST_CLUSTER_NAME}" get configmap kube-proxy -n kube-system -o yaml | \
kubectl --context="${HOST_CLUSTER_NAME}" get configmap kube-proxy -n kube-system -o json | \
sed -e "s/strictARP: true/strictARP: false/" | \
kubectl --context="${HOST_CLUSTER_NAME}" apply -f - -n kube-system

Expand Down
2 changes: 1 addition & 1 deletion hack/pre-run-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export KUBECONFIG="${MAIN_KUBECONFIG}"

# Due to we are using kube-proxy in IPVS mode, we have to enable strict ARP mode.
# refer to https://metallb.universe.tf/installation/#preparation
kubectl --context="${HOST_CLUSTER_NAME}" get configmap kube-proxy -n kube-system -o yaml | \
kubectl --context="${HOST_CLUSTER_NAME}" get configmap kube-proxy -n kube-system -o json | \
sed -e "s/strictARP: false/strictARP: true/" | \
kubectl --context="${HOST_CLUSTER_NAME}" apply -f - -n kube-system

Expand Down
Loading