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

[Umbrella] Open component imagePullPolicy setting parameters for karmadactl init and karmada operator #4789

Closed
2 tasks done
XiShanYongYe-Chang opened this issue Apr 1, 2024 · 11 comments
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature.

Comments

@XiShanYongYe-Chang
Copy link
Member

XiShanYongYe-Chang commented Apr 1, 2024

What would you like to be added:

Open component imagePullPolicy setting parameters for karmadactl init and karmada operator.

Why is this needed:

The helm installation method already provides users with the ability to set the component imagePullPolicy parameters:

## Specify the imagePullPolicy of karmada images
## Defaults to 'IfNotPresent', you can set to 'Always' in cases of special needs
karmadaImagePullPolicy: &karmadaImagePullPolicy IfNotPresent

pullPolicy: *karmadaImagePullPolicy

In order to ensure the consistency of different installation methods and users can customize the image pull strategy of the Karmada component, we can also provide imagePullPolicy parameter settings for karmadactl init and karmada operator installation methods.

/help

@XiShanYongYe-Chang XiShanYongYe-Chang added the kind/feature Categorizes issue or PR as related to a new feature. label Apr 1, 2024
@karmada-bot
Copy link
Collaborator

@XiShanYongYe-Chang:
This request has been marked as needing help from a contributor.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

What would you like to be added:

Open component imagePullPolicy setting parameters for karmadactl init and karmada operator.

  • open component imagePullPolicy setting parameters for karmadactl init.
  • open component imagePullPolicy setting parameters for karmada operator.

Why is this needed:

The helm installation method already provides users with the ability to set the component imagePullPolicy parameters:

## Specify the imagePullPolicy of karmada images
## Defaults to 'IfNotPresent', you can set to 'Always' in cases of special needs
karmadaImagePullPolicy: &karmadaImagePullPolicy IfNotPresent

pullPolicy: *karmadaImagePullPolicy

In order to ensure the consistency of different installation methods and users can customize the image pull strategy of the Karmada component, we can also provide imagePullPolicy parameter settings for karmadactl init and karmada operator installation methods.

/help

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@karmada-bot karmada-bot added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Apr 1, 2024
@XiShanYongYe-Chang XiShanYongYe-Chang changed the title Open component imagePullPolicy setting parameters for karmadactl init and karmada operator [Umbrella] Open component imagePullPolicy setting parameters for karmadactl init and karmada operator Apr 9, 2024
@seanlaii
Copy link
Contributor

seanlaii commented Apr 21, 2024

Hi @XiShanYongYe-Chang , is there anyone working on the second task? I'm interested in working on it if needed.

@XiShanYongYe-Chang
Copy link
Member Author

Hi @XiShanYongYe-Chang , is there anyone working on the second task? I'm interested in working on it if needed.

Thanks~ @seanlaii, I will assign it to you!

@seanlaii
Copy link
Contributor

seanlaii commented Apr 22, 2024

I would like to clarify the requirement regarding the level of control for the ImagePullPolicy in Karmada Operator. Specifically, should we provide control at the resource level or the component level in the Karmada custom resource?

Currently, the Karmada Operator installs Karmada through a custom resource, Karmada. To address this requirement, I propose adding an ImagePullPolicy field to the CommonSettings field in Karmada custom resource. This approach would enable users to define individual pull policies for each component.
Could you please confirm if this approach aligns with the expected behavior? I appreciate your guidance on ensuring a proper implementation that meets the project's standards and requirements.
Thanks for your time!

@XiShanYongYe-Chang
Copy link
Member Author

This approach would enable users to define individual pull policies for each component.

Thanks a lot. I was expecting something like this.

@XiShanYongYe-Chang
Copy link
Member Author

/assign @XiShanYongYe-Chang @seanlaii

@XiShanYongYe-Chang
Copy link
Member Author

Thanks @seanlaii
All task pr has been merged.
/close

@karmada-bot
Copy link
Collaborator

@XiShanYongYe-Chang: Closing this issue.

In response to this:

Thanks @seanlaii
All task pr has been merged.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@seanlaii
Copy link
Contributor

seanlaii commented Apr 26, 2024

Thank you for your time! Btw, it is worth noting that we might need to upgrade the controller-gen version to 0.14.0 when we upgrade Go version to v1.22 due to this issue. During my local development using Go v1.22, I encountered the same problem. However, after downgrading to Go v1.21.8 or upgrading to controller-gen v0.14.0, everything functioned as expected.

@XiShanYongYe-Chang
Copy link
Member Author

Thanks for the reminder. If it's convenient, you can raise a new issue to track this. We need to do this when we upgrade the go version to 1.22.

@seanlaii
Copy link
Contributor

seanlaii commented Apr 26, 2024

Sure! I created it here. Please feel free to inform me if I need to add any tags or labels. I am new to creating issues, so your guidance would be greatly appreciated. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature.
Projects
Status: No status
Development

No branches or pull requests

3 participants