From 7bd91acbf9ef45c5690b0914d2a5c9680598d6a0 Mon Sep 17 00:00:00 2001 From: Rohith Jayawardene Date: Mon, 20 May 2024 19:22:17 +0100 Subject: [PATCH] [FEATURE] - HELM Value for Configuration Rate Limiting (#1419) * [FEATURE] - HELM Value for Configuration Rate Limiting Adding the 'configurations-threshold' value to the helm chart to enabling adding rate limiting * [HELM] - Release v0.7.14 (Application 0.4.11) (#1420) Bumping the versions in order to release the assets --- charts/terranetes-controller/Chart.yaml | 4 ++-- charts/terranetes-controller/templates/deployment.yaml | 1 + charts/terranetes-controller/values.yaml | 10 +++++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/charts/terranetes-controller/Chart.yaml b/charts/terranetes-controller/Chart.yaml index a0c2eea48..2d19e4f7b 100644 --- a/charts/terranetes-controller/Chart.yaml +++ b/charts/terranetes-controller/Chart.yaml @@ -3,8 +3,8 @@ apiVersion: v2 name: terranetes-controller description: Controller used to provision a terraform workflow within kubernetes type: application -version: v0.7.14 -appVersion: v0.4.10 +version: v0.7.15 +appVersion: v0.4.11 sources: - https://github.com/appvia/terranetes-controller - https://github.com/appvia/terranetes diff --git a/charts/terranetes-controller/templates/deployment.yaml b/charts/terranetes-controller/templates/deployment.yaml index 5074f02a4..51d9be2e6 100644 --- a/charts/terranetes-controller/templates/deployment.yaml +++ b/charts/terranetes-controller/templates/deployment.yaml @@ -62,6 +62,7 @@ spec: - --drift-controller-interval={{ .Values.controller.driftControllerInterval }} - --drift-interval={{ .Values.controller.driftInterval }} - --drift-threshold={{ .Values.controller.driftThreshold }} + - --configurations-threshold={{ .Values.controller.configuration_rate_threshold }} - --enable-context-injection={{ .Values.controller.enableContextInjection }} - --enable-namespace-protection={{ .Values.controller.enableNamespaceProtection }} - --enable-revision-update-protection={{ .Values.controller.enableRevisionUpdateProtection }} diff --git a/charts/terranetes-controller/values.yaml b/charts/terranetes-controller/values.yaml index e83cf1aeb..f9c09cad4 100644 --- a/charts/terranetes-controller/values.yaml +++ b/charts/terranetes-controller/values.yaml @@ -41,11 +41,15 @@ controller: # policy is image for policy policy: bridgecrew/checkov:3.2.55 # preload is the image to use for preload data jobs - preload: ghcr.io/appvia/terranetes-executor:v0.4.10 + preload: ghcr.io/appvia/terranetes-executor:v0.4.11 # is the controller image - controller: ghcr.io/appvia/terranetes-controller:v0.4.10 + controller: ghcr.io/appvia/terranetes-controller:v0.4.11 # The terranetes image used when running jobs - executor: ghcr.io/appvia/terranetes-executor:v0.4.10 + executor: ghcr.io/appvia/terranetes-executor:v0.4.11 + # Rate limting on configurations to prevent the controller from being overwhelmed. This + # is the percentage of configurations which are permitted to run a plan at any one time. + # Note, zero means no rate limiting is applied. + configuration_rate_threshold: 0 # driftInterval is the minimum time to check for drift driftInterval: 5h # driftThreshold is the percentage of configurations which are permitted