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

Improve version check #1195

Closed
wants to merge 1 commit into from

Conversation

vthapar
Copy link
Contributor

@vthapar vthapar commented Jul 31, 2024

Improves version check by making following changes:

  1. Look for version in Submariner.Status and ServiceDiscovery.Spec. These two are populated by submariner-oprator so are always present and accurate. This also fixes a bug in current code where if Submariner.Spec.Version is missing, it doesn't check for it in Status or ServiceDiscovery.

  2. For subctl commands the major and minor versions are more important than patch versions. This is because changes that significantly affect subctl commands are mostly done in releases with subsequent releases being mostly bug fixes.

Improves version check by making following changes:

1. Look for version in Submariner.Status and ServiceDiscovery.Spec.
   These two are populated by submariner-oprator so are always present
   and accurate. This also fixes a bug in current code where if
   Submariner.Spec.Version is missing, it doesn't check for it in
   Status or ServiceDiscovery.

2. For subctl commands the major and minor versions are more important
   than patch versions. This is because changes that significantly
   affect subctl commands are mostly done in releases with subsequent
   releases being mostly bug fixes.

Signed-off-by: Vishal Thapar <[email protected]>
@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr1195/vthapar/improve-version-check
🚀 Full E2E won't run until the "ready-to-test" label is applied. I will add it automatically once the PR has 2 approvals, or you can add it manually.

@vthapar vthapar marked this pull request as draft July 31, 2024 07:19
@vthapar
Copy link
Contributor Author

vthapar commented Jul 31, 2024

@maayanf24 Draft of the changes I had. Needs more testing, but should work. Would be good to discuss the design changes with team, or in an EP.

Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further
activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Aug 15, 2024
@tpantelis tpantelis removed the stale label Aug 19, 2024
Copy link

github-actions bot commented Sep 3, 2024

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further
activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Sep 3, 2024
@tpantelis tpantelis removed the stale label Sep 3, 2024
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further
activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Sep 18, 2024
@github-actions github-actions bot closed this Sep 25, 2024
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr1195/vthapar/improve-version-check]

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

Successfully merging this pull request may close these issues.

3 participants