Patch/vk chart namespace (#235)

* Fix the dependency issue

* Changed the charts to accept a namespace variable

* Bumped and regenerated chart. Updated createCert for MacOS

* Moving generated charts up in the folder structure
This commit is contained in:
Ahmed Sabbour
2018-06-26 21:55:23 +04:00
committed by Robbie Zhang
parent e1fa5b03af
commit 61753060c6
10 changed files with 16 additions and 6 deletions

9
scripts/createCertAndKey.sh Normal file → Executable file
View File

@@ -1,5 +1,10 @@
#!/bin/bash
# Generate cert and key for chart
openssl req -newkey rsa:4096 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem -subj "/C=US/ST=CA/L=virtualkubelet/O=virtualkubelet/OU=virtualkubelet/CN=virtualkubelet"
cert=$(base64 cert.pem -w0)
key=$(base64 key.pem -w0)
if [[ "$OSTYPE" == "darwin"* ]]; then
cert=$(base64 cert.pem)
key=$(base64 key.pem)
else
cert=$(base64 cert.pem -w0)
key=$(base64 key.pem -w0)
fi