Skip to content

Conversation

sirutBuasai
Copy link
Member

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-prow ack-prow bot requested review from ryansteakley and surajkota October 10, 2025 20:06
Copy link
Member

@michaelhtm michaelhtm left a comment

Choose a reason for hiding this comment

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

Thanks @sirutBuasai
left a few comments

- SpaceName
- DefaultSpaceSettings
- BatchDataCaptureConfig
- CodeRepositories
Copy link
Member

Choose a reason for hiding this comment

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

should this be part of separate PR? it seems unrelated

Copy link
Member Author

@sirutBuasai sirutBuasai Oct 10, 2025

Choose a reason for hiding this comment

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

so Space integrates with other SageMaker resources as part of SageMaker Unified Studio feature. This includes, App, Domain, Space, and UserProfile. All of these resources contain SpaceName, DefaultSapceSettings, and CodeRepositories. I've tested these features and they should be good to uncomment

Comment on lines -1257 to -1258
- CustomFileSystemConfig.FSxLustreFileSystemConfig
- CustomFileSystemConfig.S3FileSystemConfig
Copy link
Member

Choose a reason for hiding this comment

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

this one as well

Copy link
Member Author

Choose a reason for hiding this comment

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

Old SDK version that was pinned to 1.32 had only CustomFileSystemConfig.EFSFileSystemConfig. Upgrade to SDK 1.39 added these two additional union fields. This field is used in Space, Domain, and UserSetting so they should be added.

Comment on lines +989 to +991
Tags:
compare:
is_ignored: true
Copy link
Member

Choose a reason for hiding this comment

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

why ignore Tags compare?

Copy link
Member Author

Choose a reason for hiding this comment

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

For all sagemaker resources, we haven't implemented tag comparison/updates yet. I'm not sure if this has been done upstream from codegen already. But if it has, we'll probably require another PR that enable tag comparison across all resources.

- pipelines
- pipelineexecutions
- processingjobs
- spaces
Copy link
Member

Choose a reason for hiding this comment

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

Let's make sure this PR focuses on only bringing Spaces CRD

Copy link
Member Author

Choose a reason for hiding this comment

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

Space resource is tightly integrated with Domain, UserProfile, and App resource. This is why the PR also contain some changes to these resources. If we dont make any change to those 3 resources to integrate with Space, the addition of Space resource is not going to be functional.

Copy link
Member

Choose a reason for hiding this comment

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

ditto

Copy link
Member Author

Choose a reason for hiding this comment

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

Space is tightly coupled, resource won't function without userprofile changes

Copy link
Member

Choose a reason for hiding this comment

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

ditto

Copy link
Member Author

Choose a reason for hiding this comment

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

Space is tightly coupled, resource won't function without domain changes

Copy link
Member

Choose a reason for hiding this comment

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

s/test_studio.py/test_spaces.py/

Copy link
Member Author

Choose a reason for hiding this comment

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

Test studio is more of an end to end test for SageMaker Unified Studio which consists of Domain, UserProfile, Space, and App

Copy link
Member Author

Choose a reason for hiding this comment

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

It's hard to separate these resources into its own tests due to the coupling and dependency of these resources

Copy link
Member

Choose a reason for hiding this comment

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

We've always introduced/tested a single resource at a time in ACK..this keeps things isolated and we can independently add more tests to the resources that need it more.

Here's an example of this in ec2: https://github.com/aws-controllers-k8s/ec2-controller/blob/main/test/e2e/tests/test_subnet.py#L56-L61

Copy link
Member Author

Choose a reason for hiding this comment

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

I see, with the way ec2 controller is sharing resources across tests, this may be a bigger refactor than needed in this PR. Are we okay with merging this in and I can do a test refactor later on?

Copy link
Member

Choose a reason for hiding this comment

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

sure! we can merge this now

Copy link
Member

@michaelhtm michaelhtm left a comment

Choose a reason for hiding this comment

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

/lgtm

@ack-prow ack-prow bot added the lgtm Indicates that a PR is ready to be merged. label Oct 16, 2025
Copy link

ack-prow bot commented Oct 16, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: michaelhtm, sirutBuasai

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-prow ack-prow bot added the approved label Oct 16, 2025
@ack-prow ack-prow bot merged commit 40287c9 into aws-controllers-k8s:main Oct 16, 2025
7 checks passed
@sirutBuasai sirutBuasai deleted the space branch October 16, 2025 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants