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

Move API conditions and phases into common api file #130

Merged
merged 3 commits into from
Dec 10, 2024

Conversation

mpryc
Copy link
Collaborator

@mpryc mpryc commented Dec 9, 2024

Change which moves Conditions and Phases into separate nonadmin_types.go that will be used across all other controllers within NonAdmin project. This ensures we are making them part of the API to match them closer to the design.

Why the changes were made

These changes were introduced to improve the consistency of the NonAdmin project by centralizing the Conditions and Phases. Moving them to a dedicated nonadmin_types.go file provides a single source of truth within API, ensuring that any controller or component working with NonAdminBackup and NonAdminRestore objects can reference these conditions and phases in a consistent way and aligned with design documents and diagrams, ensuring that they are part of the standard data structure shared across the project.

How to test the changes made

Moving some constants and extracting common strings. Followed by running tests and linters:

$ make simulation-test
$ make lint

Change which moves Conditions and Phases into separate
nonadmin_types.go that will be used across all other controllers
within NonAdmin project. This ensures we are making them part
of the API to match them closer to the design.

Signed-off-by: Michal Pryc <[email protected]>
@mpryc
Copy link
Collaborator Author

mpryc commented Dec 9, 2024

I'd like to keep this a separate PR and pull out from other PRs such as #115 or #128. Let me know if that is valid PR and if yes I will create corresponding OADP one.

kaovilai
kaovilai previously approved these changes Dec 10, 2024
Copy link
Member

@kaovilai kaovilai left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Dec 10, 2024
mpryc added a commit to mpryc/oadp-operator that referenced this pull request Dec 10, 2024
Small CRD updates to make the following PR passing:
  migtools/oadp-non-admin#130

Signed-off-by: Michal Pryc <[email protected]>
@mpryc
Copy link
Collaborator Author

mpryc commented Dec 10, 2024

Depends on openshift/oadp-operator#1605

@mpryc mpryc dismissed stale reviews from kaovilai and shubham-pampattiwar via 486b6be December 10, 2024 11:28
@openshift-ci openshift-ci bot removed the lgtm label Dec 10, 2024
Updated operations instead of backups

Signed-off-by: Michal Pryc <[email protected]>
mpryc added a commit to mpryc/oadp-operator that referenced this pull request Dec 10, 2024
Small CRD updates to make the following PR passing:
  migtools/oadp-non-admin#130

Signed-off-by: Michal Pryc <[email protected]>
mpryc added a commit to mpryc/oadp-operator that referenced this pull request Dec 10, 2024
Small CRD updates to make the following PR passing:
  migtools/oadp-non-admin#130

Signed-off-by: Michal Pryc <[email protected]>
Signed-off-by: Michal Pryc <[email protected]>
openshift-merge-bot bot pushed a commit to openshift/oadp-operator that referenced this pull request Dec 10, 2024
Small CRD updates to make the following PR passing:
  migtools/oadp-non-admin#130

Signed-off-by: Michal Pryc <[email protected]>
@mpryc
Copy link
Collaborator Author

mpryc commented Dec 10, 2024

/test oadp-compatibility-check

Copy link

openshift-ci bot commented Dec 10, 2024

@mpryc: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

/test images

Use /test all to run all jobs.

In response to this:

/test oadp-compatibility-check

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-sigs/prow repository.

@mpryc mpryc requested a review from kaovilai December 10, 2024 15:38
Copy link
Contributor

@mateusoliveira43 mateusoliveira43 left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link

openshift-ci bot commented Dec 10, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kaovilai, mateusoliveira43, mpryc

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:
  • OWNERS [kaovilai,mateusoliveira43,mpryc]

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

@openshift-merge-bot openshift-merge-bot bot merged commit 56afada into migtools:master Dec 10, 2024
8 checks passed
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.

4 participants