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

orchestrator-kubernetes: Remove TODO about owner_references #29651

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

def-
Copy link
Contributor

@def- def- commented Sep 19, 2024

I'm not sure if more has to be done to actually set the correct values. @pH14 @benesch Can you please check?

Follow-up to #29614

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered. (trigger-ci for additional test/nightly runs)
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • If this PR includes major user-facing behavior changes, I have pinged the relevant PM to schedule a changelog post.

@benesch
Copy link
Member

benesch commented Sep 19, 2024

Hmm. I don't think "no owner references" is what the TODO intended. I assume the "correct" owner reference is the Environment resource. But that's actually itself a design flaw, because we want the VPC endpoints to persist even if the environment is deprovisioned/reprovisioned, or migrated between Kubernetes clusters.

Also, the owner references here also don't really matter, because the VPC endpoints get created in the environment namespace, and everything inside that namespace gets deleted when the namespace gets deleted.

I'm inclined to just delete the TODO and move on. @pH14 or @alex-hunt-materialize team would know better if there's some reason it's important to have an owner reference here, vs just relying on namespace deletion.

@alex-hunt-materialize
Copy link
Contributor

For now, we should just leave it without owner references, and let the namespace deletion clean them up.

Long-term, we want to move these outside the individual environment clusters, so they may persist for the lifetime of the EnvironmentAssignment, not of the Environment. That would allow us to soft-delete and restore, and to migrate across environment clusters without breaking their privatelink.

Copy link
Member

@benesch benesch left a comment

Choose a reason for hiding this comment

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

Great—@def- I think we can just eliminate the TODO and the commented out code entirely then.

@def- def- changed the title orchestrator-kubernetes: Set owner_references in ensure_vpc_endpoint orchestrator-kubernetes: Remove TODO about owner_references Sep 19, 2024
@def- def- enabled auto-merge September 19, 2024 21:08
Copy link
Member

@benesch benesch left a comment

Choose a reason for hiding this comment

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

Thank you!

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.

3 participants