diff --git a/charts/accurate/Chart.yaml b/charts/accurate/Chart.yaml index f726041..adab87b 100644 --- a/charts/accurate/Chart.yaml +++ b/charts/accurate/Chart.yaml @@ -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 diff --git a/charts/accurate/templates/generated/generated.yaml b/charts/accurate/templates/generated/generated.yaml index 622105f..23f894f 100644 --- a/charts/accurate/templates/generated/generated.yaml +++ b/charts/accurate/templates/generated/generated.yaml @@ -74,6 +74,14 @@ rules: - patch - update - watch +- apiGroups: + - '*' + resources: + - '*' + verbs: + - get + - list + - watch - apiGroups: - accurate.cybozu.com resources: diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index a90ecac..28b2385 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -18,6 +18,14 @@ rules: - patch - update - watch +- apiGroups: + - '*' + resources: + - '*' + verbs: + - get + - list + - watch - apiGroups: - accurate.cybozu.com resources: diff --git a/controllers/propagate.go b/controllers/propagate.go index 478cf7f..92e9e78 100644 --- a/controllers/propagate.go +++ b/controllers/propagate.go @@ -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