Skip to content

Instantly share code, notes, and snippets.

@ThumNet
ThumNet / docker-compose.yml
Last active March 31, 2023 15:03
Running MongoDB locally in docker with transaction/session support
services:
localdev-mongo:
image: mongo:latest
environment:
MONGO_APP_DATABASE: mydb
MONGO_REPLICA_HOST: host.docker.internal
MONGO_REPLICA_PORT: 27018
container_name: localdev-mongo
entrypoint: >
/bin/bash -c '
@ThumNet
ThumNet / gist:85f6b14354889d0c3dd294fd938bab80
Created November 10, 2023 14:52
Terraform cloud operator delete logging
2023-11-10T14:41:00Z INFO Module Controller {"module": {"name":"module-sample","namespace":"some-workspace"}, "msg": "new reconciliation event"}
2023-11-10T14:41:00Z INFO Spec Validation {"module": {"name":"module-sample","namespace":"some-workspace"}, "msg": "validating instance object spec"}
2023-11-10T14:41:00Z INFO Spec Validation {"module": {"name":"module-sample","namespace":"some-workspace"}, "msg": "spec is valid"}
2023-11-10T14:41:00Z INFO Reconcile Module {"module": {"name":"module-sample","namespace":"some-workspace"}, "msg": "reconciling module"}
2023-11-10T14:41:00Z INFO Reconcile Module {"module": {"name":"module-sample","namespace":"some-workspace"}, "msg": "object marked as deleted, need to delete module first"}
2023-11-10T14:41:00Z INFO Delete Module {"module": {"name":"module-sample","namespace":"some-workspace"}, "msg": "destroy on deletion, create a new destroy run"}
2023-11-10T14:41:01Z INFO Delete Module {"module": {"name":"module-sample","namespace":"some-workspace"}, "msg": "successful
╭─ ~ ········································································································ ✔  cluster-uranus ○  13:35:36
╰─ kubectl get module stitch -n pr-patient-zero-15 -w -o yaml
apiVersion: app.terraform.io/v1alpha2
kind: Module
metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"app.terraform.io/v1alpha2","kind":"Module","metadata":{"annotations":{"argocd.argoproj.io/sync-wave":"1"},"labels":{"argocd.argoproj.io/instance":"pr-patient-zero-15-stitch"},"name":"stitch","namespace":"pr-patient-zero-15"},"spec":{"destroyOnDeletion":true,"module":{"source":"app.terraform.io/shipitsmarter/stitch/shipitsmarter","version":"3.0.5"},"name":"stitch","organization":"shipitsmarter","outputs":[{"name":"bucket_name"}],"token":{"secretKeyRef":{"key":"token","name":"tfc-token"}},"variables":[{"name":"gcp_project_id"},{"name":"az_service_account_id"}],"workspace":{"name":"pr-patient-zero-15-stitch"}}}