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

Delete existing system resource during enrollment #427

Merged

Conversation

yjian118
Copy link
Collaborator

During the enrollment, it is possible that the system resource name applied during enrollment deffers from the existing one. To prevent this problem, this commit checks the existing system resources and delete them before applying new system resource.

Test plan:
Passed - successfully finish the subcloud enrollment with this change. The system resource applied during the enrollment deffers from the existing system resource. Verify the system resource can be insync and reconciled after enrollment.

During the enrollment, it is possible that the system resource name
applied during enrollment deffers from the existing one. To prevent
this problem, this commit checks the existing system resources and
delete them before applying new system resource.

Test plan:
Passed -  successfully finish the subcloud enrollment with this
change. The system resource applied during the enrollment deffers from
the existing system resource. Verify the system resource can be insync
and reconciled after enrollment.

Signed-off-by: Yuxing Jiang <Yuxing.Jiang@windriver.com>
Copy link
Collaborator

@hugonicodemos hugonicodemos left a comment

Choose a reason for hiding this comment

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

LGTM

@enzocandotti enzocandotti merged commit d62d60d into Wind-River:master Nov 27, 2024
3 checks passed
wasnio pushed a commit to wasnio/cloud-platform-deployment-manager that referenced this pull request Nov 27, 2024
During the enrollment, it is possible that the system resource name
applied during enrollment deffers from the existing one. To prevent
this problem, this commit checks the existing system resources and
delete them before applying new system resource.

Test plan:
Passed -  successfully finish the subcloud enrollment with this
change. The system resource applied during the enrollment deffers from
the existing system resource. Verify the system resource can be insync
and reconciled after enrollment.

Signed-off-by: Yuxing Jiang <Yuxing.Jiang@windriver.com>
(cherry picked from commit d62d60d)
yjian118 added a commit that referenced this pull request Nov 27, 2024
During the enrollment, it is possible that the system resource name
applied during enrollment deffers from the existing one. To prevent
this problem, this commit checks the existing system resources and
delete them before applying new system resource.

Test plan:
Passed -  successfully finish the subcloud enrollment with this
change. The system resource applied during the enrollment deffers from
the existing system resource. Verify the system resource can be insync
and reconciled after enrollment.

Signed-off-by: Yuxing Jiang <Yuxing.Jiang@windriver.com>
(cherry picked from commit d62d60d)

Co-authored-by: Yuxing Jiang <yuxing.jiang@windriver.com>
@yjian118 yjian118 deleted the delete-system-resource-enrollment branch November 27, 2024 20:36
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.

4 participants