Skip to content

Commit

Permalink
Merge pull request #25 from CentaurusInfra/release-test-plan
Browse files Browse the repository at this point in the history
test plan doc draft
  • Loading branch information
chenqianfzh authored Aug 17, 2021
2 parents f278fa6 + abed673 commit 1f5bf77
Show file tree
Hide file tree
Showing 9 changed files with 843 additions and 13 deletions.
8 changes: 0 additions & 8 deletions build/crds/edgecluster/edgecluster_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,7 @@ spec:
JSONPath: .state.lastheartbeat
- name: HealthStatus
type: string
description: Whether the cluster is healthy and accessible
JSONPath: .state.healthstatus
- name: Nodes
type: string
description: nodes
JSONPath: .state.nodes
- name: EdgeNodes
type: string
JSONPath: .state.edgenodes
- name: SubEdgeClusters
type: string
JSONPath: .state.subedgeclusterstates
Expand Down
17 changes: 14 additions & 3 deletions build/tools/certgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,20 @@ readonly certPath=${CERT_PATH:-/etc/kubeedge/certs}
readonly subject=${SUBJECT:-/C=CN/ST=Zhejiang/L=Hangzhou/O=KubeEdge/CN=kubeedge.io}

genCA() {
IPs=$@
openssl genrsa -des3 -out ${caPath}/rootCA.key -passout pass:kubeedge.io 4096
openssl req -x509 -new -nodes -key ${caPath}/rootCA.key -sha256 -days 3650 \
-subj ${subject} -passin pass:kubeedge.io -out ${caPath}/rootCA.crt

if [ -z "$IPs" ] ;then
openssl req -x509 -new -nodes -key ${caPath}/rootCA.key -sha256 -days 3650 \
-subj ${subject} -passin pass:kubeedge.io -out ${caPath}/rootCA.crt
else
SAN="IP.1:127.0.0.1"
for ip in ${IPs[*]}; do
SAN="${SAN},IP:${ip}"
done
openssl req -x509 -new -nodes -key ${caPath}/rootCA.key -sha256 -days 3650 \
-subj ${subject} -passin pass:kubeedge.io -out ${caPath}/rootCA.crt -addext "subjectAltName=${SAN}"
fi
}

ensureCA() {
Expand Down Expand Up @@ -58,7 +69,7 @@ genCertAndKey() {
ensureCA
local name=$1
genCsr $name
genCert $name
genCert $name ${@:2}
}

stream() {
Expand Down
Loading

0 comments on commit 1f5bf77

Please sign in to comment.