From 91282ff994778159664db6253880b3dbeff63632 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 27 Oct 2021 11:46:59 +0100 Subject: [PATCH] Updating Helm scripts to use the V1 of the apiregistration and rbac.authorization APIs Version v1beta1 of apiregistration.k8s.io and rbac.authorization.k8s.io have been deprecated in K8s/K8s scheduler v22. apiregistration.k8s.io/v1 has been available since K8s v1.10 and rbac.authorization.k8s.io/v1 from v1.8. The also fixes the TAS install using helm charts for K8s v22. --- .../templates/custom-metrics-apiservice.yaml | 2 +- .../templates/prometheus-cluseterRole.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/telemetry-aware-scheduling/deploy/charts/prometheus_custom_metrics_helm_chart/templates/custom-metrics-apiservice.yaml b/telemetry-aware-scheduling/deploy/charts/prometheus_custom_metrics_helm_chart/templates/custom-metrics-apiservice.yaml index f3c50ee5..c6665f32 100644 --- a/telemetry-aware-scheduling/deploy/charts/prometheus_custom_metrics_helm_chart/templates/custom-metrics-apiservice.yaml +++ b/telemetry-aware-scheduling/deploy/charts/prometheus_custom_metrics_helm_chart/templates/custom-metrics-apiservice.yaml @@ -1,4 +1,4 @@ -apiVersion: apiregistration.k8s.io/v1beta1 +apiVersion: apiregistration.k8s.io/v1 kind: APIService metadata: name: v1beta1.custom.metrics.k8s.io diff --git a/telemetry-aware-scheduling/deploy/charts/prometheus_helm_chart/templates/prometheus-cluseterRole.yaml b/telemetry-aware-scheduling/deploy/charts/prometheus_helm_chart/templates/prometheus-cluseterRole.yaml index ec0f0d42..6fd8010b 100644 --- a/telemetry-aware-scheduling/deploy/charts/prometheus_helm_chart/templates/prometheus-cluseterRole.yaml +++ b/telemetry-aware-scheduling/deploy/charts/prometheus_helm_chart/templates/prometheus-cluseterRole.yaml @@ -1,4 +1,4 @@ -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ .Values.clusterRoleNme }} @@ -19,7 +19,7 @@ rules: - nonResourceURLs: ["/metrics"] verbs: ["get"] --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ .Values.clusterRoleBindingName }}