d25d482dc2
Publish CLI Package / publish-npm (push) Waiting to run
Publish Python SDK / publish-pypi (push) Waiting to run
Publish TypeScript SDK / publish-npm (push) Waiting to run
CI / Migrate Dev DB (push) Has been skipped
CI / Detect Version (push) Has been cancelled
CI / Migrate DB (push) Has been cancelled
CI / Build Dev ECR (./docker/app.Dockerfile, ECR_APP) (push) Has been cancelled
CI / Build Dev ECR (./docker/db.Dockerfile, ECR_MIGRATIONS) (push) Has been cancelled
CI / Build Dev ECR (./docker/pii.Dockerfile, ECR_PII) (push) Has been cancelled
CI / Build Dev ECR (./docker/realtime.Dockerfile, ECR_REALTIME) (push) Has been cancelled
CI / Deploy Trigger.dev (Dev) (push) Has been cancelled
CI / Build AMD64 (./docker/app.Dockerfile, ECR_APP, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build AMD64 (./docker/db.Dockerfile, ECR_MIGRATIONS, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build AMD64 (./docker/pii.Dockerfile, ECR_PII, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build AMD64 (./docker/realtime.Dockerfile, ECR_REALTIME, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/app.Dockerfile, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/db.Dockerfile, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/pii.Dockerfile, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/realtime.Dockerfile, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Check Docs Changes (push) Has been cancelled
CI / Process Docs (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
CI / Test and Build (push) Has been cancelled
73 lines
2.1 KiB
YAML
73 lines
2.1 KiB
YAML
suite: PDB tri-state and HPA conditional rendering
|
|
release:
|
|
name: t
|
|
namespace: sim
|
|
defaults: &defaults
|
|
app.env.BETTER_AUTH_SECRET: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
app.env.ENCRYPTION_KEY: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
app.env.INTERNAL_API_SECRET: x
|
|
app.env.CRON_SECRET: x
|
|
postgresql.auth.password: xxxxxxxx
|
|
tests:
|
|
- it: PDB does not render when replicaCount=1 and HPA is off (tri-state null)
|
|
template: poddisruptionbudget.yaml
|
|
set:
|
|
<<: *defaults
|
|
app.replicaCount: 1
|
|
realtime.replicaCount: 1
|
|
autoscaling.enabled: false
|
|
asserts:
|
|
- hasDocuments: { count: 0 }
|
|
|
|
- it: PDB auto-renders when replicaCount>1 (tri-state null)
|
|
template: poddisruptionbudget.yaml
|
|
set:
|
|
<<: *defaults
|
|
app.replicaCount: 2
|
|
realtime.replicaCount: 2
|
|
autoscaling.enabled: false
|
|
asserts:
|
|
- hasDocuments: { count: 2 }
|
|
|
|
- it: PDB auto-renders when autoscaling.minReplicas>1 (tri-state null)
|
|
template: poddisruptionbudget.yaml
|
|
set:
|
|
<<: *defaults
|
|
app.replicaCount: 1
|
|
realtime.replicaCount: 1
|
|
autoscaling.enabled: true
|
|
autoscaling.minReplicas: 2
|
|
asserts:
|
|
- hasDocuments: { count: 2 }
|
|
|
|
- it: PDB explicitly disabled stays off even with multiple replicas
|
|
template: poddisruptionbudget.yaml
|
|
set:
|
|
<<: *defaults
|
|
app.replicaCount: 3
|
|
podDisruptionBudget.enabled: false
|
|
asserts:
|
|
- hasDocuments: { count: 0 }
|
|
|
|
- it: HPA does not render when autoscaling.enabled=false
|
|
template: hpa.yaml
|
|
set:
|
|
<<: *defaults
|
|
autoscaling.enabled: false
|
|
asserts:
|
|
- hasDocuments: { count: 0 }
|
|
|
|
- it: HPA renders when autoscaling.enabled=true and uses autoscaling/v2
|
|
template: hpa.yaml
|
|
set:
|
|
<<: *defaults
|
|
autoscaling.enabled: true
|
|
autoscaling.minReplicas: 2
|
|
autoscaling.maxReplicas: 10
|
|
autoscaling.targetCPUUtilizationPercentage: 70
|
|
asserts:
|
|
- isKind: { of: HorizontalPodAutoscaler }
|
|
- equal: { path: apiVersion, value: autoscaling/v2 }
|
|
- equal: { path: spec.minReplicas, value: 2 }
|
|
- equal: { path: spec.maxReplicas, value: 10 }
|