Skip to content
Snippets Groups Projects
Commit 7847c1a8 authored by Mikhail Piatliou (EPAM)'s avatar Mikhail Piatliou (EPAM)
Browse files

Update bootstrap script, default spring property [GONRG-5157]

parent 24b4421f
No related branches found
No related tags found
1 merge request!209Update bootstrap script, default spring property [GONRG-5157]
...@@ -369,6 +369,7 @@ The following software have components provided under the terms of this license: ...@@ -369,6 +369,7 @@ The following software have components provided under the terms of this license:
- Cloud Key Management Service (KMS) API v1-rev20220407-1.32.1 (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-cloudkms) - Cloud Key Management Service (KMS) API v1-rev20220407-1.32.1 (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-cloudkms)
- Cloud Storage JSON API (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-storage) - Cloud Storage JSON API (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-storage)
- Cloud Storage JSON API v1-rev20220604-1.32.1 (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-storage) - Cloud Storage JSON API v1-rev20220604-1.32.1 (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-storage)
- Cloud Storage JSON API v1-rev20220608-1.32.1 (from https://repo1.maven.org/maven2/com/google/apis/google-api-services-storage)
- CloudWatch Metrics for AWS Java SDK (from https://aws.amazon.com/sdkforjava) - CloudWatch Metrics for AWS Java SDK (from https://aws.amazon.com/sdkforjava)
- Cobertura (from http://cobertura.sourceforge.net) - Cobertura (from http://cobertura.sourceforge.net)
- Collections (from https://repo1.maven.org/maven2/commons-collections/commons-collections) - Collections (from https://repo1.maven.org/maven2/commons-collections/commons-collections)
...@@ -404,6 +405,7 @@ The following software have components provided under the terms of this license: ...@@ -404,6 +405,7 @@ The following software have components provided under the terms of this license:
- Google OAuth Client Library for Java (from https://repo1.maven.org/maven2/com/google/oauth-client/google-oauth-client) - Google OAuth Client Library for Java (from https://repo1.maven.org/maven2/com/google/oauth-client/google-oauth-client)
- Gson (from http://code.google.com/p/google-gson/, https://repo1.maven.org/maven2/com/google/code/gson/gson) - Gson (from http://code.google.com/p/google-gson/, https://repo1.maven.org/maven2/com/google/code/gson/gson)
- Guava InternalFutureFailureAccess and InternalFutures (from https://repo1.maven.org/maven2/com/google/guava/failureaccess) - Guava InternalFutureFailureAccess and InternalFutures (from https://repo1.maven.org/maven2/com/google/guava/failureaccess)
- Guava ListenableFuture only (from https://repo1.maven.org/maven2/com/google/guava/listenablefuture)
- Guava: Google Core Libraries for Java (from http://code.google.com/p/guava-libraries, https://github.com/google/guava, https://repo1.maven.org/maven2/com/google/guava/guava) - Guava: Google Core Libraries for Java (from http://code.google.com/p/guava-libraries, https://github.com/google/guava, https://repo1.maven.org/maven2/com/google/guava/guava)
- HTTP functionality for the Reactor Netty library (from https://github.com/reactor/reactor-netty) - HTTP functionality for the Reactor Netty library (from https://github.com/reactor/reactor-netty)
- Hibernate Validator (from https://repo1.maven.org/maven2/org/hibernate/hibernate-validator, https://repo1.maven.org/maven2/org/hibernate/validator/hibernate-validator) - Hibernate Validator (from https://repo1.maven.org/maven2/org/hibernate/hibernate-validator, https://repo1.maven.org/maven2/org/hibernate/validator/hibernate-validator)
......
...@@ -6,7 +6,7 @@ metadata: ...@@ -6,7 +6,7 @@ metadata:
name: "{{ .Values.conf.configmap }}-bootstrap" name: "{{ .Values.conf.configmap }}-bootstrap"
namespace: "{{ .Release.Namespace }}" namespace: "{{ .Release.Namespace }}"
data: data:
PARTITION_NAME: "{{ .Values.data.partitionName }}.{{ .Release.Namespace }}.svc.cluster.local" PARTITION_NAME: "{{ .Values.data.partitionName }}"
SERVICE_ACCOUNT: {{ printf "%s@%s.iam.gserviceaccount.com" .Values.data.datafierSa .Values.data.projectId | quote }} SERVICE_ACCOUNT: {{ printf "%s@%s.iam.gserviceaccount.com" .Values.data.datafierSa .Values.data.projectId | quote }}
DATA_PARTITION_ID: "{{ .Values.data.dataPartitionId }}" DATA_PARTITION_ID: "{{ .Values.data.dataPartitionId }}"
ENVIRONMENT: "{{ .Values.data.springProfilesActive }}" ENVIRONMENT: "{{ .Values.data.springProfilesActive }}"
......
...@@ -19,9 +19,6 @@ spec: ...@@ -19,9 +19,6 @@ spec:
- image: "{{ .Values.data.image }}" - image: "{{ .Values.data.image }}"
imagePullPolicy: "{{ .Values.data.imagePullPolicy }}" imagePullPolicy: "{{ .Values.data.imagePullPolicy }}"
name: "{{ .Values.conf.appName }}" name: "{{ .Values.conf.appName }}"
env:
- name: "ACCEPT_HTTP"
value: "true"
envFrom: envFrom:
- configMapRef: - configMapRef:
name: "{{ .Values.conf.configmap }}" name: "{{ .Values.conf.configmap }}"
......
{{- if .Values.conf.onPremEnabled }} {{- if .Values.conf.onPremEnabled }}
apiVersion: security.istio.io/v1beta1 apiVersion: security.istio.io/v1beta1
kind: RequestAuthentication kind: RequestAuthentication
metadata: metadata:
name: "{{ .Values.conf.appName }}-jwt-policy" name: "{{ .Values.conf.appName }}-jwt-policy"
namespace: "{{ .Release.Namespace }}" namespace: "{{ .Release.Namespace }}"
spec: spec:
selector: selector:
matchLabels: matchLabels:
app: "{{ .Values.conf.appName }}" app: "{{ .Values.conf.appName }}"
jwtRules: jwtRules:
- issuer: "https://keycloak.{{ .Values.conf.domain }}/auth/realms/{{ .Values.auth.realm }}" - issuer: "https://keycloak.{{ .Values.conf.domain }}/auth/realms/{{ .Values.auth.realm }}"
jwksUri: "http://keycloak.{{ .Release.Namespace }}.svc.cluster.local/auth/realms/{{ .Values.auth.realm }}/protocol/openid-connect/certs" jwksUri: "http://keycloak.{{ .Release.Namespace }}.svc.cluster.local/auth/realms/{{ .Values.auth.realm }}/protocol/openid-connect/certs"
forwardOriginalToken: true forwardOriginalToken: true
- issuer: "http://keycloak.{{ .Values.conf.domain }}/auth/realms/{{ .Values.auth.realm }}" - issuer: "http://keycloak.{{ .Values.conf.domain }}/auth/realms/{{ .Values.auth.realm }}"
jwksUri: "http://keycloak.{{ .Release.Namespace }}.svc.cluster.local/auth/realms/{{ .Values.auth.realm }}/protocol/openid-connect/certs" jwksUri: "http://keycloak.{{ .Release.Namespace }}.svc.cluster.local/auth/realms/{{ .Values.auth.realm }}/protocol/openid-connect/certs"
forwardOriginalToken: true forwardOriginalToken: true
- issuer: "http://keycloak.{{ .Release.Namespace }}.svc.cluster.local/auth/realms/{{ .Values.auth.realm }}" - issuer: "http://keycloak.{{ .Release.Namespace }}.svc.cluster.local/auth/realms/{{ .Values.auth.realm }}"
jwksUri: "http://keycloak.{{ .Release.Namespace }}.svc.cluster.local/auth/realms/{{ .Values.auth.realm }}/protocol/openid-connect/certs" jwksUri: "http://keycloak.{{ .Release.Namespace }}.svc.cluster.local/auth/realms/{{ .Values.auth.realm }}/protocol/openid-connect/certs"
forwardOriginalToken: true forwardOriginalToken: true
{{- end }} {{- end }}
...@@ -34,7 +34,7 @@ generate_post_data() { ...@@ -34,7 +34,7 @@ generate_post_data() {
}, },
"bucket": { "bucket": {
"sensitive": false, "sensitive": false,
"value": "${PROJECT_ID}-records" "value": "${PROJECT_ID}-${DATA_PARTITION_ID}-records"
}, },
"crmAccountID": { "crmAccountID": {
"sensitive": false, "sensitive": false,
......
# #
# Copyright 2020-2021 Google LLC # Copyright 2020-2022 Google LLC
# Copyright 2020-2021 EPAM Systems, Inc # Copyright 2020-2022 EPAM Systems, Inc
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
...@@ -21,6 +21,7 @@ server.port=8080 ...@@ -21,6 +21,7 @@ server.port=8080
springfox.documentation.swagger.v2.path=/api-docs springfox.documentation.swagger.v2.path=/api-docs
management.endpoint.health.show-details=always management.endpoint.health.show-details=always
management.health.diskspace.enabled=false management.health.diskspace.enabled=false
ACCEPT_HTTP=true
#logging configuration #logging configuration
logging.level.org.springframework.web=${LOG_LEVEL:DEBUG} logging.level.org.springframework.web=${LOG_LEVEL:DEBUG}
...@@ -33,6 +34,3 @@ cache-maxSize=1000 ...@@ -33,6 +34,3 @@ cache-maxSize=1000
#service config #service config
partition-property-kind=PartitionProperty partition-property-kind=PartitionProperty
partition-namespace=partition partition-namespace=partition
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment