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

deprecated preset: add warning for podman preset during and commands #4012

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

vyasgun
Copy link
Contributor

@vyasgun vyasgun commented Feb 5, 2024

Fixes: Issue #3970

Solution/Idea

podman preset deprecation warning has been added in two places: crc config set preset podman and crc start

Proposed changes

Testing

What is the bottom-line functionality that needs testing? Describe in pseudo-code or in English. Use verifiable statements that tie your changes to existing functionality.

  1. crc config set preset podman should print a warning
  2. crc start with already set preset podman should print a warning

Copy link

openshift-ci bot commented Feb 5, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@vyasgun vyasgun marked this pull request as ready for review February 5, 2024 10:38
@@ -22,6 +22,11 @@ var presetMap = map[Preset]string{
Microshift: string(Microshift),
}

const (
PodmanDeprecatedWarning = "The Podman preset is deprecated and will be removed in a future release. Consider" +
" rather using a Podman Machine managed by Podman Desktop: https://podman-desktop.io"
Copy link
Contributor

Choose a reason for hiding this comment

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

👍, @themr0c will appreciate this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, I hope so as I took the words from him 😄

Copy link
Contributor

Choose a reason for hiding this comment

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

/me knows. I approved those ;-)

@@ -87,6 +87,10 @@ func runStart(ctx context.Context) (*types.StartResult, error) {
EnableBundleQuayFallback: config.Get(crcConfig.EnableBundleQuayFallback).AsBool(),
}

if startConfig.Preset == preset.Podman {
logging.Warn(preset.PodmanDeprecatedWarning)
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link

openshift-ci bot commented Feb 5, 2024

@vyasgun: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-crc 6c1f377 link true /test e2e-crc

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@gbraad
Copy link
Contributor

gbraad commented Feb 6, 2024

/ltgm

note: ouch, mouse slipped over the button and pressed wrong.

@gbraad gbraad closed this Feb 6, 2024
@gbraad gbraad reopened this Feb 6, 2024
@gbraad
Copy link
Contributor

gbraad commented Feb 6, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Feb 6, 2024

if key == Preset && value == string(preset.Podman) {
logging.Warn(preset.PodmanDeprecatedWarning)
}
Copy link
Member

Choose a reason for hiding this comment

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

👍🏼

Copy link

openshift-ci bot commented Feb 6, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gbraad, praveenkumar

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 [gbraad,praveenkumar]

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

@praveenkumar praveenkumar merged commit 81eb68c into crc-org:main Feb 6, 2024
33 of 38 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.

3 participants