Skip to content

Commit

Permalink
Just minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
videlov committed Nov 10, 2022
1 parent 0459259 commit 587182d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
name: manager-role
rules:
- apiGroups:
- apiextensions.k8s.io
- ""
resources:
- customresourcedefinitions
- configmaps
verbs:
- create
- delete
Expand All @@ -18,9 +18,9 @@ rules:
- update
- watch
- apiGroups:
- ""
- apiextensions.k8s.io
resources:
- configmaps
- customresourcedefinitions
verbs:
- create
- delete
Expand Down
2 changes: 1 addition & 1 deletion controllers/apirule_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (r *APIRuleReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct
err := r.Config.ReadFromConfigMap(ctx, r.Client)
if err != nil {
if apierrs.IsNotFound(err) {
r.Log.Info( fmt.Sprintf(`ConfigMap %s in namespace %s was not found {"controller": "Api"}, will use default config`, helpers.CM_NAME, helpers.CM_NS))
r.Log.Info(fmt.Sprintf(`ConfigMap %s in namespace %s was not found {"controller": "Api"}, will use default config`, helpers.CM_NAME, helpers.CM_NS))
r.Config.ResetToDefault()
} else {
r.Log.Error(err, fmt.Sprintf(`could not read ConfigMap %s in namespace %s {"controller": "Api"}`, helpers.CM_NAME, helpers.CM_NS))
Expand Down

0 comments on commit 587182d

Please sign in to comment.