Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# This script helps migrate most resources from your production Kubernetes cluster to helm charts without downtime.
# Please replace <your namespace> and <your release name> before running.
# inspiration: https://jacky-jiang.medium.com/import-existing-resources-in-helm-3-e27db11fd467
# Author: https://github.com/bkakadiya42
NAMESPACE=<your namespace>
RELEASE_NAME=<your release name>
resources=$(kubectl get -n $NAMESPACE deployment,service,serviceAccount,ingress,managedCertificate,configMap,pod -o name)
#!/bin/sh
# This script regenerates the forestadmin.com models in a single step.
# Please replace <domain.com> below and add this file to the root of your forest admin backend repo.
# Author: https://github.com/bkakadiya42
set -o allexport
. ./.env
set +o allexport
pushd .
[
{
"id": "10719669",
"messages": [
{
"id": "158dd934cec3ce3d",
"threadId": "158dd934cec3ce3d"
},
{
"id": "158ddb52da312ba1",
[
{
"id": "10771170",
"messages": [
{
"id": "15a4111cccdb4ad8",
"threadId": "15a4111cccdb4ad8"
}
],
"messagesAdded": [
{
"history": [
{
"id": "10808996",
"messages": [
{
"id": "15a614a726c9aa62",
"threadId": "15a6139d17abb3f1"
}
],