Skip to content

fix(controllers): wait for connection secret before ready#1181

Open
ndk wants to merge 2 commits into
mainfrom
nex-2511-secret-ready
Open

fix(controllers): wait for connection secret before ready#1181
ndk wants to merge 2 commits into
mainfrom
nex-2511-secret-ready

Conversation

@ndk
Copy link
Copy Markdown
Contributor

@ndk ndk commented May 25, 2026

Resolves: NEX-2511

Fix service readiness so a resource isn't reported as ready until its connection Secret has been successfully published.

@ndk ndk marked this pull request as ready for review May 25, 2026 07:46
@ndk ndk requested a review from a team as a code owner May 25, 2026 07:46
@ndk ndk force-pushed the nex-2511-secret-ready branch from c5cae80 to ed85a40 Compare May 27, 2026 10:06
@ndk
Copy link
Copy Markdown
Contributor Author

ndk commented May 28, 2026

/test

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 28, 2026

❌ Acceptance Tests Failed

Workflow: View Details

@ndk ndk force-pushed the nex-2511-secret-ready branch from 14f15f6 to dbe34d8 Compare June 2, 2026 06:25
Comment thread controllers/basic_controller.go Outdated
}

func (i *instanceReconcilerHelper) resourceNeedsConnectionSecretSync(ctx context.Context, o v1alpha1.AivenManagedObject) bool {
if GetIsRunningAnnotation(o) == "false" {
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.

I would make a helper that just would return a real boolean.

}

ref := metav1.GetControllerOf(secret)
return ref == nil || o.GetUID() == "" || ref.UID != o.GetUID()
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.

Please add a bit of explanation what happens here.

@ndk ndk force-pushed the nex-2511-secret-ready branch from dbe34d8 to 3f35fb4 Compare June 5, 2026 11:31
@ndk ndk requested review from byashimov and vmyroslav June 5, 2026 11:31
@ndk
Copy link
Copy Markdown
Contributor Author

ndk commented Jun 5, 2026

/test

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2026

❌ Acceptance Tests Failed

Workflow: View Details

@ndk
Copy link
Copy Markdown
Contributor Author

ndk commented Jun 5, 2026

/test

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2026

❌ Acceptance Tests Failed

Workflow: View Details

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