apiVersion: operator.ptah.run/v1alpha1
kind: PtahSchema
metadata:
  name: shipments
spec:
  target:
    engine: PostgreSQL
    coordinationKey: blog/fulfillment/primary
    urlFrom:
      name: demo-database
      key: url
  desired:
    ociRef: oci://e2e-registry.ptah-test-a-1-37-0-demo-03c2a0e0b9.svc.cluster.local:5000/schemas/blog-shipments@sha256:7822110a8966391651f3daf3d58d78f9a66a32b33ea5feab6bfb79c4fb6f4554
    registryAuthFrom:
      name: demo-registry
      mode: Environment
      usernameKey: username
      passwordKey: password
      registryKey: registry
    verificationPolicyFrom:
      name: blog-schema-policy
      key: policy.yaml
    transport:
      plainHTTP: true
  policy:
    apply: OnApproval
    allowDestructive: false
    driftSeverity: all
  interval: 30s
  execution:
    activeDeadlineSeconds: 300
    failureRetryInterval: 10s
    connectTimeout: 30s
