Skip to content

Commit

Permalink
Keep backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
barroco committed Apr 26, 2023
1 parent a9cd98a commit 7da7b3e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/apply-certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ kubectl delete secret cockroachdb.ca.crt --namespace "$NAMESPACE" --context "$C
kubectl delete secret cockroachdb.ca.key --namespace "$NAMESPACE" --context "$CONTEXT" || true
kubectl delete secret dss.public.certs --namespace "$NAMESPACE" --context "$CONTEXT" || true

kubectl create secret generic cockroachdb.client.root --namespace "$NAMESPACE" --from-file "$CLIENTS_CERTS_DIR" --context "$CONTEXT"
kubectl create secret generic cockroachdb.client.root --namespace default --from-file "$CLIENTS_CERTS_DIR" --context "$CONTEXT"
if [[ $NAMESPACE != "default" ]]; then
kubectl create secret generic cockroachdb.client.root --namespace "$NAMESPACE" --from-file "$CLIENTS_CERTS_DIR" --context "$CONTEXT"
fi
kubectl create secret generic cockroachdb.node --namespace "$NAMESPACE" --from-file "$NODE_CERTS_DIR" --context "$CONTEXT"
# The ca key is not needed for any typical operations, but might be required to sign new certificates.
$UPLOAD_CA_KEY && kubectl create secret generic cockroachdb.ca.key --namespace "$NAMESPACE" --from-file "$CA_KEY_DIR" --context "$CONTEXT"
Expand Down

0 comments on commit 7da7b3e

Please sign in to comment.