Skip to content

move global environmentd resources to a separate crd#34576

Closed
doy-materialize wants to merge 2 commits intomainfrom
push-rulnvrvwszuw
Closed

move global environmentd resources to a separate crd#34576
doy-materialize wants to merge 2 commits intomainfrom
push-rulnvrvwszuw

Conversation

@doy-materialize
Copy link
Copy Markdown
Contributor

Motivation

continuing to refactor

Tips for reviewer

this one is a lot simpler than the previous few

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.

@doy-materialize doy-materialize requested review from alex-hunt-materialize and removed request for jubrad January 20, 2026 16:26
namespaced,
group = "materialize.cloud",
version = "v1alpha1",
kind = "Environment",
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.

It worries me a bit to reuse the name Environment here. We previously had an Environment type that had a completely different purpose. This is potentially going to get people confused internally, and it may conflict with any left over CRDs still in staging and production environments.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

i'm not super concerned about things breaking - this is something we can pretty easily clean up by hand if necessary. do you have a suggestion for a better name?

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.

Maybe something like MaterializeMultiGenerationResources? I'd really like to make it clear that this is the stuff that applies to multiple generations. Environment is super generic, and doesn't really make that clear.

/// If running in AWS, override the IAM role to use to give
/// environmentd access to the persist S3 bucket.
#[kube(deprecated)]
pub environmentd_iam_role_arn: Option<String>,
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.

Should we just not have this field? If this field is set in the Materialize CR, we could just set "eks.amazonaws.com/role-arn" in the service account annotations instead.

I guess it doesn't really matter too much, since users shouldn't be messing with this CRD directly, but it would be one less thing we have to change later.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah, i wasn't sure what to do here - in order for this to be a drop-in replacement, we need to include it here, but you're probably right that we should just fix this on the cloud side first before we merge this and then we can leave it out.

Comment thread src/orchestratord/src/controller/materialize/environmentd.rs
@doy-materialize
Copy link
Copy Markdown
Contributor Author

thinking about this some more, i think #34806 is actually a better idea here - let me know what you think

@alex-hunt-materialize
Copy link
Copy Markdown
Contributor

Yeah, I prefer #34806

I think we may eventually want to change these objects to be generation aware, but that's a much larger undertaking.

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