pipelines-as-code
pipelines-as-code copied to clipboard
tkn pac bootstrap errors out on OpenShift
$ tkn pac bootstrap [main]
🏃 Checking if Pipelines as Code is installed.
Error: could not detect Pipelines as Code configmap on the cluster, please reinstall
it happens when we disable PAC from TektonConfig and then install using tkn-pac when we disable the PAC, Repository CRD doesn't get deleted which causes this issue
Is tkn pac CLI only useable by cluster-admins? similar error, except PAC is installed on the OCP cluster by default but users cannot create repos using the CLI. They obviously don't get access to openshift-* namespaces so if the CLI is trying to verify things exist there it will fail.
$ tkn-pac create repository
? Enter the Git repository url (default: https://gitlab.internal/repo):
? Please enter the namespace where the pipeline should run (default: repo):
✓ Repository repo has been created in repo namespace
Error: could not detect Pipelines as Code configmap on the cluster, please reinstall
$ oc get cm -n openshift-pipelines
NAME DATA AGE
config-artifact-bucket 0 59d
config-artifact-pvc 0 59d
config-defaults 2 59d
config-defaults-triggers 2 59d
config-leader-election 3 59d
config-logging 3 59d
config-logging-triggers 4 59d
config-observability 5 59d
config-observability-triggers 1 59d
config-registry-cert 0 59d
config-service-cabundle 1 59d
config-trusted-cabundle 1 59d
feature-flags 9 59d
feature-flags-triggers 2 59d
kube-root-ca.crt 1 721d
openshift-service-ca.crt 1 636d
pipelines-as-code 7 59d
pipelines-as-code-info 3 59d
pipelines-info 1 59d
triggers-info 1 59d
it should not be for that command, any chance to fill a new bug report so we can look at it? this would need to be backported