From fee724103844feec103eefbe14e79f4050557efc Mon Sep 17 00:00:00 2001 From: Fabian von Feilitzsch Date: Tue, 18 Jun 2024 12:37:17 -0400 Subject: [PATCH] :sparkles: Add setting to disable analysis archiver This is necessary for Kai to harvest historical data from the hub Signed-off-by: Fabian von Feilitzsch --- README.md | 1 + roles/tackle/defaults/main.yml | 1 + roles/tackle/templates/deployment-hub.yml.j2 | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/README.md b/README.md index be944621..9d1f6546 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,7 @@ Name | Default | Description --- | --- | --- feature_auth_required | true | Enable keycloak auth or false (single user/noauth) feature_isolate_namespace | true | Enable namespace isolation via network policies +feature_analysis_archiver | true | If enabled, automatically archives old analysis reports when a new one is created rwx_supported: | true | Whether or not RWX volumes are supported in the cluster hub_database_volume_size | 5Gi | Size requested for Hub database volume hub_bucket_volume_size | 100gi | Size requested for Hub bucket volume diff --git a/roles/tackle/defaults/main.yml b/roles/tackle/defaults/main.yml index eb94421e..c14ae953 100644 --- a/roles/tackle/defaults/main.yml +++ b/roles/tackle/defaults/main.yml @@ -9,6 +9,7 @@ app_version: "{{ lookup('env', 'VERSION') }}" feature_auth_required: "{{ false if app_profile == 'konveyor' else true }}" feature_auth_type: keycloak feature_isolate_namespace: true +feature_analysis_archiver: true # Environment openshift_cluster: false diff --git a/roles/tackle/templates/deployment-hub.yml.j2 b/roles/tackle/templates/deployment-hub.yml.j2 index 8ad49dd5..09077471 100644 --- a/roles/tackle/templates/deployment-hub.yml.j2 +++ b/roles/tackle/templates/deployment-hub.yml.j2 @@ -177,6 +177,13 @@ spec: {% if no_proxy|length >0 %} - name: NO_PROXY value: {{ no_proxy }} +{% endif %} +{% if feature_analysis_archiver|bool %} + - name: ANALYSIS_ARCHIVER_ENABLED + value: "true" +{% else %} + - name: ANALYSIS_ARCHIVER_ENABLED + value: "false" {% endif %} ports: - containerPort: {{ hub_port }}