Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(syncer): add job controller #347

Merged
merged 3 commits into from
Jan 23, 2025
Merged

feat(syncer): add job controller #347

merged 3 commits into from
Jan 23, 2025

Conversation

Ladicle
Copy link
Contributor

@Ladicle Ladicle commented Jan 23, 2025

No description provided.

@Ladicle Ladicle requested a review from kkaneda January 23, 2025 01:38
@github-actions github-actions bot added the enhancement New feature or request label Jan 23, 2025
Copy link
Contributor

@kenji-cloudnatix kenji-cloudnatix left a comment

Choose a reason for hiding this comment

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

LG!

newJob.Annotations[annoKeyClusterID] = resp.ClusterId
newJob.Annotations[annoKeyUID] = resp.Uid
newJob.Annotations[annoKeyDeployedAt] = metav1.Now().UTC().Format(time.RFC3339)
if err := c.k8sClient.Patch(ctx, newJob, patch); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: I could be totally wrong, but if we do patch the job here, that will trigger another invocation of Reconcile? Just wanted to make sure there is no infinite call.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the job is already deployed, L116 simply returns and finishes the reconciliation.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah I see. LG!

Ladicle and others added 2 commits January 23, 2025 13:43
@Ladicle Ladicle merged commit 0947f08 into main Jan 23, 2025
2 checks passed
@Ladicle Ladicle deleted the sync-local-res branch January 23, 2025 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants