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

bug: added --no-port-forward flag for install command #2559

Conversation

cbodonnell
Copy link
Member

@cbodonnell cbodonnell commented Feb 25, 2022

What type of PR is this?

type::bug

What this PR does / why we need it:

The existing flag --port-forward defaults to true and was inconsistent with the rest of the boolean flags, which default to false. This occasionally led to support requests where --port-forward false was not leading to the expected behavior. This PR introduces a new flag --no-port-forward that defaults to false and deprecates the old --port-forward flag.

Which issue(s) this PR fixes:

Fixes SC-38396

Special notes for your reviewer:

Also modified the Github actions to use this new flag in place of --port-forward=false.

Does this PR introduce a user-facing change?

Adds a new flag `--no-port-forward` to the CLI install command to disable automatic port-forwarding. The old flag `--port-forward` has been deprecated.

Does this PR require documentation?

Yes: Docs PR

Copy link

@label-checker label-checker bot left a comment

Choose a reason for hiding this comment

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

Label type:: is required.

Copy link

@label-checker label-checker bot left a comment

Choose a reason for hiding this comment

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

Label type:: is required.

@cbodonnell cbodonnell added the type::bug Something isn't working label Feb 25, 2022
Copy link

@label-checker label-checker bot left a comment

Choose a reason for hiding this comment

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

Label bug:: required when label type::bug is present.

