|
97 | 97 | GitIntegrationRegistrationOpts *apmodel.RegisterToGitIntegrationArgs
|
98 | 98 | KubeFactory kube.Factory
|
99 | 99 | CommonConfig *runtime.CommonConfig
|
100 |
| - NamespaceLabels map[string]string |
| 100 | + NamespaceLabels map[string]string |
101 | 101 | versionStr string
|
102 | 102 | kubeContext string
|
103 | 103 | kubeconfig string
|
@@ -881,20 +881,28 @@ func removeGitIntegrations(ctx context.Context, opts *RuntimeUninstallOptions) e
|
881 | 881 |
|
882 | 882 | func addDefaultGitIntegration(ctx context.Context, appProxyClient codefresh.AppProxyAPI, runtime string, opts *apmodel.AddGitIntegrationArgs) error {
|
883 | 883 | if err := RunGitIntegrationAddCommand(ctx, appProxyClient, opts); err != nil {
|
884 |
| - command := util.Doc(fmt.Sprintf( |
| 884 | + commandAdd := util.Doc(fmt.Sprintf( |
885 | 885 | "\t<BIN> integration git add default --runtime %s --provider %s --api-url %s",
|
886 | 886 | runtime,
|
887 | 887 | strings.ToLower(opts.Provider.String()),
|
888 | 888 | opts.APIURL,
|
889 | 889 | ))
|
| 890 | + |
| 891 | + commandRegister := util.Doc(fmt.Sprintf( |
| 892 | + "\t<BIN> integration git register default --runtime %s --token <your-token>", |
| 893 | + runtime, |
| 894 | + )) |
| 895 | + |
890 | 896 | return fmt.Errorf(`
|
891 |
| -%w |
| 897 | + %w |
892 | 898 | you can try to create it manually by running:
|
893 | 899 |
|
894 |
| -%s |
895 |
| -`, |
| 900 | + %s |
| 901 | + %s |
| 902 | + `, |
896 | 903 | err,
|
897 |
| - command, |
| 904 | + commandAdd, |
| 905 | + commandRegister, |
898 | 906 | )
|
899 | 907 | }
|
900 | 908 |
|
@@ -1250,7 +1258,7 @@ func RunRuntimeList(ctx context.Context) error {
|
1250 | 1258 | }
|
1251 | 1259 |
|
1252 | 1260 | tb := ansiterm.NewTabWriter(os.Stdout, 0, 0, 4, ' ', 0)
|
1253 |
| - _, err = fmt.Fprintln(tb, "NAME\tNAMESPACE\tCLUSTER\tVERSION\tSYNC_STATUS\tHEALTH_STATUS\tHEALTH_MESSAGE\tINSTALLATION_STATUS\tINGRESS_HOST") |
| 1261 | + _, err = fmt.Fprintln(tb, "NAME\tNAMESPACE\tCLUSTER\tVERSION\tSYNC_STATUS\tHEALTH_STATUS\tHEALTH_MESSAGE\tINSTALLATION_STATUS\tINGRESS_HOST\tINGRESS_CLASS") |
1254 | 1262 | if err != nil {
|
1255 | 1263 | return err
|
1256 | 1264 | }
|
|
0 commit comments