mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-06 09:16:59 +00:00
14 lines
338 B
Bash
14 lines
338 B
Bash
#!/bin/bash
|
|
|
|
BASE_DIR=$(dirname $(readlink -f $0))
|
|
|
|
sh -x $BASE_DIR/generate-cert.sh
|
|
|
|
CA=`cat $BASE_DIR/cert/tls.crt |base64 -w 0`
|
|
|
|
sed -i "s/CA_PLACE_HOLDER/${CA}/g" $BASE_DIR/../deploy/webhook/managedclustersets_conversion_webhook.crd.yaml
|
|
|
|
rm -rf $BASE_DIR/../deploy/webhook/cert
|
|
|
|
mv -f $BASE_DIR/cert $BASE_DIR/../deploy/webhook/cert
|