Skip to content
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

Bug: Alert discord canot send notification with secret definition #121

Closed
dmicheneau opened this issue Nov 7, 2024 · 2 comments · Fixed by #125
Closed

Bug: Alert discord canot send notification with secret definition #121

dmicheneau opened this issue Nov 7, 2024 · 2 comments · Fixed by #125

Comments

@dmicheneau
Copy link
Member

dmicheneau commented Nov 7, 2024

Events

Error executing action alert-discord: secrets "discord-secret" is forbidden: 
User "system:serviceaccount:kimup-operator:kimup" cannot get resource "secrets" in API group "" in the namespace "default"
@dmicheneau
Copy link
Member Author

dmicheneau commented Nov 7, 2024

workaround manifest role.yaml need to add secrets read definition.

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: kimup-role
rules:
...
- apiGroups:
   - ""
  resources:
  - secrets
  verbs:
  - get

@dmicheneau dmicheneau changed the title Bug: Alert discord canot send notification Bug: Alert discord canot send notification with secret definition Nov 7, 2024
@dmicheneau
Copy link
Member Author

In file internal/controller/kimup-controller.go add line 38

//+kubebuilder:rbac:groups="",resources=secrets,verbs=get

@dmicheneau dmicheneau linked a pull request Nov 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant