Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup helm chart values #972

Merged
merged 10 commits into from
Dec 11, 2024
5 changes: 1 addition & 4 deletions appsettings.override.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,7 @@
},
"Tags": {
"Application": {
"SupportedLanguages": [
"de",
"en"
],
"SupportedLanguages": ["de", "en"],
"TagsForAttributeValueTypes": {
"IdentityFileReference": {
"schulabschluss": {
Expand Down
6 changes: 4 additions & 2 deletions helm/templates/consumerapi/httproute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ spec:
- name: {{ .Values.consumerapi.httpRoute.parentRefName }}
namespace: {{ .Values.consumerapi.httpRoute.parentRefNamespace }}
sectionName: {{ .Values.consumerapi.httpRoute.parentRefSectionName }}
{{- with .Values.consumerapi.httpRoute.hostnames }}
hostnames:
{{- toYaml . | nindent 4 }}
{{- if .Values.consumerapi.httpRoute.hostnamesOverride }}
{{- toYaml .Values.consumerapi.httpRoute.hostnamesOverride | nindent 4 }}
{{- else }}
- {{ .Values.global.defaultHostname }}
{{- end }}
rules:
- matches:
Expand Down
6 changes: 4 additions & 2 deletions helm/templates/sseserver/httproute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ spec:
- name: {{ .Values.sseserver.httpRoute.parentRefName }}
namespace: {{ .Values.sseserver.httpRoute.parentRefNamespace }}
sectionName: {{ .Values.sseserver.httpRoute.parentRefSectionName }}
{{- with .Values.sseserver.httpRoute.hostnames }}
hostnames:
{{- toYaml . | nindent 4 }}
{{- if .Values.consumerapi.httpRoute.hostnamesOverride }}
{{- toYaml .Values.consumerapi.httpRoute.hostnamesOverride | nindent 4 }}
{{- else }}
- {{ .Values.global.defaultHostname }}
{{- end }}
rules:
- matches:
Expand Down
68 changes: 31 additions & 37 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,8 @@ adminui:
podAnnotations: {}

# env - environment variables for the Admin UI container (see https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/)
env:
- name: Database__ConnectionString
valueFrom:
secretKeyRef:
name: "devices-sql-connectionstring"
key: VALUE

env: []

# the nodeSelector for the pods deployed by the Deployment (see https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector)
nodeSelector: {}

Expand All @@ -113,28 +108,6 @@ adminui:
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: ""

# httpRoute - the configuration of the HttpRoute for the Consumer API
httpRoute:
# enabled - whether to enable the HttpRoute for the Consumer API
enabled: false
# parentRefName - the name of the gateway this Route wants to be attached to
parentRefName: ""
# parentRefNamespace - # the namespace of the gateway this Route wants to be attached to
parentRefNamespace: ""
hostnames: []

# backendConfig - only applicable if .Values.global.provider is set to "GoogleCloud"; see https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-configuration#direct_health for a description of `HttpRoute`s`
backendConfig:
healthCheck:
# checkIntervalSec - time from the start of one prober's check to the start of its next check
checkIntervalSec: 15
# timeoutSec - the amount of time that Google Cloud waits for a response to a probe
timeoutSec: 15
# healthyThreshold - the number of consecutive successful checks required to mark a backend as healthy
healthyThreshold: 1
# unhealthyThreshold - the number of consecutive failed checks required to mark a backend as unhealthy
unhealthyThreshold: 2

#=========================== Consumer API ===========================

consumerapi:
Expand Down Expand Up @@ -199,8 +172,8 @@ consumerapi:
parentRefNamespace: ""
# parentRefSectionName - the name of the section in the gateway this Route wants to be attached to
parentRefSectionName: ""
# hostnames - the hostnames the Consumer API should be reachable under
hostnames: []
# hostnamesOverride - the hostnames the Consumer API should be reachable under; if empty, the `.global.defaultHostname` property is used
hostnamesOverride: []

ingress:
# enabled - whether to enable the Ingress for the Consumer API
Expand All @@ -225,7 +198,7 @@ consumerapi:
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: ""

# backendConfig - only applicable if .Values.global.provider is set to "GoogleCloud"; see https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-configuration#direct_health for a description of `HttpRoute`s`
# backendConfig - only applicable if .Values.global.provider is set to "GoogleCloud"; see https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-configuration#direct_health for a description of `BackendConfig`s
backendConfig:
healthCheck:
# checkIntervalSec - time from the start of one prober's check to the start of its next check
Expand Down Expand Up @@ -523,8 +496,8 @@ sseserver:
parentRefNamespace: ""
# parentRefSectionName - the name of the section in the gateway this Route wants to be attached to
parentRefSectionName: ""
# hostnames - the hostnames the Consumer API should be reachable under
hostnames: []
# hostnamesOverride - the hostnames the SSE Server should be reachable under; if empty, the `.global.defaultHostname` property is used
hostnamesOverride: []

ingress:
# enabled - whether to enable the Ingress for the Consumer API
Expand All @@ -542,7 +515,7 @@ sseserver:
# the affinity for the pods deployed by the Deployment (see https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#NodeAffinity)
affinity: {}

# backendConfig - only applicable if .Values.global.provider is set to "GoogleCloud"; see https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-configuration#direct_health for a description of `HttpRoute`s`
# backendConfig - only applicable if .Values.global.provider is set to "GoogleCloud"; see https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-configuration#direct_health for a description of `BackendConfig`s
backendConfig:
healthCheck:
# checkIntervalSec - time from the start of one prober's check to the start of its next check
Expand All @@ -555,6 +528,9 @@ sseserver:
unhealthyThreshold: 2

global:
# defaultHostname - the default hostname the services should be reachable under (this can be overriden in the individual service configurations)
defaultHostname: ""

# useBuiltInEventbus - if a development event bus should be created, set this to true; if you want to use an existing one, set it to false
useBuiltInEventbus: false

Expand Down Expand Up @@ -609,6 +585,18 @@ global:
# connectionString - should be set via environment variable
connectionString: ""
modules:
announcements:
application:
# pagination - the following options describe the default and maximum page size for the different endpoints
pagination:
defaultPageSize: 50
maxPageSize: 200
infrastructure:
sqlDatabase:
# provider - possible values: "Postgres"/"SqlServer"
provider: ""
# connectionString - should be set via environment variable
connectionString: ""
challenges:
infrastructure:
sqlDatabase:
Expand All @@ -618,8 +606,8 @@ global:
connectionString: ""
devices:
application:
# addressPrefix - the prefix that should be used when generating Identity Addresses; the official Enmeshed App currently only supports "id1"
addressPrefix: id1
# didDomainName - the didDomainName that should be used when generating Identity Addresses
didDomainName: ""
# pagination - the following options describe the default and maximum page size for the different endpoints
pagination:
defaultPageSize: 50
Expand Down Expand Up @@ -686,6 +674,8 @@ global:
# containerName: ""
messages:
application:
# didDomainName - the didDomainName that should be used when generating Identity Addresses
didDomainName: ""
# maxNumberOfUnreceivedMessagesFromOneSender - if this number is exceeded, the Consumer API will not accept any more messages from the sender to the recipient in order to prevent spam
maxNumberOfUnreceivedMessagesFromOneSender: 20
# pagination - the following options describe the default and maximum page size for the different endpoints
Expand All @@ -712,6 +702,8 @@ global:
connectionString: ""
relationships:
application:
# didDomainName - the didDomainName that should be used when generating Identity Addresses
didDomainName: ""
# pagination - the following options describe the default and maximum page size for the different endpoints
pagination:
defaultPageSize: 50
Expand All @@ -736,6 +728,8 @@ global:
connectionString: ""
tokens:
application:
# didDomainName - the didDomainName that should be used when generating Identity Addresses
didDomainName: ""
# pagination - the following options describe the default and maximum page size for the different endpoints
pagination:
defaultPageSize: 50
Expand Down
Loading