Files
open-cluster-management/hack/inject-ca.sh
DangPeng Liu 883295b635 add conversion webhook to convert clusterset api (#272)
Signed-off-by: ldpliu <daliu@redhat.com>

Signed-off-by: ldpliu <daliu@redhat.com>
2022-10-11 04:02:29 +00:00

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