Skip to content

Commit

Permalink
updating rbacs and logging error
Browse files Browse the repository at this point in the history
  • Loading branch information
Fiona-Waters committed Jun 12, 2023
1 parent 92d0b68 commit a2cf4b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/appwrapper_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (r *AppWrapperReconciler) SetupWithManager(mgr ctrl.Manager) error {
if !useMachineSets {
instascaleOCMSecret, err := kubeClient.CoreV1().Secrets(r.ConfigsNamespace).Get(context.Background(), "instascale-ocm-secret", metav1.GetOptions{})
if err != nil {
klog.Infof("Error getting instascale-ocm-secret from namespace %v", r.ConfigsNamespace)
klog.Infof("Error getting instascale-ocm-secret from namespace %v - Error : %v", r.ConfigsNamespace, err)
}
ocmToken = string(instascaleOCMSecret.Data["token"])
}
Expand Down
7 changes: 7 additions & 0 deletions deployment/instascale-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,10 @@ rules:
- update
- delete
- patch

- apiGroups:
- ""
resources:
- secrets
verbs:
- get

0 comments on commit a2cf4b1

Please sign in to comment.