Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions docs/content/docs/guide/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,14 @@ option to install a webhook forwarder called
[gosmee](https://github.com/chmouel/gosmee). This forwarder enables connectivity
between the Pipelines-as-Code controller and GitHub without requiring an
internet connection. In this scenario, it will set up a forwarding URL on
<https://hook.pipelinesascode.com> and set it up on GitHub. For OpenShift, it
will not prompt you unless you explicitly specify the `--force-gosmee` flag
(which can be useful if you are running [OpenShift Local](https://developers.redhat.com/products/openshift-local/overview) for instance).
<https://hook.pipelinesascode.com> and set it up on GitHub.

On OpenShift, the bootstrap command automatically detects and uses OpenShift
Routes (as described above), and will not prompt you to use gosmee. If you need
to use gosmee instead (for example, when running [OpenShift
Local](https://developers.redhat.com/products/openshift-local/overview)), you
can explicitly specify the `--force-gosmee` flag to bypass the OpenShift Route
detection and force the use of gosmee.

gosmee should not be used in production environments, but it can be useful for
testing.
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/tknpac/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func install(ctx context.Context, run *params.Run, opts *bootstrapOpts) error {
func createSecret(ctx context.Context, run *params.Run, opts *bootstrapOpts) error {
var err error

if opts.RouteName == "" {
if opts.RouteName == "" && !opts.forceInstallGosmee {
opts.RouteName, _ = DetectOpenShiftRoute(ctx, run, opts.targetNamespace)
if opts.RouteName != "" {
opts.autoDetectedRoute = true
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/tknpac/bootstrap/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func installPac(ctx context.Context, run *params.Run, opts *bootstrapOpts) error

fmt.Fprintf(opts.ioStreams.Out, "βœ“ Pipelines-as-Code %s has been installed\n", latestVersion)

if (!isOpenShift && opts.RouteName == "") || opts.forceInstallGosmee {
if opts.forceInstallGosmee {
if err := installGosmeeForwarder(ctx, opts); err != nil {
return err
}
Expand Down