-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
- Loading branch information
Showing
11 changed files
with
167 additions
and
48 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 |
---|---|---|
|
@@ -6,29 +6,33 @@ | |
|
||
[![](https://img.shields.io/discord/809154715984199690?label=Discord&style=for-the-badge)](https://goauthentik.io/discord) | ||
![Version: 1.2.2](https://img.shields.io/badge/Version-1.2.2-informational?style=for-the-badge) | ||
![AppVersion: 2023.6.0](https://img.shields.io/badge/AppVersion-2023.6.0-informational?style=for-the-badge) | ||
![AppVersion: 2024.2.0-rc1](https://img.shields.io/badge/AppVersion-2024.2.0-rc1-informational?style=for-the-badge) | ||
|
||
RBAC required for a remote cluster to be connected to authentik. | ||
|
||
**Homepage:** <https://goauthentik.io> | ||
|
||
## Maintainers | ||
|
||
| Name | Email | Url | | ||
| ---- | ------ | --- | | ||
| Name | Email | Url | | ||
| -------------- | ---------------------- | ------------------------ | | ||
| authentik Team | <[email protected]> | <https://goauthentik.io> | | ||
|
||
## Source Code | ||
|
||
* <https://goauthentik.io/docs/> | ||
* <https://github.com/goauthentik/authentik> | ||
- <https://goauthentik.io/docs/> | ||
- <https://github.com/goauthentik/authentik> | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| annotations | object | `{}` | | | ||
| clusterRole.enabled | bool | `true` | | | ||
| fullnameOverride | string | `""` | | | ||
| nameOverride | string | `""` | | | ||
| serviceAccountSecret.enabled | bool | `true` | | | ||
| Key | Type | Default | Description | | ||
| ---------------------------- | ------ | ------- | ------------------------------------------------------------------------------------------------- | | ||
| annotations | object | `{}` | Annotations to apply to all resources | | ||
| clusterRole.enabled | bool | `true` | Create a clusterole in addition to a namespaced role. | | ||
| fullnameOverride | string | `""` | String to fully override `"authentik.fullname"`. Prefer using global.fullnameOverride if possible | | ||
| global.additionalLabels | object | `{}` | Common labels for all resources. | | ||
| global.fullnameOverride | string | `""` | String to fully override `"authentik.fullname"` | | ||
| global.nameOverride | string | `""` | Provide a name in place of `authentik` | | ||
| kubeVersionOverride | string | `""` | Override the Kubernetes version, which is used to evaluate certain manifests | | ||
| nameOverride | string | `""` | Provide a name in place of `authentik`. Prefer using global.nameOverride if possible | | ||
| serviceAccountSecret.enabled | bool | `true` | Create a secret with the service account credentials | |
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
19 changes: 19 additions & 0 deletions
19
charts/authentik-remote-cluster/templates/clusterrole.yaml
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,19 @@ | ||
{{- if .Values.clusterRole.enabled -}} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ printf "%s-%s" (include "authentik-remote-cluster.fullname" .) .Release.Namespace | quote }} | ||
labels: | ||
{{- include "authentik-remote-cluster.labels" (dict "context" .) | nindent 4 }} | ||
{{- with .Values.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
rules: | ||
- apiGroups: | ||
- apiextensions.k8s.io | ||
resources: | ||
- customresourcedefinitions | ||
verbs: | ||
- list | ||
{{- end }} |
20 changes: 20 additions & 0 deletions
20
charts/authentik-remote-cluster/templates/clusterrolebinding.yaml
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,20 @@ | ||
{{- if .Values.clusterRole.enabled -}} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ printf "%s-%s" (include "authentik-remote-cluster.fullname" .) .Release.Namespace | quote }} | ||
labels: | ||
{{- include "authentik-remote-cluster.labels" (dict "context" .) | nindent 4 }} | ||
{{- with .Values.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ printf "%s-%s" (include "authentik-remote-cluster.fullname" .) .Release.Namespace | quote }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ template "authentik-remote-cluster.fullname" . }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
{{- 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
19 changes: 19 additions & 0 deletions
19
charts/authentik-remote-cluster/templates/rolebinding.yaml
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,19 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: {{ template "authentik-remote-cluster.fullname" . }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
labels: | ||
{{- include "authentik-remote-cluster.labels" (dict "context" .) | nindent 4 }} | ||
{{- with .Values.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: {{ template "authentik-remote-cluster.fullname" . }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ template "authentik-remote-cluster.fullname" . }} | ||
namespace: {{ .Release.Namespace | quote }} |
15 changes: 15 additions & 0 deletions
15
charts/authentik-remote-cluster/templates/serviceaccount-secret.yaml
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,15 @@ | ||
{{- if .Values.serviceAccountSecret.enabled -}} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ template "authentik-remote-cluster.fullname" . }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
labels: | ||
{{- include "authentik-remote-cluster.labels" (dict "context" .) | nindent 4 }} | ||
annotations: | ||
kubernetes.io/service-account.name: {{ template "authentik-remote-cluster.fullname" . }} | ||
{{- with .Values.annotations }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
type: kubernetes.io/service-account-token | ||
{{- end }} |
11 changes: 11 additions & 0 deletions
11
charts/authentik-remote-cluster/templates/serviceaccount.yaml
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,11 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ template "authentik-remote-cluster.fullname" . }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
labels: | ||
{{- include "authentik-remote-cluster.labels" (dict "context" .) | nindent 4 }} | ||
{{- with .Values.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- 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 |
---|---|---|
@@ -1,10 +1,28 @@ | ||
--- | ||
# -- Provide a name in place of `authentik`. Prefer using global.nameOverride if possible | ||
nameOverride: "" | ||
# -- String to fully override `"authentik.fullname"`. Prefer using global.fullnameOverride if possible | ||
fullnameOverride: "" | ||
# -- Override the Kubernetes version, which is used to evaluate certain manifests | ||
kubeVersionOverride: "" | ||
|
||
## Globally shared configuration for authentik components. | ||
global: | ||
# -- Provide a name in place of `authentik` | ||
nameOverride: "" | ||
# -- String to fully override `"authentik.fullname"` | ||
fullnameOverride: "" | ||
# -- Common labels for all resources. | ||
additionalLabels: {} | ||
# app: authentik | ||
|
||
# -- Annotations to apply to all resources | ||
annotations: {} | ||
|
||
serviceAccountSecret: | ||
# -- Create a secret with the service account credentials | ||
enabled: true | ||
|
||
clusterRole: | ||
# -- Create a clusterole in addition to a namespaced role. | ||
enabled: true |