-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not list configmaps in all namespaces #1357
Conversation
2c68a77
to
8102da0
Compare
} | ||
} | ||
return installed, "", fmt.Errorf("could not detect Pipelines as Code configmap on the cluster, please reinstall") | ||
if configMap == nil { | ||
return nil, fmt.Errorf("ConfigMap not found in default namespaces") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return nil, fmt.Errorf("ConfigMap not found in default namespaces") | |
return nil, fmt.Errorf("ConfigMap not found in default namespaces("openshift-pipelines", "pipelines-as-code") |
or something
because the word default namespaces
conflict with actual k8s/openshift default ns
i don't think there is people (that i know) that runs pac in other namespace than openshift/pipelines-as-code so that's fine |
cb88d0e
to
7260744
Compare
/retest |
/retest would not rebase the commit, i clicked on the update branch button for you.... |
5c0e47a
to
2312fa0
Compare
Codecov Report
@@ Coverage Diff @@
## main #1357 +/- ##
==========================================
+ Coverage 60.73% 60.94% +0.21%
==========================================
Files 136 136
Lines 9916 9929 +13
==========================================
+ Hits 6022 6051 +29
+ Misses 3411 3394 -17
- Partials 483 484 +1
|
This commit makes the changes to detect pac installation only in default namespace i.e. pipelines-as-cdoe and openshift-pipelines or other if provided by user through --pac-namespace flag This makes the tkn pac create repo command usable for non-admin users too But on the other side, it will be a breaking change for admin users who have pac installed in some other namespace and were using the commands without pac-namespace flag till now It will affect tkn pac create repo, tkn pac bootstrap and tkn pac webhook add commands for users who had permissions till now and were not using --pac-namespace flag
2312fa0
to
00d3fb1
Compare
This commit makes the changes to detect pac installation only in
default namespace i.e. pipelines-as-cdoe and openshift-pipelines
or other if provided by user through --pac-namespace flag
This makes the tkn pac create repo command usable for
non-admin users too
But on the other side, it will be a breaking change for admin users
who have pac installed in some other namespace and were
using the commands without pac-namespace flag till now
It will affect tkn pac create repo, tkn pac bootstrap and
tkn pac webhook add commands for users who had permissions till now
and were not using --pac-namespace flag
Submitter Checklist
make test
before submitting a PR (ie: with pre-commit, no need to waste CPU cycle on CI. (or even better install pre-commit and dopre-commit install
in the root of this repo).make lint
before submitting a PR. The markdownlint error can get usually fixed by runningmake fix-markdownlint
(make sure it's installed first)