Skip to content

Instantly share code, notes, and snippets.

@kpurdon
Created November 5, 2025 23:31
Show Gist options
  • Select an option

  • Save kpurdon/30b22c2331eedbf1654482f6f77af4c1 to your computer and use it in GitHub Desktop.

Select an option

Save kpurdon/30b22c2331eedbf1654482f6f77af4c1 to your computer and use it in GitHub Desktop.

Atlas Operator Not Reporting Apply Logs to Atlas Cloud

Environment

  • Operator Version: 0.7.11
  • Atlas Cloud Plan: Paid
  • Kubernetes: EKS (dev2-semgrep-app-cluster)

Issue Description

The Atlas Kubernetes Operator successfully applies migrations from approved plans but does not report apply logs to Atlas Cloud UI. The "Apply Logs" section shows "No matching result found" despite successful migrations.

What's Working ✅

  1. Pre-approval workflow (plan creation, approval, schema push)
  2. Operator connects to Atlas Cloud successfully
  3. Operator finds and applies approved plans
  4. planLink and planURL are populated in AtlasSchema status
  5. Database migrations are applied successfully
  6. Operator logs show: "found an approved schema plan, applying"

What's NOT Working ❌

  • Apply logs do not appear in Atlas Cloud UI under the Plans view
  • No deployment run is logged in Atlas Cloud

Configuration

AtlasSchema Resource

apiVersion: db.atlasgo.io/v1alpha1
kind: AtlasSchema
metadata:
  name: scanalytics
  namespace: scanalytics
spec:
  urlFrom:
    secretKeyRef:
      name: scanalytics-db-url
      key: url
  schema:
    url: "atlas://sms-scanalytics?tag=dev2"
  cloud:
    repo: sms-scanalytics
    tokenFrom:
      secretKeyRef:
        name: scanalytics-atlas-token
        key: token

Operator Configuration

env:
  - name: PREWARM_DEVDB
    value: "true"
  - name: ALLOW_CUSTOM_CONFIG
    value: "true"

Evidence

Successful Apply in Operator Logs

2025-11-05T23:18:49Z INFO found an approved schema plan, applying
  plan: atlas://sms-scanalytics/plans/pr-13-C6r_mXy-
2025-11-05T23:18:50Z INFO schema changes are applied
  applied: 1

AtlasSchema Status (confirms planLink is set)

{
  "planLink": "https://semgrep.atlasgo.cloud/schemas/141733920768/plans/210453397513",
  "planURL": "atlas://sms-scanalytics/plans/pr-13-C6r_mXy-",
  "conditions": [{
    "type": "Ready",
    "status": "True",
    "reason": "Applied",
    "message": "The schema has been applied successfully..."
  }]
}

Atlas Cloud Plan View

  • ✅ Plan shows as "approved" (green badge)
  • ✅ Plan link is accessible
  • ❌ "Apply Logs" section shows "No matching result found"
  • ✅ CI runs (plan/push) appear in Runs tab
  • ❌ Operator deployment does NOT appear in Runs tab

Questions

  1. Is envName required for deployment reporting? (Currently defaults to "kubernetes")
  2. Are there additional permissions needed for the Atlas Cloud token?
  3. Is this a known issue in operator v0.7.11?

Expected Behavior

Apply logs should appear in Atlas Cloud UI showing:

  • When the operator applied the migration
  • What environment it was applied to
  • Confirmation of successful application
  • Any errors or warnings during application

Reproduction Steps

  1. Create PR with schema change
  2. Atlas creates plan: pr-13-C6r_mXy-
  3. Merge PR
  4. CI approves plan and pushes schema with tag
  5. Operator reconciles and applies migration successfully
  6. Check Atlas Cloud UI → Apply Logs section is empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment