From 72e8df96d86bda1a2f97ce820af18b75653c2d78 Mon Sep 17 00:00:00 2001 From: idanshoham Date: Wed, 10 Jul 2024 12:47:14 +0300 Subject: [PATCH 1/4] [src] adding the ability to perform CRUD operations over HPAs from controller-v2 as part of the automatic rightsizing feature --- charts/ocean-kubernetes-controller/templates/clusterrole.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/ocean-kubernetes-controller/templates/clusterrole.yaml b/charts/ocean-kubernetes-controller/templates/clusterrole.yaml index 66bd010..18fbe03 100644 --- a/charts/ocean-kubernetes-controller/templates/clusterrole.yaml +++ b/charts/ocean-kubernetes-controller/templates/clusterrole.yaml @@ -117,6 +117,9 @@ rules: - apiGroups: ["autoscaling.k8s.io"] resources: ["verticalpodautoscalers", "verticalpodautoscalers/status"] verbs: ["get", "list", "watch", "patch", "update", "create", "delete"] +- apiGroups: ["autoscaling.k8s.io"] + resources: ["horizontalpodautoscalers", "horizontalpodautoscalers/status"] + verbs: ["get", "list", "watch", "patch", "update", "create", "delete"] {{- end }} # --------------------------------------------------------------------------- # feature: controller/leader-election (high-availability) From 06bd6eb3209a002c93ce77289df2e255f3ad50be Mon Sep 17 00:00:00 2001 From: idanshoham Date: Wed, 10 Jul 2024 13:15:16 +0300 Subject: [PATCH 2/4] bump version --- charts/ocean-kubernetes-controller/Chart.yaml | 4 ++-- charts/ocean-kubernetes-controller/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/ocean-kubernetes-controller/Chart.yaml b/charts/ocean-kubernetes-controller/Chart.yaml index e715ef2..f834cdf 100644 --- a/charts/ocean-kubernetes-controller/Chart.yaml +++ b/charts/ocean-kubernetes-controller/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: ocean-kubernetes-controller description: A Helm chart for Ocean Kubernetes Controller type: application -version: 0.1.49 -appVersion: 2.0.63 +version: 0.1.50 +appVersion: 2.0.64 kubeVersion: ">=1.20.0-0" maintainers: - name: spotinst diff --git a/charts/ocean-kubernetes-controller/README.md b/charts/ocean-kubernetes-controller/README.md index 1b768d0..65c9ca4 100644 --- a/charts/ocean-kubernetes-controller/README.md +++ b/charts/ocean-kubernetes-controller/README.md @@ -1,6 +1,6 @@ # ocean-kubernetes-controller -![Version: 0.1.49](https://img.shields.io/badge/Version-0.1.49-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.63](https://img.shields.io/badge/AppVersion-2.0.63-informational?style=flat-square) +![Version: 0.1.50](https://img.shields.io/badge/Version-0.1.50-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.64](https://img.shields.io/badge/AppVersion-2.0.64-informational?style=flat-square) A Helm chart for Ocean Kubernetes Controller. From 34814dc25722fa380f023cf89f06b00f13be65b2 Mon Sep 17 00:00:00 2001 From: idanshoham Date: Thu, 1 Aug 2024 12:24:49 +0300 Subject: [PATCH 3/4] revert unnecessary changes --- charts/ocean-kubernetes-controller/Chart.yaml | 4 ++-- charts/ocean-kubernetes-controller/README.md | 2 +- charts/ocean-kubernetes-controller/templates/clusterrole.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/ocean-kubernetes-controller/Chart.yaml b/charts/ocean-kubernetes-controller/Chart.yaml index f834cdf..e715ef2 100644 --- a/charts/ocean-kubernetes-controller/Chart.yaml +++ b/charts/ocean-kubernetes-controller/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: ocean-kubernetes-controller description: A Helm chart for Ocean Kubernetes Controller type: application -version: 0.1.50 -appVersion: 2.0.64 +version: 0.1.49 +appVersion: 2.0.63 kubeVersion: ">=1.20.0-0" maintainers: - name: spotinst diff --git a/charts/ocean-kubernetes-controller/README.md b/charts/ocean-kubernetes-controller/README.md index 65c9ca4..1b768d0 100644 --- a/charts/ocean-kubernetes-controller/README.md +++ b/charts/ocean-kubernetes-controller/README.md @@ -1,6 +1,6 @@ # ocean-kubernetes-controller -![Version: 0.1.50](https://img.shields.io/badge/Version-0.1.50-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.64](https://img.shields.io/badge/AppVersion-2.0.64-informational?style=flat-square) +![Version: 0.1.49](https://img.shields.io/badge/Version-0.1.49-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.63](https://img.shields.io/badge/AppVersion-2.0.63-informational?style=flat-square) A Helm chart for Ocean Kubernetes Controller. diff --git a/charts/ocean-kubernetes-controller/templates/clusterrole.yaml b/charts/ocean-kubernetes-controller/templates/clusterrole.yaml index 18fbe03..428f205 100644 --- a/charts/ocean-kubernetes-controller/templates/clusterrole.yaml +++ b/charts/ocean-kubernetes-controller/templates/clusterrole.yaml @@ -119,7 +119,7 @@ rules: verbs: ["get", "list", "watch", "patch", "update", "create", "delete"] - apiGroups: ["autoscaling.k8s.io"] resources: ["horizontalpodautoscalers", "horizontalpodautoscalers/status"] - verbs: ["get", "list", "watch", "patch", "update", "create", "delete"] + verbs: ["patch", "update"] {{- end }} # --------------------------------------------------------------------------- # feature: controller/leader-election (high-availability) From 0349abb3b50362a2f49cc96b630d5c349c221c69 Mon Sep 17 00:00:00 2001 From: Roi Kramer Date: Thu, 1 Aug 2024 15:02:02 +0300 Subject: [PATCH 4/4] bump controller v2.0.65 & fixed adding args to controller deployment --- charts/ocean-kubernetes-controller/Chart.yaml | 4 ++-- charts/ocean-kubernetes-controller/README.md | 2 +- charts/ocean-kubernetes-controller/templates/deployment.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/ocean-kubernetes-controller/Chart.yaml b/charts/ocean-kubernetes-controller/Chart.yaml index f834cdf..e721ce6 100644 --- a/charts/ocean-kubernetes-controller/Chart.yaml +++ b/charts/ocean-kubernetes-controller/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: ocean-kubernetes-controller description: A Helm chart for Ocean Kubernetes Controller type: application -version: 0.1.50 -appVersion: 2.0.64 +version: 0.1.51 +appVersion: 2.0.65 kubeVersion: ">=1.20.0-0" maintainers: - name: spotinst diff --git a/charts/ocean-kubernetes-controller/README.md b/charts/ocean-kubernetes-controller/README.md index 65c9ca4..e9c5e8b 100644 --- a/charts/ocean-kubernetes-controller/README.md +++ b/charts/ocean-kubernetes-controller/README.md @@ -1,6 +1,6 @@ # ocean-kubernetes-controller -![Version: 0.1.50](https://img.shields.io/badge/Version-0.1.50-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.64](https://img.shields.io/badge/AppVersion-2.0.64-informational?style=flat-square) +![Version: 0.1.51](https://img.shields.io/badge/Version-0.1.51-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.65](https://img.shields.io/badge/AppVersion-2.0.65-informational?style=flat-square) A Helm chart for Ocean Kubernetes Controller. diff --git a/charts/ocean-kubernetes-controller/templates/deployment.yaml b/charts/ocean-kubernetes-controller/templates/deployment.yaml index 66c6467..a1dd06a 100644 --- a/charts/ocean-kubernetes-controller/templates/deployment.yaml +++ b/charts/ocean-kubernetes-controller/templates/deployment.yaml @@ -53,7 +53,7 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} args: {{- range .Values.args }} - - {{ . }} + - {{ . }} {{- end }} {{- if eq (include "ocean-kubernetes-controller.logShipping.enabled" .) "true" }} - --log_to_file