Change for ClusterRole from v1beta to v1
This is a change to upversion a deprecated k8s api for the ClusterRole object. The rbac.authorization.k8s.io/v1 version is present in v1.19 through to the latest and rbac.authorization.k8s.io/v1beta1 is present v1.21 and absent v1.22. Test Cases: PASS: Debian build PASS: Centos build PASS: Verify oidc-auth-apps can install in centos and test secret observer chart by using the secret observer job PASS: Verify oidc-auth-apps can install in debian and test secret observer chart by using the secret observer job PASS: Install with kubernetes version 1.22.5 and verify that ClusterRole v1 is successfully deployed to kubernetes and secret observer job runs successfully PASS: Install with kubernetes version 1.22.5 and verify that there is an error when trying to deploy a ClusterRole in v1beta: 'no matches for kind "ClusterRole" in version "rbac.authorization.k8s.io/v1beta1' Logs: https://paste.opendev.org/show/bpyFp71cVLc7YFv1HtER/ Story: 2009838 Task: 45552 Signed-off-by: Rei Oliveira <Reinildes.JoseMateusOliveira@windriver.com> Change-Id: I69d44380c51c585109f9fd52af41f52fd61859e3
This commit is contained in:
parent
40dc19f1a2
commit
835f6c0285
@ -1,13 +1,13 @@
|
||||
{{/*
|
||||
#
|
||||
# Copyright (c) 2021 Wind River Systems, Inc.
|
||||
# Copyright (c) 2021-2022 Wind River Systems, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
*/}}
|
||||
|
||||
{{- if .Values.clusterRole.create }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: secret-observer-cr
|
||||
|
Loading…
x
Reference in New Issue
Block a user