Adding initial kubevirt support
This commit is contained in:
6
virt/cdi/index.rhai
Normal file
6
virt/cdi/index.rhai
Normal file
@@ -0,0 +1,6 @@
|
||||
const DEST=dest;
|
||||
fn pre_install() {
|
||||
shell(`openssl genrsa -out ${global::DEST}/privatekey.pem 4096`);
|
||||
shell(`openssl rsa -in ${global::DEST}/privatekey.pem -pubout -out ${global::DEST}/publickey.pem`);
|
||||
shell(`kubectl get secret -n $NAMESPACE cdi-api-signing-key|| kubectl create secret generic -n $NAMESPACE cdi-api-signing-key --from-file=privatekey.pem=${global::DEST}/privatekey.pem --from-file=publickey.pem=${global::DEST}/publickey.pem`);
|
||||
}
|
||||
Reference in New Issue
Block a user