Commit 23a71a3c authored by vladislav's avatar vladislav
Browse files

helm on prem

parent b379024b
Pipeline #98867 failed with stages
in 9 seconds
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: "{{ .Values.conf.app_name }}"
name: "{{ .Values.conf.configmap }}"
namespace: "{{ .Release.Namespace }}"
data:
LOG_LEVEL: "{{ .Values.data.log_level }}"
SCHEMA_HOST: "{{ .Values.data.schema_host }}"
AUTHORIZE_API: "{{ .Values.data.authorize_api }}"
REDIS_SEARCH_HOST: "{{ .Values.data.redis_search_host }}"
REDIS_GROUP_HOST: "{{ .Values.data.redis_group_host }}"
SECURITY_HTTPS_CERTIFICATE_TRUST: "{{ .Values.data.security_https_certificate_trust }}"
STORAGE_QUERY_RECORD_HOST: "{{ .Values.data.storage_query_record_host }}"
STORAGE_SCHEMA_HOST: "{{ .Values.data.storage_schema_host }}"
STORAGE_QUERY_RECORD_FOR_CONVERSION_HOST: "{{ .Values.data.storage_query_record_for_conversion_host }}"
STORAGE_RECORDS_BATCH_SIZE: "{{ .Values.data.storage_records_batch_size }}"
STORAGE_QUERY_KINDS_HOST: "{{ .Values.data.storage_query_kinds_host }}"
INDEXER_QUEUE_HOST: "{{ .Values.data.indexer_queue_host }}"
PARTITION_API: "{{ .Values.data.partition_api }}"
SPRING_PROFILES_ACTIVE: "{{ .Values.data.spring_profiles_active }}"
{{- if not .Values.conf.on_prem_enabled }}
GOOGLE_AUDIENCES: "{{ .Values.data.google_audiences }}"
{{- end }}
......@@ -3,7 +3,9 @@
# Declare variables to be passed into your templates.
data:
# common
log_level: "INFO"
spring_profiles_active: "gcp"
schema_host: ""
authorize_api: "http://entitlements/api/entitlements/v2/"
redis_search_host: ""
......@@ -16,10 +18,11 @@ data:
storage_query_kinds_host: "http://storage/api/storage/v2/query/kinds"
indexer_queue_host: ""
partition_api: "http://partition/api/partition/v1/"
# gcp
google_audiences: ""
spring_profiles_active: "gcp"
conf:
configmap: "indexer-config"
app_name: "indexer"
on_prem_enabled: false
{{- if .Values.conf.on_prem_enabled }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: "{{ .Values.data.serviceAccountName }}"
namespace: "{{ .Release.Namespace }}"
{{- end }}
......@@ -2,8 +2,10 @@ apiVersion: v1
kind: Service
metadata:
name: "{{ .Values.conf.app_name }}"
{{- if not .Values.conf.on_prem_enabled }}
annotations:
cloud.google.com/neg: '{"ingress": true}'
{{- end }}
namespace: "{{ .Release.Namespace }}"
labels:
app: "{{ .Values.conf.app_name }}"
......
......@@ -15,3 +15,4 @@ conf:
configmap: "indexer-config"
elastic_secret_name: "elastic-secret"
app_name: "indexer"
on_prem_enabled: false
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment