-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
fix(cli): Fix appset generate in --core mode #20717
Conversation
Signed-off-by: OpenGuidou <guillaume.doussin@gmail.com>
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
LGTM |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #20717 +/- ##
==========================================
- Coverage 55.21% 55.16% -0.05%
==========================================
Files 324 324
Lines 55256 55263 +7
==========================================
- Hits 30508 30485 -23
- Misses 22133 22160 +27
- Partials 2615 2618 +3 ☔ View full report in Codecov by Sentry. |
@@ -237,7 +238,14 @@ func MaybeStartLocalServer(ctx context.Context, clientOpts *apiclient.ClientOpti | |||
return fmt.Errorf("error creating kubernetes dynamic clientset: %w", err) | |||
} | |||
|
|||
controllerClientset, err := client.New(restConfig, client.Options{}) | |||
scheme := runtime.NewScheme() | |||
err = v1alpha1.AddToScheme(scheme) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to do this? This seems like something that should be done automatically on some init.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's needed in the headless mode, when login with the --core option.
On this case you use this local api server and not the real remote one.
It's not required in the regular mode
/cherry-pick release-2.13 |
Signed-off-by: OpenGuidou <guillaume.doussin@gmail.com>
Signed-off-by: OpenGuidou <guillaume.doussin@gmail.com>
Signed-off-by: OpenGuidou <guillaume.doussin@gmail.com> Signed-off-by: Adrian Aneci <aneci@adobe.com>
Fixes #20692
I'd like it to be cherry-picked to 2.13.
Checklist: