-
Notifications
You must be signed in to change notification settings - Fork 142
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
Add missing roles for the helm watcher #1328
Conversation
18b52ea
to
0bf7ac2
Compare
0bf7ac2
to
348dc58
Compare
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.
can we get the acceptance test updated to create the HelmRepo in a different namespace to wego, to help cover this issue?
348dc58
to
61a44cb
Compare
Testing
Seems to work fine now... implementing the acceptance test next. |
Finally tested this in cluster. The above test run was a dev run. It doesn't work yet sadly. 😂 |
Fiiixed :)
I was missing patch verb. :D |
Running the acceptance test wasn't easy. I made my own org ( for whatever reason, I couldn't get it to work with users ). Then created a kind launching script with a local registry and edited the deployment yaml file outlined in Jakes ticket here #1158. Then, finally things worked. I had to edit a bunch of code to use the correct kind launching script. |
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: helm-watcher-role |
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.
is this too ambiguous? Since its not namespaced maybe worth putting wego-
prefix? Idk I don't feel that strongly but eh 🤷
apierrors "k8s.io/apimachinery/pkg/api/errors" | ||
|
||
"github.com/weaveworks/weave-gitops/cmd/gitops/version" | ||
"github.com/weaveworks/weave-gitops/manifests" | ||
"github.com/weaveworks/weave-gitops/pkg/kube" | ||
apierrors "k8s.io/apimachinery/pkg/api/errors" |
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.
gergely footprint 😆
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.
lgtm couple nits 😄
* Add missing roles for the helm watcher * Added missing verbs * Added acceptnace test * Renamed
Closes #1327
TODO: Add acceptance test for cross namespace access.