Skip to content

Commit 98b90fa

Browse files
chmouelzakisk
authored andcommitted
fix: fix skip-install option to bootstrap command
Updated the bootstrap process to allow users to bypass the installation check. This change prevented the command from failing when Pipelines as Code is already present in the cluster, enabling users to skip the automatic installation step when it is not required. Closes #2708
1 parent 357d970 commit 98b90fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/cmd/tknpac/bootstrap/bootstrap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func GithubApp(run *params.Run, ioStreams *cli.IOStreams) *cobra.Command {
207207
return err
208208
}
209209
// installed but there is error for missing resources
210-
if installed && !opts.forceInstall {
210+
if installed && !opts.forceInstall && !opts.skipInstall {
211211
return fmt.Errorf("pipelines as Code is already installed, please pass --force-install to override existing")
212212
}
213213

0 commit comments

Comments
 (0)