"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "magnum/drivers/common/templates/kubernetes/fragments/make-cert-client.sh" between
magnum-8.1.0.tar.gz and magnum-8.2.0.tar.gz

About: OpenStack Magnum makes container orchestration engines such as Docker and Kubernetes available as first class resources in OpenStack.
The "Stein" series (maintained release).

make-cert-client.sh  (magnum-8.1.0):make-cert-client.sh  (magnum-8.2.0)
skipping to change at line 99 skipping to change at line 99
csr_req=$(python -c "import json; fp = open('${_CSR}'); print json.dumps({'c luster_uuid': '$CLUSTER_UUID', 'csr': fp.read()}); fp.close()") csr_req=$(python -c "import json; fp = open('${_CSR}'); print json.dumps({'c luster_uuid': '$CLUSTER_UUID', 'csr': fp.read()}); fp.close()")
curl $VERIFY_CA -X POST \ curl $VERIFY_CA -X POST \
-H "X-Auth-Token: $USER_TOKEN" \ -H "X-Auth-Token: $USER_TOKEN" \
-H "OpenStack-API-Version: container-infra latest" \ -H "OpenStack-API-Version: container-infra latest" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "$csr_req" \ -d "$csr_req" \
$MAGNUM_URL/certificates | python -c 'import sys, json; print json.load( sys.stdin)["pem"]' > ${_CERT} $MAGNUM_URL/certificates | python -c 'import sys, json; print json.load( sys.stdin)["pem"]' > ${_CERT}
} }
#Kubelet Certs #Kubelet Certs
INSTANCE_NAME=$(hostname --short | sed 's/\.novalocal//') HOSTNAME=$(cat /etc/hostname | head -1)
HOSTNAME=$(hostname)
cat > ${cert_dir}/kubelet.conf <<EOF cat > ${cert_dir}/kubelet.conf <<EOF
[req] [req]
distinguished_name = req_distinguished_name distinguished_name = req_distinguished_name
req_extensions = req_ext req_extensions = req_ext
prompt = no prompt = no
[req_distinguished_name] [req_distinguished_name]
CN = system:node:${INSTANCE_NAME} CN = system:node:${INSTANCE_NAME}
O=system:nodes O=system:nodes
OU=OpenStack/Magnum OU=OpenStack/Magnum
 End of changes. 1 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)