Skip to content

Environment

<!-- generated:meta -->

Grupinfra
Planecontrol
Spec structEnvironmentSpec

<!-- /generated:meta -->

Kapan Memakai

kind: Environment adalah target deployment (dev, staging, production).

Kapan memakai Environment:

  • Mendeklarasikan target deployment + konfigurasinya

Kapan TIDAK pakai Environment:

  • Menyusun data → kind: Entity; aturan governance → kind: Policy

⚠️ Control Plane kind — dikelola oleh Platform Operator, bukan app developer.

Sumber kontrak: docs/spec/platform/04-control-plane.md.

Contoh Manifest

yaml
apiVersion: formspec.dev/v1
kind: Environment
metadata:
  name: production
spec:
  # dikelola Platform Operator
  plane: resource

Atribut

<!-- generated:attributes -->

AtributTipeWajibContohDeskripsi
modeenum (dev · prod)prodEnvironment mode
tierenum (standalone · cloud · enterprise)cloudDeployment tier
resource_poolenum (shared · exclusive)sharedResource pool strategy
resource_planes[]EnvironmentPlaneResourcePlanes lists the resource plane endpoints for this environment.
key_refstringkms://prod-signingKeyRef is the location of the platform signing key (e.g. kms://prod-signing).
policystringPolicy names the kind: Policy that applies to this environment.

<!-- /generated:attributes -->

Gotchas

Standar terbuka (CC0) dengan implementasi referensi.