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

Add support for controller-gen deepcopy #53

Merged
merged 1 commit into from
Sep 19, 2023
Merged

Conversation

jkjell
Copy link
Member

@jkjell jkjell commented Sep 19, 2023

Add support for controller-gen deepcopy of policy package structs. This will be required for archivista data provider controllers.

…is will be required for archivista data provider controllers

Signed-off-by: John Kjell <[email protected]>
@jkjell jkjell requested a review from mikhailswift September 19, 2023 14:44
type Policy struct {
Expires time.Time `json:"expires"`
Expires metav1.Time `json:"expires"`
Copy link
Member

Choose a reason for hiding this comment

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

Does this affect the json marshalling/unmarshalling of this struct at all?

Copy link
Member Author

Choose a reason for hiding this comment

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

Possibly? If it does, for the better I think. But, we probably won't notice. From the Kubebuilder book:

There’s one other special type that we use: metav1.Time. This functions identically to time.Time, except that it has a fixed, portable serialization format.

@mikhailswift
Copy link
Member

Ran witness's tests with these changes and the expiry date all works, so this lgtm!

@jkjell jkjell merged commit 4f01b96 into main Sep 19, 2023
4 checks passed
@jkjell jkjell deleted the controller-gen-policy branch September 19, 2023 15:37
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