-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add jans-link support in CN (#5546)
* feat(docker): add jans-link support * ci: include docker-jans-link in GH workflows * feat(charts): add jans-link chart * fix: version * fix: port number * fix: port number * docs(docker-jans-link): fix logging config example --------- Co-authored-by: moabu <47318409+moabu@users.noreply.github.com>
- Loading branch information
Showing
50 changed files
with
2,593 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: v2 | ||
name: link | ||
version: 1.0.16-dev | ||
kubeVersion: ">=v1.21.0-0" | ||
description: Jans Link | ||
type: application | ||
keywords: | ||
- link | ||
home: https://jans.io | ||
sources: | ||
- https://github.com/JanssenProject/jans/jans-link | ||
- https://github.com/JanssenProject/jans/docker-jans-link | ||
maintainers: | ||
- name: Mohammad Abudayyeh | ||
email: support@jans.io | ||
url: https://github.com/moabu | ||
icon: https://github.com/JanssenProject/jans/raw/main/docs/assets/logo/janssen_project_favicon_transparent_50px_50px.png | ||
appVersion: "1.0.16-dev" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# link | ||
|
||
![Version: 1.0.16-dev](https://img.shields.io/badge/Version-1.0.16--dev-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.16-dev](https://img.shields.io/badge/AppVersion-1.0.16--dev-informational?style=flat-square) | ||
|
||
Jans Link | ||
|
||
**Homepage:** <https://jans.io> | ||
|
||
## Maintainers | ||
|
||
| Name | Email | Url | | ||
| ---- | ------ | --- | | ||
| Mohammad Abudayyeh | <support@jans.io> | <https://github.com/moabu> | | ||
|
||
## Source Code | ||
|
||
* <https://github.com/JanssenProject/jans/jans-link> | ||
* <https://github.com/JanssenProject/jans/docker-jans-link> | ||
|
||
## Requirements | ||
|
||
Kubernetes: `>=v1.21.0-0` | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| additionalAnnotations | object | `{}` | Additional annotations that will be added across all resources in the format of {cert-manager.io/issuer: "letsencrypt-prod"}. key app is taken | | ||
| additionalLabels | object | `{}` | Additional labels that will be added across all resources definitions in the format of {mylabel: "myapp"} | | ||
| affinity | object | `{}` | | | ||
| dnsConfig | object | `{}` | Add custom dns config | | ||
| dnsPolicy | string | `""` | Add custom dns policy | | ||
| fullnameOverride | string | `""` | | | ||
| hpa | object | `{"behavior":{},"enabled":true,"maxReplicas":10,"metrics":[],"minReplicas":1,"targetCPUUtilizationPercentage":50}` | Configure the HorizontalPodAutoscaler | | ||
| hpa.behavior | object | `{}` | Scaling Policies | | ||
| hpa.metrics | list | `[]` | metrics if targetCPUUtilizationPercentage is not set | | ||
| image.pullPolicy | string | `"IfNotPresent"` | Image pullPolicy to use for deploying. | | ||
| image.pullSecrets | list | `[]` | Image Pull Secrets | | ||
| image.repository | string | `"ghcr.io/janssenproject/jans/link"` | Image to use for deploying. | | ||
| image.tag | string | `"1.0.16_dev"` | Image tag to use for deploying. | | ||
| lifecycle | object | `{}` | | | ||
| livenessProbe | object | `{"httpGet":{"path":"/jans-link/api/v1/health/live","port":9091},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":5}` | Configure the liveness healthcheck for the auth server if needed. | | ||
| livenessProbe.httpGet | object | `{"path":"/jans-link/api/v1/health/live","port":9091}` | Executes the python3 healthcheck. | | ||
| nameOverride | string | `""` | | | ||
| nodeSelector | object | `{}` | | | ||
| readinessProbe | object | `{"httpGet":{"path":"/jans-link/api/v1/health/ready","port":9091},"initialDelaySeconds":25,"periodSeconds":25,"timeoutSeconds":5}` | Configure the readiness healthcheck for the auth server if needed. | | ||
| replicas | int | `1` | Service replica number. | | ||
| resources | object | `{"limits":{"cpu":"500m","memory":"1000Mi"},"requests":{"cpu":"500m","memory":"1000Mi"}}` | Resource specs. | | ||
| resources.limits.cpu | string | `"500m"` | CPU limit. | | ||
| resources.limits.memory | string | `"1000Mi"` | Memory limit. | | ||
| resources.requests.cpu | string | `"500m"` | CPU request. | | ||
| resources.requests.memory | string | `"1000Mi"` | Memory request. | | ||
| service.name | string | `"http-link"` | The name of the link port within the link service. Please keep it as default. | | ||
| service.sessionAffinity | string | `"None"` | Default set to None If you want to make sure that connections from a particular client are passed to the same Pod each time, you can select the session affinity based on the client's IP addresses by setting this to ClientIP | | ||
| service.sessionAffinityConfig | object | `{"clientIP":{"timeoutSeconds":10800}}` | the maximum session sticky time if sessionAffinity is ClientIP | | ||
| tolerations | list | `[]` | | | ||
| usrEnvs | object | `{"normal":{},"secret":{}}` | Add custom normal and secret envs to the service | | ||
| usrEnvs.normal | object | `{}` | Add custom normal envs to the service variable1: value1 | | ||
| usrEnvs.secret | object | `{}` | Add custom secret envs to the service variable1: value1 | | ||
| volumeMounts | list | `[]` | Configure any additional volumesMounts that need to be attached to the containers | | ||
| volumes | list | `[]` | Configure any additional volumes that need to be attached to the pod | | ||
|
||
---------------------------------------------- | ||
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "link.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "link.fullname" -}} | ||
{{- if .Values.fullnameOverride -}} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- else -}} | ||
{{- $name := default .Chart.Name .Values.nameOverride -}} | ||
{{- if contains $name .Release.Name -}} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}} | ||
{{- else -}} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "link.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "link.labels" -}} | ||
app: {{ .Release.Name }}-{{ include "link.name" . }} | ||
helm.sh/chart: {{ include "link.chart" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create user custom defined envs | ||
*/}} | ||
{{- define "link.usr-envs"}} | ||
{{- range $key, $val := .Values.usrEnvs.normal }} | ||
- name: {{ $key }} | ||
value: {{ $val | quote }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create user custom defined secret envs | ||
*/}} | ||
{{- define "link.usr-secret-envs"}} | ||
{{- range $key, $val := .Values.usrEnvs.secret }} | ||
- name: {{ $key }} | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ $.Release.Name }}-{{ $.Chart.Name }}-user-custom-envs | ||
key: {{ $key | quote }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create topologySpreadConstraints lists | ||
*/}} | ||
{{- define "link.topology-spread-constraints"}} | ||
{{- range $key, $val := .Values.topologySpreadConstraints }} | ||
- maxSkew: {{ $val.maxSkew }} | ||
{{- if $val.minDomains }} | ||
minDomains: {{ $val.minDomains }} # optional; beta since v1.25 | ||
{{- end}} | ||
{{- if $val.topologyKey }} | ||
topologyKey: {{ $val.topologyKey }} | ||
{{- end}} | ||
{{- if $val.whenUnsatisfiable }} | ||
whenUnsatisfiable: {{ $val.whenUnsatisfiable }} | ||
{{- end}} | ||
labelSelector: | ||
matchLabels: | ||
app: {{ $.Release.Name }}-{{ include "link.name" $ }} | ||
{{- if $val.matchLabelKeys }} | ||
matchLabelKeys: {{ $val.matchLabelKeys }} # optional; alpha since v1.25 | ||
{{- end}} | ||
{{- if $val.nodeAffinityPolicy }} | ||
nodeAffinityPolicy: {{ $val.nodeAffinityPolicy }} # optional; alpha since v1.25 | ||
{{- end}} | ||
{{- if $val.nodeTaintsPolicy }} | ||
nodeTaintsPolicy: {{ $val.nodeTaintsPolicy }} # optional; alpha since v1.25 | ||
{{- end}} | ||
{{- end }} | ||
{{- end }} |
Oops, something went wrong.