@cbodonnell cbodonnell self-assigned this Feb 25, 2022
@cbodonnell cbodonnell marked this pull request as ready for review February 25, 2022 17:01
@cbodonnell cbodonnell requested a review from a team February 25, 2022 17:01
@cbodonnell cbodonnell merged commit faacd52 into main Feb 25, 2022
@cbodonnell cbodonnell deleted the craigodonnell/sc-38396/kots-install-port-forward-flag-doesn-t-work branch February 25, 2022 18:51
GraysonNull added a commit that referenced this pull request Mar 2, 2022
* bug: added --no-port-forward flag for install command (#2559)

* fix the incorrect svc endpoint in the modal (#2564)

* bug: suppress warning if API version returned is invalid (#2565)

* bug: properly parse cli and api semver

* refactored CompareVersions and added test

* added second nightly build (#2569)

* Update troubleshoot to v0.30.0 to fix viewing pod details (#2571)

* map strict flag

* add blockDeployment on backend

* add deployment block on UI

* CLI updates

* changed skip-preflight error to warn

* override skip-preflights when having strict preflights

* bug fix: pass SkipPreflights to persist

* fix: add hasStrictPreflights for check

* update: add logging

* update: add comments

* initial ui updates

* cleanup the new preflight UI

* update text for if a required text fails

Co-authored-by: Craig O'Donnell <craig@replicated.com>
Co-authored-by: Jalaja Ganapathy <jalaja@replicated.com>
Co-authored-by: Salah Al Saleh <sg.alsaleh@gmail.com>
Co-authored-by: Pavan Sokke Nagaraj <pavan@replicated.com>
Co-authored-by: garcialuis <luis@replicated.com>
pavansokkenagaraj pushed a commit that referenced this pull request Mar 8, 2022
* bug: added --no-port-forward flag for install command (#2559)

* fix the incorrect svc endpoint in the modal (#2564)

* bug: suppress warning if API version returned is invalid (#2565)

* bug: properly parse cli and api semver

* refactored CompareVersions and added test

* added second nightly build (#2569)

* Update troubleshoot to v0.30.0 to fix viewing pod details (#2571)

* map strict flag

* add blockDeployment on backend

* add deployment block on UI

* CLI updates

* changed skip-preflight error to warn

* override skip-preflights when having strict preflights

* bug fix: pass SkipPreflights to persist

* fix: add hasStrictPreflights for check

* update: add logging

* update: add comments

* initial ui updates

* cleanup the new preflight UI

* update text for if a required text fails

Co-authored-by: Craig O'Donnell <craig@replicated.com>
Co-authored-by: Jalaja Ganapathy <jalaja@replicated.com>
Co-authored-by: Salah Al Saleh <sg.alsaleh@gmail.com>
Co-authored-by: Pavan Sokke Nagaraj <pavan@replicated.com>
Co-authored-by: garcialuis <luis@replicated.com>
pavansokkenagaraj pushed a commit that referenced this pull request Mar 8, 2022
* bug: added --no-port-forward flag for install command (#2559)

* fix the incorrect svc endpoint in the modal (#2564)

* bug: suppress warning if API version returned is invalid (#2565)

* bug: properly parse cli and api semver

* refactored CompareVersions and added test

* added second nightly build (#2569)

* Update troubleshoot to v0.30.0 to fix viewing pod details (#2571)

* map strict flag

* add blockDeployment on backend

* add deployment block on UI

* CLI updates

* changed skip-preflight error to warn

* override skip-preflights when having strict preflights

* bug fix: pass SkipPreflights to persist

* fix: add hasStrictPreflights for check

* update: add logging

* update: add comments

* initial ui updates

* cleanup the new preflight UI

* update text for if a required text fails

Co-authored-by: Craig O'Donnell <craig@replicated.com>
Co-authored-by: Jalaja Ganapathy <jalaja@replicated.com>
Co-authored-by: Salah Al Saleh <sg.alsaleh@gmail.com>
Co-authored-by: Pavan Sokke Nagaraj <pavan@replicated.com>
Co-authored-by: garcialuis <luis@replicated.com>
pavansokkenagaraj pushed a commit that referenced this pull request Mar 10, 2022
* bug: added --no-port-forward flag for install command (#2559)

* fix the incorrect svc endpoint in the modal (#2564)

* bug: suppress warning if API version returned is invalid (#2565)

* bug: properly parse cli and api semver

* refactored CompareVersions and added test

* added second nightly build (#2569)

* Update troubleshoot to v0.30.0 to fix viewing pod details (#2571)

* map strict flag

* add blockDeployment on backend

* add deployment block on UI

* CLI updates

* changed skip-preflight error to warn

* override skip-preflights when having strict preflights

* bug fix: pass SkipPreflights to persist

* fix: add hasStrictPreflights for check

* update: add logging

* update: add comments

* initial ui updates

* cleanup the new preflight UI

* update text for if a required text fails

Co-authored-by: Craig O'Donnell <craig@replicated.com>
Co-authored-by: Jalaja Ganapathy <jalaja@replicated.com>
Co-authored-by: Salah Al Saleh <sg.alsaleh@gmail.com>
Co-authored-by: Pavan Sokke Nagaraj <pavan@replicated.com>
Co-authored-by: garcialuis <luis@replicated.com>
pavansokkenagaraj pushed a commit that referenced this pull request Mar 10, 2022
* bug: added --no-port-forward flag for install command (#2559)

* fix the incorrect svc endpoint in the modal (#2564)

* bug: suppress warning if API version returned is invalid (#2565)

* bug: properly parse cli and api semver

* refactored CompareVersions and added test

* added second nightly build (#2569)

* Update troubleshoot to v0.30.0 to fix viewing pod details (#2571)

* map strict flag

* add blockDeployment on backend

* add deployment block on UI

* CLI updates

* changed skip-preflight error to warn

* override skip-preflights when having strict preflights

* bug fix: pass SkipPreflights to persist

* fix: add hasStrictPreflights for check

* update: add logging

* update: add comments

* initial ui updates

* cleanup the new preflight UI

* update text for if a required text fails

Co-authored-by: Craig O'Donnell <craig@replicated.com>
Co-authored-by: Jalaja Ganapathy <jalaja@replicated.com>
Co-authored-by: Salah Al Saleh <sg.alsaleh@gmail.com>
Co-authored-by: Pavan Sokke Nagaraj <pavan@replicated.com>
Co-authored-by: garcialuis <luis@replicated.com>
pavansokkenagaraj pushed a commit that referenced this pull request Mar 11, 2022
* bug: added --no-port-forward flag for install command (#2559)

* fix the incorrect svc endpoint in the modal (#2564)

* bug: suppress warning if API version returned is invalid (#2565)

* bug: properly parse cli and api semver

* refactored CompareVersions and added test

* added second nightly build (#2569)

* Update troubleshoot to v0.30.0 to fix viewing pod details (#2571)

* map strict flag

* add blockDeployment on backend

* add deployment block on UI

* CLI updates

* changed skip-preflight error to warn

* override skip-preflights when having strict preflights

* bug fix: pass SkipPreflights to persist

* fix: add hasStrictPreflights for check

* update: add logging

* update: add comments

* initial ui updates

* cleanup the new preflight UI

* update text for if a required text fails

Co-authored-by: Craig O'Donnell <craig@replicated.com>
Co-authored-by: Jalaja Ganapathy <jalaja@replicated.com>
Co-authored-by: Salah Al Saleh <sg.alsaleh@gmail.com>
Co-authored-by: Pavan Sokke Nagaraj <pavan@replicated.com>
Co-authored-by: garcialuis <luis@replicated.com>
pavansokkenagaraj pushed a commit that referenced this pull request Mar 11, 2022
* map strict flag

* add blockDeployment on backend

* add deployment block on UI

* CLI updates

* changed skip-preflight error to warn

* override skip-preflights when having strict preflights

* bug fix: pass SkipPreflights to persist

* fix: add hasStrictPreflights for check

* update: add logging

* update: add comments

* Grayson/preflight UI updates (#2572)

* bug: added --no-port-forward flag for install command (#2559)

* fix the incorrect svc endpoint in the modal (#2564)

* bug: suppress warning if API version returned is invalid (#2565)

* bug: properly parse cli and api semver

* refactored CompareVersions and added test

* added second nightly build (#2569)

* Update troubleshoot to v0.30.0 to fix viewing pod details (#2571)

* map strict flag

* add blockDeployment on backend

* add deployment block on UI

* CLI updates

* changed skip-preflight error to warn

* override skip-preflights when having strict preflights

* bug fix: pass SkipPreflights to persist

* fix: add hasStrictPreflights for check

* update: add logging

* update: add comments

* initial ui updates

* cleanup the new preflight UI

* update text for if a required text fails

Co-authored-by: Craig O'Donnell <craig@replicated.com>
Co-authored-by: Jalaja Ganapathy <jalaja@replicated.com>
Co-authored-by: Salah Al Saleh <sg.alsaleh@gmail.com>
Co-authored-by: Pavan Sokke Nagaraj <pavan@replicated.com>
Co-authored-by: garcialuis <luis@replicated.com>

* clean up

* persist rendered preflight spec

* update mock funcs

* return false, nil when there is no preflight spec

* Update AppVersionHistoryRow.jsx

* Update pkg/version/version.go

Co-authored-by: Salah Al Saleh <sg.alsaleh@gmail.com>

* Update pkg/store/kotsstore/version_store.go

Co-authored-by: Salah Al Saleh <sg.alsaleh@gmail.com>

* address review comment

* refactor to use existing store funcs

* remove error logger

* feat: remove calling applist from preflight

* Update preflight_store.go

* add 15 min polling timeout

* simplify analyzer loop

* rename val

* Update kots.go

* add strict-preflight-checks testim test

* clean up

* add validate-strict-preflight-checks

* fix validate-strict-preflight-checks test

* trigger new github job

* test new pr workflow

* Update pr-test.yaml

* Update pr-test.yaml

* Update pr-test.yaml

* clean up build-test workflows

* remove test-okteto-env

* Apply suggestions from code review

Co-authored-by: Salah Al Saleh <sg.alsaleh@gmail.com>

* remove pr-test github job file

Co-authored-by: garcialuis <luis@replicated.com>
Co-authored-by: GraysonNull <graysonnull@me.com>
Co-authored-by: Craig O'Donnell <craig@replicated.com>
Co-authored-by: Jalaja Ganapathy <jalaja@replicated.com>
Co-authored-by: Salah Al Saleh <sg.alsaleh@gmail.com>
kcboyle pushed a commit that referenced this pull request Mar 14, 2022
* map strict flag

* add blockDeployment on backend

* add deployment block on UI

* CLI updates

* changed skip-preflight error to warn

* override skip-preflights when having strict preflights

* bug fix: pass SkipPreflights to persist

* fix: add hasStrictPreflights for check

* update: add logging

* update: add comments

* Grayson/preflight UI updates (#2572)

* bug: added --no-port-forward flag for install command (#2559)

* fix the incorrect svc endpoint in the modal (#2564)

* bug: suppress warning if API version returned is invalid (#2565)

* bug: properly parse cli and api semver

* refactored CompareVersions and added test

* added second nightly build (#2569)

* Update troubleshoot to v0.30.0 to fix viewing pod details (#2571)

* map strict flag

* add blockDeployment on backend

* add deployment block on UI

* CLI updates

* changed skip-preflight error to warn

* override skip-preflights when having strict preflights

* bug fix: pass SkipPreflights to persist

* fix: add hasStrictPreflights for check

* update: add logging

* update: add comments

* initial ui updates

* cleanup the new preflight UI

* update text for if a required text fails

Co-authored-by: Craig O'Donnell <craig@replicated.com>
Co-authored-by: Jalaja Ganapathy <jalaja@replicated.com>
Co-authored-by: Salah Al Saleh <sg.alsaleh@gmail.com>
Co-authored-by: Pavan Sokke Nagaraj <pavan@replicated.com>
Co-authored-by: garcialuis <luis@replicated.com>

* clean up

* persist rendered preflight spec

* update mock funcs

* return false, nil when there is no preflight spec

* Update AppVersionHistoryRow.jsx

* Update pkg/version/version.go

Co-authored-by: Salah Al Saleh <sg.alsaleh@gmail.com>

* Update pkg/store/kotsstore/version_store.go

Co-authored-by: Salah Al Saleh <sg.alsaleh@gmail.com>

* address review comment

* refactor to use existing store funcs

* remove error logger

* feat: remove calling applist from preflight

* Update preflight_store.go

* add 15 min polling timeout

* simplify analyzer loop

* rename val

* Update kots.go

* add strict-preflight-checks testim test

* clean up

* add validate-strict-preflight-checks

* fix validate-strict-preflight-checks test

* trigger new github job

* test new pr workflow

* Update pr-test.yaml

* Update pr-test.yaml

* Update pr-test.yaml

* clean up build-test workflows

* remove test-okteto-env

* Apply suggestions from code review

Co-authored-by: Salah Al Saleh <sg.alsaleh@gmail.com>

* remove pr-test github job file

Co-authored-by: garcialuis <luis@replicated.com>
Co-authored-by: GraysonNull <graysonnull@me.com>
Co-authored-by: Craig O'Donnell <craig@replicated.com>
Co-authored-by: Jalaja Ganapathy <jalaja@replicated.com>
Co-authored-by: Salah Al Saleh <sg.alsaleh@gmail.com>
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.

None yet

2 participants