Skip to content

Commit

Permalink
Merge pull request #721 from k8up-io/chart-event-rbac
Browse files Browse the repository at this point in the history
Regression: Add missing RBAC rule for events
  • Loading branch information
ccremer authored Aug 15, 2022
2 parents 77047cb + 7972f2c commit 88413f8
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
`bug`, `enhancement`, `documentation`, `change`, `breaking`, `dependency`
as they show up in the changelog
- [ ] PR contains the label `area:chart`
- [ ] PR contains the chart label, e.g. `chart:appcat-service-s3`
- [ ] PR contains the chart label, e.g. `chart:k8up`
- [ ] Variables are documented in the values.yaml using the format required by [Helm-Docs](https://github.com/norwoodj/helm-docs#valuesyaml-metadata).
- [ ] Chart Version bumped if immediate release after merging is planned
- [ ] I have run `make chart-docs`
Expand Down
2 changes: 0 additions & 2 deletions api/v1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// +kubebuilder:object:generate=true
// +groupName=k8up.io

// +kubebuilder:rbac:groups=coordination.k8s.io,resources=leases,verbs=get;list;create;update

package v1

import (
Expand Down
2 changes: 1 addition & 1 deletion charts/k8up/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords:
- backup
- operator
- restic
version: 3.0.0
version: 3.0.1
sources:
- https://github.com/k8up-io/k8up
maintainers:
Expand Down
4 changes: 2 additions & 2 deletions charts/k8up/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# k8up

![Version: 3.0.0](https://img.shields.io/badge/Version-3.0.0-informational?style=flat-square)
![Version: 3.0.1](https://img.shields.io/badge/Version-3.0.1-informational?style=flat-square)

Kubernetes and OpenShift Backup Operator based on restic

Expand All @@ -13,7 +13,7 @@ helm repo add k8up-io https://k8up-io.github.io/k8up
helm install k8up k8up-io/k8up
```
```bash
kubectl apply -f https://github.com/k8up-io/k8up/releases/download/k8up-3.0.0/k8up-crd.yaml
kubectl apply -f https://github.com/k8up-io/k8up/releases/download/k8up-3.0.1/k8up-crd.yaml
```

<!---
Expand Down
7 changes: 7 additions & 0 deletions charts/k8up/templates/operator-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ rules:
- get
- list
- update
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- apiGroups:
- ""
resources:
Expand Down
7 changes: 7 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ rules:
- get
- list
- update
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- apiGroups:
- ""
resources:
Expand Down
3 changes: 3 additions & 0 deletions controllers/controller_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
)

// +kubebuilder:rbac:groups=coordination.k8s.io,resources=leases,verbs=get;list;create;update
// +kubebuilder:rbac:groups=core,resources=events,verbs=create;patch

// ReconcilerSetup is a common interface to configure reconcilers.
type ReconcilerSetup interface {
SetupWithManager(mgr ctrl.Manager, l logr.Logger) error
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/explanations/release.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ This process mostly relies on https://goreleaser.com/[GoReleaser].

== Helm Chart Release

Releasing a new version of a Helm chart requires pushing a **new Git tag**, following the SemVer schema with a **chart name prefix**, for example `appcat-service-s3-1.2.3`.
Releasing a new version of a Helm chart requires pushing a **new Git tag**, following the SemVer schema with a **chart name prefix**, for example `k8up-3.2.1`.
It's recommended to create a PR for each Helm chart change separately.
After merging a PR for a Helm chart it's _not_ required to immediately release it.

Expand Down

0 comments on commit 88413f8

Please sign in to comment.