Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • gaiax/tsa/task
1 result
Show changes
Commits on Source (8)
Showing
with 522 additions and 59 deletions
GAIA-X "Task Service"
XFSC "Task Service"
provides an HTTP interface for executing asynchronous (HTTP) tasks and task lists.
It is developed using the Goa v3 framework (https://goa.design/).
......
[![pipeline status](https://gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/badges/main/pipeline.svg)](https://gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/-/commits/main)
[![coverage report](https://gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/badges/main/coverage.svg)](https://gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/-/commits/main)
[![pipeline status](https://gitlab.eclipse.org/eclipse/xfsc/tsa/task/badges/main/pipeline.svg)](https://gitlab.eclipse.org/eclipse/xfsc/tsa/task/-/commits/main)
[![coverage report](https://gitlab.eclipse.org/eclipse/xfsc/tsa/task/badges/main/coverage.svg)](https://gitlab.eclipse.org/eclipse/xfsc/tsa/task/-/commits/main)
# Task Service
This project has been migrated to Eclipse Foundation, and it can be found under https://gitlab.eclipse.org/eclipse/xfsc/
......
......@@ -21,26 +21,26 @@ import (
"golang.org/x/oauth2/clientcredentials"
"golang.org/x/sync/errgroup"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/auth"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/golib/graceful"
goahealth "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/health"
goahealthsrv "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/http/health/server"
goaopenapisrv "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/http/openapi/server"
goatasksrv "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/http/task/server"
goatasklistsrv "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/http/task_list/server"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/openapi"
goatask "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/task"
goatasklist "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/task_list"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/clients/cache"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/clients/policy"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/config"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/executor"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/listexecutor"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/service"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/service/health"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/service/task"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/service/tasklist"
"gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/internal/storage"
"gitlab.eclipse.org/eclipse/xfsc/tsa/golib/auth"
"gitlab.eclipse.org/eclipse/xfsc/tsa/golib/graceful"
goahealth "gitlab.eclipse.org/eclipse/xfsc/tsa/task/gen/health"
goahealthsrv "gitlab.eclipse.org/eclipse/xfsc/tsa/task/gen/http/health/server"
goaopenapisrv "gitlab.eclipse.org/eclipse/xfsc/tsa/task/gen/http/openapi/server"
goatasksrv "gitlab.eclipse.org/eclipse/xfsc/tsa/task/gen/http/task/server"
goatasklistsrv "gitlab.eclipse.org/eclipse/xfsc/tsa/task/gen/http/task_list/server"
"gitlab.eclipse.org/eclipse/xfsc/tsa/task/gen/openapi"
goatask "gitlab.eclipse.org/eclipse/xfsc/tsa/task/gen/task"
goatasklist "gitlab.eclipse.org/eclipse/xfsc/tsa/task/gen/task_list"
"gitlab.eclipse.org/eclipse/xfsc/tsa/task/internal/clients/cache"
"gitlab.eclipse.org/eclipse/xfsc/tsa/task/internal/clients/policy"
"gitlab.eclipse.org/eclipse/xfsc/tsa/task/internal/config"
"gitlab.eclipse.org/eclipse/xfsc/tsa/task/internal/executor"
"gitlab.eclipse.org/eclipse/xfsc/tsa/task/internal/listexecutor"
"gitlab.eclipse.org/eclipse/xfsc/tsa/task/internal/service"
"gitlab.eclipse.org/eclipse/xfsc/tsa/task/internal/service/health"
"gitlab.eclipse.org/eclipse/xfsc/tsa/task/internal/service/task"
"gitlab.eclipse.org/eclipse/xfsc/tsa/task/internal/service/tasklist"
"gitlab.eclipse.org/eclipse/xfsc/tsa/task/internal/storage"
)
var Version = "0.0.0+development"
......@@ -237,8 +237,8 @@ func createLogger(logLevel string, opts ...zap.Option) (*zap.Logger, error) {
return config.Build(opts...)
}
func errFormatter(e error) goahttp.Statuser {
return service.NewErrorResponse(e)
func errFormatter(ctx context.Context, e error) goahttp.Statuser {
return service.NewErrorResponse(ctx, e)
}
func httpClient() *http.Client {
......
FROM golang:1.19.3-alpine3.15 as builder
FROM golang:1.21.0-alpine3.17 as builder
RUN apk add git
WORKDIR /go/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task
WORKDIR /go/src/gitlab.eclipse.org/eclipse/xfsc/tsa/task
ADD . .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-X main.Version=$(git describe --tags --always)" -mod=vendor -o /tmp/task ./cmd/task/...
FROM alpine:3.15 as runner
FROM alpine:3.17 as runner
COPY --from=builder /tmp/task /opt/task
......
FROM golang:1.19.3
FROM golang:1.21.0
ENV GO111MODULE=on
RUN go install github.com/ysmood/kit/cmd/guard@v0.25.11
RUN go install github.com/canthefason/go-watcher/cmd/watcher@v0.2.4
ADD . /go/src/gitlab.eclipse.org/eclipse/xfsc/tsa/task
ADD . /go/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task
WORKDIR /go/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task
RUN go install -mod=vendor ./cmd/task/...
WORKDIR /go/src/gitlab.eclipse.org/eclipse/xfsc/tsa/task
EXPOSE 8080
ENTRYPOINT ["sh", "-c", "/go/bin/watcher -run gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/cmd/task -watch gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task"]
\ No newline at end of file
ENTRYPOINT ["sh", "-c", "/go/bin/guard -w '**/*.go' -w '!cmd/test*' -- go run -mod=vendor ./cmd/task/..."]
\ No newline at end of file
apiVersion: v1
appVersion: v1.0.1-rc
description: task deployment
name: task
version: 1.0.1
icon: "https://www.vereign.com/wp-content/themes/vereign2020/images/vereign-logo.svg"
Deployment recipe for TSA task service
Copyright 2022 Vereign AG
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
# task
![Version: 1.0.1](https://img.shields.io/badge/Version-1.0.1-informational?style=flat-square) ![AppVersion: v1.0.1-rc](https://img.shields.io/badge/AppVersion-v1.0.1--rc-informational?style=flat-square)
task deployment
## Values
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| addresses.cache | string | `"http://cache:8080"` | |
| addresses.policy | string | `"http://policy:8080"` | |
| autoscaling.enabled | bool | `false` | Enable autoscaling |
| autoscaling.maxReplicas | int | `3` | Maximum replicas |
| autoscaling.minReplicas | int | `1` | Minimum replicas |
| autoscaling.targetCPUUtilizationPercentage | int | `70` | CPU target for autoscaling trigger |
| autoscaling.targetMemoryUtilizationPercentage | int | `70` | Memory target for autoscaling trigger |
| image.name | string | `"gaiax/task"` | Image name |
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| image.pullSecrets | string | `"deployment-key-light"` | Image pull secret when internal image is used |
| image.repository | string | `"eu.gcr.io/vrgn-infra-prj"` | |
| image.sha | string | `""` | Image sha, usually generated by the CI Uses image.tag if empty |
| image.tag | string | `""` | Image tag Uses .Chart.AppVersion if empty |
| ingress.annotations."cert-manager.io/cluster-issuer" | string | `"letsencrypt-production-http"` | |
| ingress.annotations."kubernetes.io/ingress.class" | string | `"nginx"` | |
| ingress.annotations."kubernetes.io/ingress.global-static-ip-name" | string | `"dev-light-public"` | |
| ingress.annotations."nginx.ingress.kubernetes.io/rewrite-target" | string | `"/$2"` | |
| ingress.enabled | bool | `true` | |
| ingress.frontendDomain | string | `"gaiax.vereign.com"` | |
| ingress.frontendTlsSecretName | string | `"cert-manager-tls"` | |
| ingress.tlsEnabled | bool | `true` | |
| log.encoding | string | `"json"` | |
| log.level | string | `"debug"` | |
| metrics.enabled | bool | `true` | Enable prometheus metrics |
| metrics.port | int | `2112` | Port for prometheus metrics |
| mongo.addr | string | `"mongodb://mongodb-mongodb-replicaset.infra:27017/task?replicaSet=rs0&authSource=admin"` | |
| mongo.dbname | string | `"task"` | |
| mongo.pass | string | `""` | |
| mongo.user | string | `""` | |
| name | string | `"task"` | Application name |
| nameOverride | string | `""` | Ovverwrites application name |
| podAnnotations | object | `{}` | |
| replicaCount | int | `1` | Default number of instances to start |
| resources.limits.cpu | string | `"150m"` | |
| resources.limits.memory | string | `"128Mi"` | |
| resources.requests.cpu | string | `"25m"` | |
| resources.requests.memory | string | `"64Mi"` | |
| security.runAsGid | int | `0` | Group used by the apps |
| security.runAsNonRoot | bool | `false` | by default, apps run as non-root |
| security.runAsUid | int | `0` | User used by the apps |
| service.port | int | `8080` | |
| task.http.host | string | `""` | |
| task.http.port | int | `8080` | |
| task.http.timeout.idle | string | `"120s"` | |
| task.http.timeout.read | string | `"10s"` | |
| task.http.timeout.write | string | `"10s"` | |
----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.10.0](https://github.com/norwoodj/helm-docs/releases/v1.10.0)
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "app.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "app.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" $name .Release.Namespace | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create instance name based on app version and short image sha.
*/}}
{{- define "app.revision" -}}
{{- default .Release.Name .Values.appRel | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "app.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Common labels
*/}}
{{- define "app.labels" -}}
helm.sh/chart: {{ include "app.chart" . }}
{{ include "app.selectorLabels" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{/*
Selector labels
*/}}
{{- define "app.selectorLabels" -}}
app.kubernetes.io/name: {{ include "app.name" . }}
app.kubernetes.io/component: {{ include "app.fullname" . }}
{{- end -}}
{{/*
Metrics Annotations
*/}}
{{- define "app.metricsAnnotations" -}}
{{- if .Values.metrics.enabled -}}
prometheus.io/scrape: "true"
prometheus.io/port: "{{ .Values.metrics.port }}"
prometheus.io/path: {{ .Values.metrics.path | default "/metrics" | quote }}
{{- end -}}
{{- end -}}
{{/*
Image string
*/}}
{{- define "app.image" -}}
{{- if .Values.image.sha -}}
{{ .Values.image.repository }}/{{ .Values.image.name }}@{{ .Values.image.sha }}
{{- else -}}
{{ .Values.image.repository }}/{{ .Values.image.name }}:{{ default .Chart.AppVersion .Values.image.tag }}
{{- end -}}
{{- end -}}
{{/*
Security context
*/}}
{{- define "app.securitycontext" -}}
runAsNonRoot: {{ .Values.security.runAsNonRoot | default false }}
runAsGroup: {{ .Values.security.runAsGid | default 0 }}
runAsUser: {{ .Values.security.runAsUid | default 0 }}
fsGroup: {{ .Values.security.runAsGid | default 0 }}
{{- end -}}
{{/*
PostgreSQL Connection string URI
*/}}
{{- define "app.postgresql.connectionstring" -}}
postgresql://{{ .Values.connectionManager.database.user }}:{{ .Values.connectionManager.database.password }}@{{ .Values.connectionManager.database.host }}:{{ .Values.connectionManager.database.port }}/{{ .Release.Namespace }}_{{ include "app.name" . | replace "-" "_" }}?schema={{ .Values.connectionManager.database.schema }}
{{- end -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ template "app.name" . }}"
namespace: {{ .Release.Namespace }}
labels:
{{- include "app.labels" . | nindent 4 }}
app.kubernetes.io/instance: {{ include "app.revision" . }}
app.kubernetes.io/part-of: rse
spec:
replicas: {{ .Values.replicaCount }}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
selector:
matchLabels:
{{- include "app.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "app.labels" . | nindent 8 }}
annotations:
{{- include "app.metricsAnnotations" . | nindent 8 }}
{{- if .Values.podAnnotations }}
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
spec:
securityContext:
{{- include "app.securitycontext" . | nindent 8 }}
imagePullSecrets:
- name: {{ .Values.image.pullSecrets }}
containers:
- name: {{ template "app.name" . }}
image: "{{ .Values.image.repository }}/{{ .Values.image.name }}:{{ default .Chart.AppVersion .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
env:
- name: LOG_LEVEL
value: {{ .Values.log.level | default "INFO" }}
- name: LOG_ENCODING
value: {{ .Values.log.encoding | default "json" }}
- name: HTTP_HOST
value: {{ .Values.task.http.host | quote }}
- name: HTTP_PORT
value: {{ .Values.task.http.port | quote }}
- name: HTTP_IDLE_TIMEOUT
value: {{ .Values.task.http.timeout.idle | quote }}
- name: HTTP_READ_TIMEOUT
value: {{ .Values.task.http.timeout.read | quote }}
- name: HTTP_WRITE_TIMEOUT
value: {{ .Values.task.http.timeout.write | quote }}
- name: MONGO_ADDR
value: {{ .Values.mongo.addr | quote }}
- name: MONGO_USER
value: {{ .Values.mongo.user | quote }}
- name: MONGO_PASS
value: {{ .Values.mongo.pass | quote }}
- name: MONGO_DB
value: {{ .Values.mongo.dbname | quote }}
- name: CACHE_ADDR
value: {{ .Values.addresses.cache | quote }}
- name: POLICY_ADDR
value: {{ .Values.addresses.policy | quote }}
{{- if .Values.extraVars }}
{{- toYaml .Values.extraVars | indent 10 }}
{{- end }}
ports:
{{- if .Values.metrics.enabled }}
- name: monitoring
containerPort: {{ .Values.metrics.port }}
{{- end }}
- name: http
containerPort: {{ .Values.task.http.port }}
readinessProbe:
httpGet:
path: /readiness
port: {{ .Values.task.http.port }}
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 2
failureThreshold: 2
timeoutSeconds: 5
resources:
{{ toYaml .Values.resources | indent 10 }}
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
labels:
{{- include "app.labels" . | nindent 4 }}
name: {{ template "app.name" . }}
namespace: {{ .Release.Namespace }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ template "app.name" . }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- with .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
{{- end }}
{{- with .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
{{- end }}
{{- end }}
\ No newline at end of file
{{- if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ template "app.name" . }}
namespace: {{ .Release.Namespace }}
annotations:
{{ toYaml .Values.ingress.annotations | indent 4 }}
labels:
{{- include "app.labels" . | nindent 4 }}
spec:
{{- if .Values.ingress.tlsEnabled }}
tls:
- hosts:
- {{ .Values.ingress.frontendDomain }}
secretName: {{ .Values.ingress.frontendTlsSecretName }}
{{- end }}
rules:
- host: {{ .Values.ingress.frontendDomain }}
http:
paths:
- path: /{{ .Release.Namespace }}/{{ template "app.name" . }}(/|$)(.*)
pathType: Prefix
backend:
service:
name: {{ template "app.name" . }}
port:
number: {{ .Values.service.port }}
{{- end }}
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: {{ template "app.name" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "app.labels" . | nindent 4 }}
spec:
clusterIP: None
ports:
- name: http
targetPort: {{ .Values.service.port }}
port: {{ .Values.task.http.port }}
selector:
{{- include "app.selectorLabels" . | nindent 4 }}
image:
repository: registry.gitlab.com/gaia-x/data-infrastructure-federation-services/tsa
# -- Image name
name: task
mongo:
addr: mongodb+srv://vereign-mongodb-mongodb-svc.gxfs-vereign.svc.cluster.local/policy?ssl=false
user: ENC[AES256_GCM,data:Ax6AHW8=,iv:ExIEokXncj8lY9IR8KTLTNsQ1kzvCT4MStgHoKdshAg=,tag:iY7Btv4DBaceH17Y7mv6ww==,type:str]
pass: ENC[AES256_GCM,data:QCcDftpod8xivG4PFalDHvIOzosnPHo=,iv:Fpc/cHYwZzvpErpMpD54Lhe8q9Qt8PDxk3IbWrza/08=,tag:Rs9F5JNt2swm91joMHN5ug==,type:str]
ingress:
frontendDomain: tsa.gxfs.dev
frontendTlsSecretName: wildcard-gxfs-dev
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age:
- recipient: age1nrk70nevtmrcgzjunsed43ar6dk3e06qt7tryqqprj9axv4e0djqa0n0cg
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBlbGxYckE3amlRQ1lqYkJ0
cU9ja0QwOGprdFIxdlREYzV1VjNxc1Z0alhJCnZTenhmSnhjVnh4TG5hK2ROTHpU
ZGNXQ0JBaTlLRFdlRWpiSFVmTHh1aXcKLS0tIGNRUWFYNlNNeGNVMFNZazhKL1JR
dE5CNGpJNXRFaUlQZ0ZxcjVNY1A2T2cKHwckI0mmC/WgP+393YOXerwVCMY5G0mi
mjcwATZFOnCwafIbVq5JhuDCylNw3chuLinXw7OHIzBbDrTKCoyBnQ==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2022-08-08T15:40:04Z"
mac: ENC[AES256_GCM,data:dlZq3RItOFZR9FFH0BpTkT6Eux/DTgpR/9PH3vZWVfcGGDngxov1g067RDd+9qQ1YP13r45c93q7atNX1a/GPWnfW5RvLC8JT8r57SiVydicThNiNgNColFnKTs+E1z7mj4OgKcD8hTk9hK127QEmn1xfMPuRXmPLw80ds0NELk=,iv:VQqow9C9C3mj5am4mBFFb1LrUZhuL3z1S47wdn1nOuM=,tag:QRA73FQqANyaWta19T0QHQ==,type:str]
pgp: []
encrypted_regex: ^(user|pass)$
version: 3.7.3
# -- Default number of instances to start
replicaCount: 1
# -- Application name
name: task
# -- Ovverwrites application name
nameOverride: ""
image:
repository: eu.gcr.io/vrgn-infra-prj
# -- Image name
name: gaiax/task
# -- Image tag
# Uses .Chart.AppVersion if empty
tag: ""
# -- Image sha, usually generated by the CI
# Uses image.tag if empty
sha: ""
# -- Image pull policy
pullPolicy: IfNotPresent
# -- Image pull secret when internal image is used
pullSecrets: deployment-key-light
podAnnotations: {}
##
## Pass extra environment variables to the container.
##
# extraVars:
# - name: EXTRA_VAR_1
# value: extra-var-value-1
# - name: EXTRA_VAR_2
# value: extra-var-value-2
##
## Create new service when true, and use the specified uner name when set to the name specified
##
resources:
requests:
cpu: 25m
memory: 64Mi
limits:
cpu: 150m
memory: 128Mi
## Configure pod autoscaling
##
autoscaling:
# -- Enable autoscaling
enabled: false
# -- Minimum replicas
minReplicas: 1
# -- Maximum replicas
maxReplicas: 3
# -- CPU target for autoscaling trigger
targetCPUUtilizationPercentage: 70
# -- Memory target for autoscaling trigger
targetMemoryUtilizationPercentage: 70
##
## Prometheus Exporter / Metrics
##
metrics:
# -- Enable prometheus metrics
enabled: true
# -- Port for prometheus metrics
port: 2112
log:
level: "debug"
encoding: json
##
## Kubernetes [SecurityContext](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) object.
##
security:
# -- by default, apps run as non-root
runAsNonRoot: false
# -- User used by the apps
runAsUid: 0
# -- Group used by the apps
runAsGid: 0
##
##
service:
port: 8080
task:
http:
host: ""
port: 8080
timeout:
idle: 120s
read: 10s
write: 10s
mongo:
addr: "mongodb://mongodb-mongodb-replicaset.infra:27017/task?replicaSet=rs0&authSource=admin"
user: ""
pass: ""
dbname: task
addresses:
policy: http://policy:8080
cache: http://cache:8080
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /$2
tlsEnabled: true
frontendDomain: gaiax.vereign.com
frontendTlsSecretName: cert-manager-tls
// Code generated by goa v3.7.0, DO NOT EDIT.
// Code generated by goa v3.12.3, DO NOT EDIT.
//
// health client
//
// Command:
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
// $ goa gen gitlab.eclipse.org/eclipse/xfsc/tsa/task/design
package health
......
// Code generated by goa v3.7.0, DO NOT EDIT.
// Code generated by goa v3.12.3, DO NOT EDIT.
//
// health endpoints
//
// Command:
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
// $ goa gen gitlab.eclipse.org/eclipse/xfsc/tsa/task/design
package health
......@@ -37,7 +36,7 @@ func (e *Endpoints) Use(m func(goa.Endpoint) goa.Endpoint) {
// NewLivenessEndpoint returns an endpoint function that calls the method
// "Liveness" of service "health".
func NewLivenessEndpoint(s Service) goa.Endpoint {
return func(ctx context.Context, req interface{}) (interface{}, error) {
return func(ctx context.Context, req any) (any, error) {
return nil, s.Liveness(ctx)
}
}
......@@ -45,7 +44,7 @@ func NewLivenessEndpoint(s Service) goa.Endpoint {
// NewReadinessEndpoint returns an endpoint function that calls the method
// "Readiness" of service "health".
func NewReadinessEndpoint(s Service) goa.Endpoint {
return func(ctx context.Context, req interface{}) (interface{}, error) {
return func(ctx context.Context, req any) (any, error) {
return nil, s.Readiness(ctx)
}
}
// Code generated by goa v3.7.0, DO NOT EDIT.
// Code generated by goa v3.12.3, DO NOT EDIT.
//
// health service
//
// Command:
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
// $ goa gen gitlab.eclipse.org/eclipse/xfsc/tsa/task/design
package health
......
// Code generated by goa v3.7.0, DO NOT EDIT.
// Code generated by goa v3.12.3, DO NOT EDIT.
//
// task HTTP client CLI support package
//
// Command:
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
// $ goa gen gitlab.eclipse.org/eclipse/xfsc/tsa/task/design
package cli
......@@ -14,9 +13,9 @@ import (
"net/http"
"os"
healthc "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/http/health/client"
taskc "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/http/task/client"
tasklistc "gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/gen/http/task_list/client"
healthc "gitlab.eclipse.org/eclipse/xfsc/tsa/task/gen/http/health/client"
taskc "gitlab.eclipse.org/eclipse/xfsc/tsa/task/gen/http/task/client"
tasklistc "gitlab.eclipse.org/eclipse/xfsc/tsa/task/gen/http/task_list/client"
goahttp "goa.design/goa/v3/http"
goa "goa.design/goa/v3/pkg"
)
......@@ -47,7 +46,7 @@ func ParseEndpoint(
enc func(*http.Request) goahttp.Encoder,
dec func(*http.Response) goahttp.Decoder,
restore bool,
) (goa.Endpoint, interface{}, error) {
) (goa.Endpoint, any, error) {
var (
healthFlags = flag.NewFlagSet("health", flag.ContinueOnError)
......@@ -169,7 +168,7 @@ func ParseEndpoint(
}
var (
data interface{}
data any
endpoint goa.Endpoint
err error
)
......
// Code generated by goa v3.7.0, DO NOT EDIT.
// Code generated by goa v3.12.3, DO NOT EDIT.
//
// health HTTP client CLI support package
//
// Command:
// $ goa gen
// gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task/design
// $ goa gen gitlab.eclipse.org/eclipse/xfsc/tsa/task/design
package client