-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
273 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
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,7 @@ | ||
apiVersion: v2 | ||
description: Token exchange as a sidecar / service. | ||
name: texas | ||
type: application | ||
version: 1.0.0 | ||
sources: | ||
- https://github.com/nais/texas/tree/master/charts/texas |
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,116 @@ | ||
dependencies: | ||
- allOf: | ||
- aiven-operator | ||
- aivenator | ||
- replicator | ||
environmentKinds: | ||
- tenant | ||
- legacy | ||
timeout: "1800s" | ||
values: | ||
aiven.project: | ||
description: Aiven project for Redis. | ||
computed: | ||
template: '"{{ .Env.aiven_project }}"' | ||
aiven.redisPlan: | ||
description: Aiven plan for Redis. | ||
required: true | ||
config: | ||
type: string | ||
aiven.prometheusEndpointId: | ||
description: Aiven Prometheus integration endpoint ID. | ||
computed: | ||
template: '"{{ .Env.aiven_prometheus_endpoint_id }}"' | ||
azure.enabled: | ||
description: Enable Azure AD. Requires Azurerator to be enabled. | ||
config: | ||
type: bool | ||
azure.forwardAuth.enabled: | ||
description: Enables forward auth server. Requires Azurerator and loadbalancer-fa to be enabled. | ||
config: | ||
type: bool | ||
azure.forwardAuth.groupIds: | ||
description: Additional group IDs to grant access to | ||
config: | ||
type: string_array | ||
azure.forwardAuth.sessionCookieEncryptionKey: | ||
description: Cookie encryption key, 256 bits (e.g. 32 ASCII characters) encoded with standard base64. | ||
config: | ||
type: string | ||
secret: true | ||
azure.forwardAuth.ssoDomain: | ||
description: Cookie domain for forward auth | ||
config: | ||
type: string | ||
azure.forwardAuth.ssoDefaultRedirectURL: | ||
description: Default redirect URL for forward auth | ||
config: | ||
type: string | ||
idporten.enabled: | ||
description: Enable ID-porten. Requires Digdirator to be enabled. | ||
config: | ||
type: bool | ||
idporten.legacyCookie: | ||
description: Set legacy session cookie for logins. | ||
config: | ||
type: bool | ||
idporten.openidResourceIndicator: | ||
description: Resource indicator for audience-restricted tokens. | ||
config: | ||
type: string | ||
idporten.openidPostLogoutRedirectURL: | ||
description: Where to redirect the user after global logout. | ||
config: | ||
type: string | ||
idporten.replicasMax: | ||
description: Maximum replicas for SSO server. | ||
config: | ||
type: int | ||
idporten.replicasMin: | ||
description: Minimum replicas for SSO server. | ||
config: | ||
type: int | ||
idporten.sessionCookieEncryptionKey: | ||
description: Cookie encryption key, 256 bits (e.g. 32 ASCII characters) encoded with standard base64. | ||
config: | ||
type: string | ||
secret: true | ||
idporten.sessionCookieName: | ||
description: Cookie name for SSO sessions. | ||
config: | ||
type: string | ||
idporten.ssoDefaultRedirectURL: | ||
description: Fallback URL for invalid SSO redirects. | ||
config: | ||
type: string | ||
idporten.ssoDomain: | ||
description: Allowed domain for SSO (for cookies, CORS and redirect URL validation). | ||
config: | ||
type: string | ||
idporten.ssoServerHost: | ||
description: Host for SSO server. | ||
config: | ||
type: string | ||
idporten.ingressClassName: | ||
description: Ingress class for SSO server. | ||
config: | ||
type: string | ||
image.tag: | ||
config: | ||
type: string | ||
openid.enabled: | ||
description: Enable OpenID config. | ||
config: | ||
type: bool | ||
ignoreKind: | ||
- legacy | ||
openid.wellKnownUrl: | ||
description: Well-known URL to the identity provider. | ||
config: | ||
type: string | ||
ignoreKind: | ||
- legacy | ||
resourceSuffix: | ||
description: Suffix for resources that may conflict in parallel environments. | ||
config: | ||
type: string |
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,62 @@ | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "texas.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 "texas.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 "texas.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "texas.labels" -}} | ||
helm.sh/chart: {{ include "texas.chart" . }} | ||
{{ include "texas.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "texas.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "texas.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create the name of the service account to use | ||
*/}} | ||
{{- define "texas.serviceAccountName" -}} | ||
{{- if .Values.serviceAccount.create }} | ||
{{- default (include "texas.fullname" .) .Values.serviceAccount.name }} | ||
{{- else }} | ||
{{- default "default" .Values.serviceAccount.name }} | ||
{{- end }} | ||
{{- end }} |
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,10 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "texas.fullname" . }} | ||
labels: | ||
{{- include "texas.labels" . | nindent 4 }} | ||
annotations: | ||
reloader.stakater.com/match: "true" | ||
data: | ||
texas_image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" |
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,6 @@ | ||
nameOverride: "" | ||
fullnameOverride: "" | ||
|
||
image: | ||
repository: europe-north1-docker.pkg.dev/nais-io/nais/images/texas | ||
tag: latest |