diff --git a/pkg/api/createGitlabPipeline.go b/pkg/api/createGitlabPipeline.go index 837f788..75a28d9 100644 --- a/pkg/api/createGitlabPipeline.go +++ b/pkg/api/createGitlabPipeline.go @@ -73,6 +73,10 @@ func (e *Environment) CreateGitlabPipeline(ctx context.Context, input *CreateGit return "", errNoGitlabClient } + if e.IsSystemNamespace() { + return "", errors.New("can not create pipeline in system namespace") + } + projectIDInt, err := strconv.Atoi(input.ProjectID) if err != nil { return "", errors.Wrap(err, "can not convert to number")