Skip to content

297 featbilling reconciliation event watching#301

Merged
evgheni7 merged 2 commits into
mainfrom
297-featbilling-reconciliation-event-watching
May 9, 2025
Merged

297 featbilling reconciliation event watching#301
evgheni7 merged 2 commits into
mainfrom
297-featbilling-reconciliation-event-watching

Conversation

@Catalin4513
Copy link
Copy Markdown
Contributor

No description provided.

@Catalin4513 Catalin4513 self-assigned this Apr 30, 2025
@Catalin4513 Catalin4513 requested a review from evgheni7 as a code owner April 30, 2025 12:42
@Catalin4513 Catalin4513 linked an issue Apr 30, 2025 that may be closed by this pull request
2 tasks
Comment thread plugins/cosmos/pkg/billing/watch.go Outdated
Comment on lines +21 to +23
kubeconfig := os.Getenv("KUBECONFIG")
if kubeconfig == "" {
kubeconfig = filepath.Join(os.Getenv("HOME"), ".kube", "config")
}

config, err := clientcmd.BuildConfigFromFlags("", kubeconfig)
if err != nil {
log.Fatalf("Error building kubeconfig: %v", err)
}
clientset, err := kubernetes.NewForConfig(config)
if err != nil {
log.Fatalf("Error creating Kubernetes client: %v", err)
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get client from injected services, check how is done in other parts of app.

@Catalin4513 Catalin4513 force-pushed the 297-featbilling-reconciliation-event-watching branch from 10c73dd to 1ca3a7b Compare April 30, 2025 12:57
@evgheni7 evgheni7 self-requested a review April 30, 2025 13:04
Copy link
Copy Markdown
Contributor

@evgheni7 evgheni7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move duplicate sources to main app from plugins, eg. checks of crossplane events, etc.

@Catalin4513 Catalin4513 force-pushed the 297-featbilling-reconciliation-event-watching branch from 1ca3a7b to 4dcaf1b Compare April 30, 2025 14:04
@Catalin4513 Catalin4513 requested a review from evgheni7 April 30, 2025 14:23
@evgheni7 evgheni7 merged commit 19ea926 into main May 9, 2025
@evgheni7 evgheni7 deleted the 297-featbilling-reconciliation-event-watching branch May 9, 2025 11:24
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.

🚀 feat(billing): Reconciliation event watching

2 participants