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 installStrategy for addon and upgrade to v1beta1 #203

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

qiujian16
Copy link
Member

Signed-off-by: Jian Qiu jqiu@redhat.com

@openshift-ci openshift-ci bot requested review from deads2k and mdelder February 7, 2023 08:11
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 7, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiujian16

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Feb 7, 2023
@qiujian16 qiujian16 changed the title Add installStrategy for addon and upgrade to v1beta1 [WIP] Add installStrategy for addon and upgrade to v1beta1 Feb 7, 2023
@qiujian16 qiujian16 force-pushed the addon-installstrategy branch from 4679786 to 2c5379c Compare February 7, 2023 08:21
Signed-off-by: Jian Qiu <jqiu@redhat.com>
@qiujian16 qiujian16 force-pushed the addon-installstrategy branch from 2c5379c to 137e560 Compare February 7, 2023 08:51
@haoqing0110
Copy link
Member

/lgtm

For now we need to set storage of mca to v1alpha1,
otherwise the installNamespace field will be lost

Signed-off-by: Jian Qiu <jqiu@redhat.com>
@openshift-ci openshift-ci bot removed the lgtm label Feb 13, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 13, 2023

New changes are detected. LGTM label has been removed.

@qiujian16 qiujian16 changed the title [WIP] Add installStrategy for addon and upgrade to v1beta1 Add installStrategy for addon and upgrade to v1beta1 Feb 14, 2023
type ManagedClusterAddOnSpec struct {
// configs is a list of add-on configurations.
// In scenario where the current add-on has its own configurations.
// An empty list means there are no defautl configurations for add-on.
Copy link
Member

Choose a reason for hiding this comment

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

An empty list means there are no owned configurations for add-on?

@qiujian16
Copy link
Member Author

/hold
I want to rethink a bit upgrade path

// +kubebuilder:default=open-cluster-management-agent-addon
// +kubebuilder:validation:MaxLength=63
// +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
RegistrationNamespace string `json:"registrationNamespace,omitempty"`
Copy link
Member

@zhujian7 zhujian7 Feb 15, 2023

Choose a reason for hiding this comment

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

Not sure if using Namespace directly is better since it is in the RegistrationConfig struct.

@openshift-merge-robot
Copy link
Contributor

PR needs rebase.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants