Skip to content

Commit

Permalink
Merge pull request #21 from cybozu-go/add-role-to-view-all-resources
Browse files Browse the repository at this point in the history
Add role to view all resources for propagate resource
  • Loading branch information
ymmt2005 authored Oct 6, 2021
2 parents 69a4b24 + 3dfde45 commit 15ef59a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/accurate/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
8 changes: 8 additions & 0 deletions charts/accurate/templates/generated/generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ rules:
- patch
- update
- watch
- apiGroups:
- '*'
resources:
- '*'
verbs:
- get
- list
- watch
- apiGroups:
- accurate.cybozu.com
resources:
Expand Down
8 changes: 8 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ rules:
- patch
- update
- watch
- apiGroups:
- '*'
resources:
- '*'
verbs:
- get
- list
- watch
- apiGroups:
- accurate.cybozu.com
resources:
Expand Down
2 changes: 2 additions & 0 deletions controllers/propagate.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ func cloneResource(res *unstructured.Unstructured, ns string) *unstructured.Unst
return c
}

//+kubebuilder:rbac:groups=*,resources=*,verbs=get;list;watch

// PropagateController propagates objects of a namespace-scoped resource.
type PropagateController struct {
client.Client
Expand Down

0 comments on commit 15ef59a

Please sign in to comment.