Files
open-cluster-management/hack/inject-ca.sh
DangPeng Liu 467124210c use controller runtime to implement webhook (#164)
Signed-off-by: ldpliu <daliu@redhat.com>

Signed-off-by: ldpliu <daliu@redhat.com>
2022-11-06 22:14:16 -05:00

14 lines
304 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/webhook.yaml
rm -rf $BASE_DIR/../deploy/webhook/cert
mv -f $BASE_DIR/cert $BASE_DIR/../deploy/webhook/cert