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: add the subindex annotation #421

Merged
merged 5 commits into from
Jul 11, 2023
Merged

Conversation

zhiying-lin
Copy link
Contributor

@zhiying-lin zhiying-lin commented Jul 7, 2023

Description of your changes

  • Add this annotation to help CRP to sort the snapshots in the group and work generator to create the work name.
  • Fix the log to use the final policy snapshot name.

Now the first snapshot name will always be {CRPName}-{resourceIndex}-snapshot.
It helps to solve the duplication of resourceSnapshotName and now the name format is fixed and there is no ambiguity.

This approach is simpler compared with other options' complexity otherwise the CRP name cannot contain "-" and not supporting it will hurt customer's experience.

Fixes #

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

ryanzhang-oss
ryanzhang-oss previously approved these changes Jul 10, 2023
apis/placement/v1beta1/resourcesnapshot_types.go Outdated Show resolved Hide resolved
@michaelawyu
Copy link
Contributor

The actual name in use for resource snapshots is not updated; is this expected?

ryanzhang-oss
ryanzhang-oss previously approved these changes Jul 11, 2023
apis/placement/v1beta1/resourcesnapshot_types.go Outdated Show resolved Hide resolved
Copy link
Contributor

@michaelawyu michaelawyu left a comment

Choose a reason for hiding this comment

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

LGTM ;)

@zhiying-lin zhiying-lin merged commit 192702a into Azure:main Jul 11, 2023
10 checks passed
@zhiying-lin zhiying-lin deleted the annotation branch July 11, 2023 07:51
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