Skip to content

Commit

Permalink
Use v1 API for RoleBinding 🦝
Browse files Browse the repository at this point in the history
Starting in 1.17, using `RoleBinding` with
rbac.authorization.k8s.io/v1beta1 is deprecated and will be removed in
1.22. Let's use `v1` API instead.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
  • Loading branch information
vdemeester authored and tekton-robot committed Apr 15, 2021
1 parent c05622f commit 5addfb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/201-rolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: tekton-pipelines-controller
Expand All @@ -30,7 +30,7 @@ roleRef:
name: tekton-pipelines-controller
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: tekton-pipelines-webhook
Expand All @@ -48,7 +48,7 @@ roleRef:
name: tekton-pipelines-webhook
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: tekton-pipelines-controller-leaderelection
Expand All @@ -66,7 +66,7 @@ roleRef:
name: tekton-pipelines-leader-election
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: tekton-pipelines-webhook-leaderelection
Expand Down

0 comments on commit 5addfb3

Please sign in to comment.