{
    "apiVersion": "operator.ptah.run/v1alpha1",
    "kind": "PtahSchema",
    "metadata": {
        "annotations": {
            "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"operator.ptah.run/v1alpha1\",\"kind\":\"PtahSchema\",\"metadata\":{\"annotations\":{},\"name\":\"shipments\",\"namespace\":\"ptah-test-a-1-37-0-harbor0800-5f2d1c8a12\"},\"spec\":{\"desired\":{\"ociRef\":\"oci://harbor.blog-harbor.svc.cluster.local/fulfillment/shipments@sha256:1f729335ce618fe83366cb5133cf35209da7adaa05e6d13071a0a5122e044ff2\",\"registryAuthFrom\":{\"dockerConfigJSONKey\":\".dockerconfigjson\",\"mode\":\"Environment\",\"name\":\"harbor-operator\",\"passwordKey\":\"password\",\"registryKey\":\"registry\",\"tokenKey\":\"token\",\"usernameKey\":\"username\"},\"transport\":{\"caFrom\":{\"key\":\"ca.crt\",\"name\":\"harbor-ca\"},\"plainHTTP\":false},\"verificationPolicyFrom\":{\"key\":\"policy.yaml\",\"name\":\"blog-schema-policy\"}},\"execution\":{\"activeDeadlineSeconds\":300,\"connectTimeout\":\"30s\",\"failureRetryInterval\":\"10s\"},\"interval\":\"30s\",\"policy\":{\"allowDestructive\":false,\"apply\":\"OnApproval\",\"driftSeverity\":\"all\",\"lockTimeout\":\"30s\",\"transactionMode\":\"file\"},\"suspend\":false,\"target\":{\"coordinationKey\":\"blog/fulfillment/primary\",\"engine\":\"PostgreSQL\",\"sharedRealm\":false,\"urlFrom\":{\"key\":\"url\",\"name\":\"demo-database\"}}}}\n",
            "ptah.run/retry": "1790193512"
        },
        "creationTimestamp": "2026-09-23T19:47:49Z",
        "generation": 6,
        "name": "shipments",
        "namespace": "ptah-test-a-1-37-0-harbor0800-5f2d1c8a12",
        "resourceVersion": "37188",
        "uid": "a885da35-5ca3-46b7-9bdf-4dcb6c53c31a"
    },
    "spec": {
        "desired": {
            "ociRef": "oci://harbor.blog-harbor.svc.cluster.local/fulfillment/shipments@sha256:4d5e619a35731d7c09422fda8e52c217330d609d12964e87362243a0331cd62c",
            "registryAuthFrom": {
                "dockerConfigJSONKey": ".dockerconfigjson",
                "mode": "Environment",
                "name": "harbor-operator",
                "passwordKey": "password",
                "registryKey": "registry",
                "tokenKey": "token",
                "usernameKey": "username"
            },
            "transport": {
                "caFrom": {
                    "key": "ca.crt",
                    "name": "harbor-ca"
                },
                "plainHTTP": false
            },
            "verificationPolicyFrom": {
                "key": "policy.yaml",
                "name": "blog-schema-policy"
            }
        },
        "execution": {
            "activeDeadlineSeconds": 300,
            "connectTimeout": "30s",
            "failureRetryInterval": "10s"
        },
        "interval": "30s",
        "policy": {
            "allowDestructive": false,
            "apply": "OnApproval",
            "driftSeverity": "all",
            "lockTimeout": "30s",
            "transactionMode": "file"
        },
        "suspend": false,
        "target": {
            "coordinationKey": "blog/fulfillment/primary",
            "engine": "PostgreSQL",
            "sharedRealm": false,
            "urlFrom": {
                "key": "url",
                "name": "demo-database"
            }
        }
    },
    "status": {
        "conditions": [
            {
                "lastTransitionTime": "2026-09-23T19:47:49Z",
                "message": "Database engine \"PostgreSQL\" is supported",
                "observedGeneration": 6,
                "reason": "SupportedEngine",
                "status": "True",
                "type": "EngineSupported"
            },
            {
                "lastTransitionTime": "2026-09-23T21:16:45Z",
                "message": "Plan is waiting for approval",
                "observedGeneration": 6,
                "reason": "AwaitingApproval",
                "status": "False",
                "type": "Ready"
            },
            {
                "lastTransitionTime": "2026-09-23T21:18:42Z",
                "message": "The latest operation completed",
                "observedGeneration": 6,
                "reason": "Succeeded",
                "status": "False",
                "type": "ReconciliationFailed"
            },
            {
                "lastTransitionTime": "2026-09-23T21:18:42Z",
                "message": "Desired OCI reference resolved to immutable content",
                "observedGeneration": 6,
                "reason": "DigestPinned",
                "status": "True",
                "type": "ArtifactResolved"
            },
            {
                "lastTransitionTime": "2026-09-23T21:18:58Z",
                "message": "Exact plan bytes are stored in immutable chunks",
                "observedGeneration": 6,
                "reason": "Published",
                "status": "True",
                "type": "PlanReady"
            },
            {
                "lastTransitionTime": "2026-09-23T21:18:58Z",
                "message": "The authoritative managed scope differs from the verified artifact",
                "observedGeneration": 6,
                "reason": "ScopedChanges",
                "status": "False",
                "type": "InSync"
            },
            {
                "lastTransitionTime": "2026-09-23T21:18:45Z",
                "message": "Artifact type and verification policy were satisfied",
                "observedGeneration": 6,
                "reason": "PolicySatisfied",
                "status": "True",
                "type": "ArtifactVerified"
            },
            {
                "lastTransitionTime": "2026-09-23T19:58:57Z",
                "message": "Database schema was observed",
                "observedGeneration": 6,
                "reason": "Observed",
                "status": "True",
                "type": "DatabaseReachable"
            },
            {
                "lastTransitionTime": "2026-09-23T21:18:58Z",
                "message": "Managed scope requires 1 schema statements; highest severity safe",
                "observedGeneration": 6,
                "reason": "ScopedChanges",
                "status": "True",
                "type": "DriftDetected"
            },
            {
                "lastTransitionTime": "2026-09-23T21:18:58Z",
                "message": "Create an approval bound to the current plan fingerprint",
                "observedGeneration": 6,
                "reason": "Waiting",
                "status": "True",
                "type": "ApprovalRequired"
            },
            {
                "lastTransitionTime": "2026-09-23T19:59:03Z",
                "message": "Reconciliation is active",
                "observedGeneration": 6,
                "reason": "Active",
                "status": "False",
                "type": "Suspended"
            },
            {
                "lastTransitionTime": "2026-09-23T21:07:21Z",
                "message": "Apply Job completed; convergence observation is pending",
                "observedGeneration": 4,
                "reason": "JobCompleted",
                "status": "False",
                "type": "Applying"
            }
        ],
        "executionBinding": {
            "controllerImage": "e2e-registry.ptah-test-a-1-37-0-harbor0800-5f2d1c8a12.svc.cluster.local:5000/ptah-operator@sha256:baf7847f23e49201a4a9aa28dc31676da2336b0f6627d821f799e1c85a970b45",
            "controllerRevision": "6d72944c477c851a19d2662eb345ea313c921dd0",
            "controllerStateVersion": 1,
            "epoch": "v1-d2e5c0c689ead48a7f2c39f44f2b2ec6",
            "executorImage": "e2e-registry.ptah-test-a-1-37-0-harbor0800-5f2d1c8a12.svc.cluster.local:5000/ptah-executor@sha256:b4fc192f10ef8d98972f9beb7b36573ccd162d7e51f7241238d1e239e9decc64",
            "ptahVersion": "0.8.0",
            "runnerImage": "e2e-registry.ptah-test-a-1-37-0-harbor0800-5f2d1c8a12.svc.cluster.local:5000/ptah-runner@sha256:baf7847f23e49201a4a9aa28dc31676da2336b0f6627d821f799e1c85a970b45",
            "runnerProtocolVersion": 5
        },
        "lastAttemptTime": "2026-09-23T21:18:58Z",
        "lastSuccessfulReconciliation": "2026-09-23T21:16:31Z",
        "nextReconciliationTime": "2026-09-23T21:19:28Z",
        "observedGeneration": 6,
        "phase": "AwaitingApproval",
        "plan": {
            "actualStateFingerprint": "sha256:bf06507a339a5cfe385e63b2fba54dd575273ea01b86cf1d05f50c5fc7cc0737",
            "artifactDigest": "sha256:4d5e619a35731d7c09422fda8e52c217330d609d12964e87362243a0331cd62c",
            "contentDigest": "sha256:c6344261a20bb614a523c2dfb18c865a864960c77404a1f6e3b070b6e3aa35fa",
            "controllerImage": "e2e-registry.ptah-test-a-1-37-0-harbor0800-5f2d1c8a12.svc.cluster.local:5000/ptah-operator@sha256:baf7847f23e49201a4a9aa28dc31676da2336b0f6627d821f799e1c85a970b45",
            "controllerRevision": "6d72944c477c851a19d2662eb345ea313c921dd0",
            "controllerStateVersion": 1,
            "coordinationDigest": "sha256:ffe501d44834d12840fe8618ae44c598f889b4e114447060fee3f7f1e7af063b",
            "createdAt": "2026-09-23T21:07:15Z",
            "desiredStateFingerprint": "sha256:b14020a11dafbeded23e1f515df69525e12663e83842404292a7a478b8c6f9ea",
            "destructive": false,
            "executionBindingID": "v1-d2e5c0c689ead48a7f2c39f44f2b2ec6",
            "executorImage": "e2e-registry.ptah-test-a-1-37-0-harbor0800-5f2d1c8a12.svc.cluster.local:5000/ptah-executor@sha256:b4fc192f10ef8d98972f9beb7b36573ccd162d7e51f7241238d1e239e9decc64",
            "fingerprint": "sha256:cc072fdce1a7802e8b2f87308e16ce4f10e061fe3f71ec5b1ded8f460f3579bf",
            "name": "ptah-plan-cc072fdce1a7802e8b2f8730",
            "policyFingerprint": "sha256:d1bbcb8cdc1305ffb48395d7adea21e7210ff3bcf2481cb83d01e1fe73869d61",
            "ptahVersion": "0.8.0",
            "runnerImage": "e2e-registry.ptah-test-a-1-37-0-harbor0800-5f2d1c8a12.svc.cluster.local:5000/ptah-runner@sha256:baf7847f23e49201a4a9aa28dc31676da2336b0f6627d821f799e1c85a970b45",
            "runnerProtocolVersion": 5,
            "statementCount": 1,
            "targetIdentityDigest": "sha256:6ffdbc23759c562281becec0802e6f3ad98952e0c462b3ed40bc29eb7ff14d90",
            "uid": "0bbeb960-cfd7-4900-adc1-453651644b60",
            "verificationPolicyDigest": "sha256:c84039b250125e32f0d51caea6afd1d13ebe4e5e0f90d382ee3be2c027574007",
            "verificationPolicyUID": "278f753f-957b-4cdc-9557-79ce70ce4044"
        },
        "source": {
            "artifactType": "application/vnd.stokaro.ptah.schema.v1",
            "digest": "sha256:4d5e619a35731d7c09422fda8e52c217330d609d12964e87362243a0331cd62c",
            "mediaType": "application/vnd.oci.image.manifest.v1+json",
            "requestedReference": "oci://harbor.blog-harbor.svc.cluster.local/fulfillment/shipments@sha256:4d5e619a35731d7c09422fda8e52c217330d609d12964e87362243a0331cd62c",
            "resolvedAt": "2026-09-23T21:18:42Z",
            "resolvedReference": "oci://harbor.blog-harbor.svc.cluster.local/fulfillment/shipments@sha256:4d5e619a35731d7c09422fda8e52c217330d609d12964e87362243a0331cd62c",
            "size": 812,
            "verificationPolicyDigest": "sha256:c84039b250125e32f0d51caea6afd1d13ebe4e5e0f90d382ee3be2c027574007",
            "verificationPolicyUID": "278f753f-957b-4cdc-9557-79ce70ce4044",
            "verified": true,
            "verifiedAt": "2026-09-23T21:18:45Z"
        },
        "target": {
            "coordinationDigest": "sha256:ffe501d44834d12840fe8618ae44c598f889b4e114447060fee3f7f1e7af063b",
            "driftFindingCount": 1,
            "driftFindings": [
                {
                    "category": "columns_added",
                    "count": 1,
                    "severity": "warning"
                }
            ],
            "driftReportDigest": "sha256:57b4a7e0de816fce56175785eb21e31343434757a256934a22171f903599815c",
            "engine": "PostgreSQL",
            "highestDriftSeverity": "warning",
            "identityDigest": "sha256:6ffdbc23759c562281becec0802e6f3ad98952e0c462b3ed40bc29eb7ff14d90",
            "lastObservedAt": "2026-09-23T21:18:52Z"
        }
    }
}
