cloud-native-toolkit / cloud-native-toolkit/planning
IGC CLI pipeline reg. error messaging.
- Dominant language
- No language data
- Stars
- 4
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
If a user is registering a new pipeline with OpenShift and doesn't have the correct permission, even after having permissions fixed, the igc CLI doesn't provide an updated message.
**To Reproduce**
Steps to reproduce the behavior:
1. Do not hold the correct permissions for cluster provisioning.
2. Attempt to register a new pipeline, ex. 'igc pipeline -n dev-tlm'
3. Provide requested credentials and receive response;
-- Creating secret(s) with git credentials
Project git repo: https://github.com/cpat-team-one/bff-tlm.git
? Provide the username: t-murch
? Provide your password/personal access token: [hidden]
? Provide the branch the pipeline should use: master
Checking for existing namespace: dev-tlm
Setting up pull secrets
Error registering pipeline: secrets is forbidden: User "IAM#todd@ibm.com" cannot list secrets in the namespace "tools": no RBAC policy matched
4. See error ^^
5. After I reached out to admin and had permissions fixed by added me to the appopriate access groups, I attempted the same process again and repeatedly received the same response. The error given never updated to reflect a need to simply logout/login.
6. Once I logged out and logged back in, I was able to register the pipeline.
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**IBM Cloud**
Select the services and tools affected
- [ ] IBM Kubernetes Service Managed Service
- [ ] Red Hat OpenShift Managed Services
- [ ] Jenkins
- [ ] Tekton
- [ ] SonarQube
- [ ] Pact
- [ ] Artifactory
- [ ] IBM Image Registry
**Desktop (please complete the following information):**
- OS: Catalina
- Browser iTerm
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.