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

fix: track generate name in the WorkResourceIdentifier #954

Closed
wants to merge 1 commit into from

Conversation

michaelawyu
Copy link
Contributor

Description of your changes

This API change is a prerequisite for Fleet to fix the issue where objects with generate names cannot be applied correctly.

I have:

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

How has this code been tested

N/A

Special notes for your reviewer

API change only; currently the field is not yet populated.


// GenerateName is the generate name of the resource. This field will be populated if the
// object to place has a generate name only.
GenerateName string `json:"generateName,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

can we not fill the Name field with the GenerateName in this case?

Copy link
Contributor Author

@michaelawyu michaelawyu Nov 15, 2024

Choose a reason for hiding this comment

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

Hi Ryan! The two fields are separate as once applied we should use/reveal the real name of the object; this helps the work applier/user to identify corresponding objects quicker. I think it might be less confusing to the customer as well.

Copy link
Contributor

@ryanzhang-oss ryanzhang-oss Nov 18, 2024

Choose a reason for hiding this comment

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

"name: = "generateName" when the generateName is used, right? Work API is not a customer facing object so I don't think the customer need to care. I worry about the backward compatibility of the new field though.

@michaelawyu
Copy link
Contributor Author

Discussed offline -> for now Fleet will drop the support for generate names (currently the support is broken anyway).

@michaelawyu michaelawyu closed this Dec 9, 2024
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