Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
move crds
Browse files Browse the repository at this point in the history
  • Loading branch information
maleck13 committed Nov 3, 2023
1 parent 91e67b9 commit ae03c1b
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ gateway-manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole

.PHONY: policy-manifests
policy-manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
$(CONTROLLER_GEN) rbac:roleName=policy-role crd paths="./pkg/controllers/dnshealthcheckprobe" paths="./pkg/controllers/dnspolicy" paths="./pkg/controllers/dnsrecord" paths="./pkg/controllers/managedzone" paths="./pkg/controllers/tlspolicy" output:crd:artifacts:config=config/crd/bases output:rbac:dir=config/policy-controller/rbac
$(CONTROLLER_GEN) rbac:roleName=policy-role paths="./pkg/controllers/dnshealthcheckprobe" paths="./pkg/controllers/dnspolicy" paths="./pkg/controllers/dnsrecord" paths="./pkg/controllers/managedzone" paths="./pkg/controllers/tlspolicy" output:rbac:dir=config/policy-controller/rbac
$(CONTROLLER_GEN) crd paths="./..." output:crd:artifacts:config=config/policy-controller/crd/bases

.PHONY: manifests
manifests: gateway-manifests policy-manifests
Expand Down
2 changes: 1 addition & 1 deletion config/policy-controller/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ images:
resources:
- ../manager
- ./issuer.yaml
- ../../crd
- ../crd
- ../rbac

namespace: kuadrant-system
21 changes: 21 additions & 0 deletions config/policy-controller/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@ metadata:
creationTimestamp: null
name: policy-role
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- delete
- get
- list
- watch
- apiGroups:
- cert-manager.io
resources:
- certificates
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- cert-manager.io
resources:
Expand Down

0 comments on commit ae03c1b

Please sign in to comment.