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

deployment: remove pointer from containerSpec #638

Merged

Conversation

sebrandon1
Copy link
Collaborator

To match the daemonset line of the same operation. The daemonset package doesn't require the containerSpec to be a pointer so we can remove it here to prevent nil dereferencing.

@sebrandon1
Copy link
Collaborator Author

This will take changes in the eco-gotests repo as well.

@kononovn
Copy link
Collaborator

@sebrandon1 This is critical api change. What is the root cause behind that?

@sebrandon1
Copy link
Collaborator Author

Consistency mostly. The daemonset package has the same function call but requires a struct versus a pointer to a struct.

@sebrandon1 sebrandon1 changed the title Remove pointer from deployment containerSpec deployment: remove pointer from containerSpec Sep 4, 2024
Copy link
Collaborator

@kononovn kononovn left a comment

Choose a reason for hiding this comment

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

/lgtm

@kononovn kononovn merged commit 54fbd00 into openshift-kni:main Sep 4, 2024
1 of 2 checks passed
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