AETHER-487 Add support of k8s 1.18

Change-Id: I759b71546e6ba2fc1a52ab135ea26c403fecc417
diff --git a/ran/accelleran-cbrs/accelleran-cbrs-common/templates/_helpers.tpl b/ran/accelleran-cbrs/accelleran-cbrs-common/templates/_helpers.tpl
index a944716..fe44c87 100644
--- a/ran/accelleran-cbrs/accelleran-cbrs-common/templates/_helpers.tpl
+++ b/ran/accelleran-cbrs/accelleran-cbrs-common/templates/_helpers.tpl
@@ -32,7 +32,11 @@
   labels:
 {{ tuple $saName $context | include "accelleran-cbrs-common.metadata_labels" | indent 4 }}
 ---
+{{- if semverCompare ">=1.16-0" $context.Capabilities.KubeVersion.GitVersion }}
+apiVersion: rbac.authorization.k8s.io/v1
+{{- else }}
 apiVersion: rbac.authorization.k8s.io/v1beta1
+{{- end }}
 kind: RoleBinding
 metadata:
   name: {{ $saName }}
@@ -48,7 +52,11 @@
     name: {{ $saName }}
     namespace: {{ $saNamespace }}
 ---
+{{- if semverCompare ">=1.16-0" $context.Capabilities.KubeVersion.GitVersion }}
+apiVersion: rbac.authorization.k8s.io/v1
+{{- else }}
 apiVersion: rbac.authorization.k8s.io/v1beta1
+{{- end }}
 kind: Role
 metadata:
   name: {{ $saName }}