Skip to content

Add proper status handling and conditions#87

Merged
karimra merged 1 commit into
mainfrom
feature/status-updates
Jul 5, 2026
Merged

Add proper status handling and conditions#87
karimra merged 1 commit into
mainfrom
feature/status-updates

Conversation

@mcdillson

Copy link
Copy Markdown
Collaborator
  • Created StatusUpdater interface
  • DiscoveryKubernetesClient implements this interface

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 3, 2026

Copy link
Copy Markdown

Deploying gnmic-operator with  Cloudflare Pages  Cloudflare Pages

Latest commit: 620ba80
Status: ✅  Deploy successful!
Preview URL: https://ac490f2c.gnmic-operator2.pages.dev
Branch Preview URL: https://feature-status-updates.gnmic-operator2.pages.dev

View logs

Introduce a StatusUpdater interface and k8s-backed implementation so the
discovery pipeline reports lifecycle conditions (Reconciling, Ready,
Stalled) alongside the target count and last-sync timestamp.

- add core.StatusUpdater + core.StatusUpdate and k8sStatusUpdater client
- add Conditions field to TargetSourceStatus (regenerated deepcopy + CRD)
- thread the updater through CommonLoaderConfig, the HTTP loader, and the
  message processor; wire it in targetsource_controller
- drop the now-superseded updateTargetSourceStatus helper

Reworked from #87 onto current main: drops that branch's duplicated
resource-fetcher and stale pre-#63 pull-loader, keeping only the status
handling.

Co-authored-by: Cursor <cursoragent@cursor.com>
@karimra karimra force-pushed the feature/status-updates branch from 3246ecd to 620ba80 Compare July 4, 2026 23:14
@karimra karimra marked this pull request as ready for review July 4, 2026 23:14
@karimra karimra merged commit af04d80 into main Jul 5, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants