Skip to content

Commit

Permalink
Merge pull request #44 from colearendt/add-node-selector
Browse files Browse the repository at this point in the history
Add node selector to traefik-forward-auth
  • Loading branch information
colearendt authored Jun 23, 2022
2 parents 56bc0a4 + cbc4a6f commit 845ed16
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 5 deletions.
11 changes: 10 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
setup:
#!/bin/bash
# TODO: idempotency

# TODO: check for macos
mkdir -p ./bin/helm-docs-1.5.0/
curl -L https://github.com/norwoodj/helm-docs/releases/download/v1.5.0/helm-docs_1.5.0_Darwin_x86_64.tar.gz | tar -xzvf - -C ./bin/helm-docs-1.5.0/
ln -s $PWD/bin/helm-docs-1.5.0/helm-docs $PWD/bin/helm-docs

docs:
#!/bin/bash
helm-docs --chart-search-root=charts --template-files=README.md.gotmpl --template-files=./_templates.gotmpl
./bin/helm-docs --chart-search-root=charts --template-files=README.md.gotmpl --template-files=./_templates.gotmpl

lint:
#!/bin/bash
Expand Down
2 changes: 1 addition & 1 deletion charts/traefik-forward-auth/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: traefik-forward-auth
description: Deploy traefik-forward-auth
version: 0.0.9
version: 0.0.10
apiVersion: v1
sources:
- https://github.com/thomseddon/traefik-forward-auth
Expand Down
4 changes: 4 additions & 0 deletions charts/traefik-forward-auth/NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.0.10

- Add tolerations, nodeSelector, and affinity values

# 0.0.9

- Update ingress to use newer template, api version, etc.
Expand Down
9 changes: 6 additions & 3 deletions charts/traefik-forward-auth/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# traefik-forward-auth

![Version: 0.0.9](https://img.shields.io/badge/Version-0.0.9-informational?style=flat-square)
![Version: 0.0.10](https://img.shields.io/badge/Version-0.0.10-informational?style=flat-square)

## Installing the Chart

To install the chart with the release name `my-release` at version 0.0.9:
To install the chart with the release name `my-release` at version 0.0.10:

```bash
helm repo add colearendt https://colearendt.github.io/helm
helm install my-release colearendt/traefik-forward-auth --version=0.0.9
helm install my-release colearendt/traefik-forward-auth --version=0.0.10
```

#### _Deploy traefik-forward-auth_
Expand All @@ -17,6 +17,7 @@ helm install my-release colearendt/traefik-forward-auth --version=0.0.9

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| args[0] | string | `"--config=/config/config.ini"` | |
| command[0] | string | `"./traefik-forward-auth"` | |
| config.default-provider | string | `"oidc"` | |
Expand All @@ -36,6 +37,7 @@ helm install my-release colearendt/traefik-forward-auth --version=0.0.9
| ingress.tls | list | `[]` | |
| livenessProbe | object | `{}` | |
| nameOverride | string | `""` | |
| nodeSelector | object | `{}` | |
| pod.env | object | `{}` | |
| podAnnotations | object | `{}` | |
| readinessProbe | object | `{}` | |
Expand All @@ -45,6 +47,7 @@ helm install my-release colearendt/traefik-forward-auth --version=0.0.9
| serviceAnnotations | object | `{}` | |
| startupProbe | object | `{}` | |
| strategy | object | `{}` | |
| tolerations | list | `[]` | |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)
12 changes: 12 additions & 0 deletions charts/traefik-forward-auth/templates/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@ spec:
readinessProbe:
{{ toYaml .Values.readinessProbe | indent 10 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: config
configMap:
Expand Down
6 changes: 6 additions & 0 deletions charts/traefik-forward-auth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ image:
tag: 2
pullPolicy: IfNotPresent

nodeSelector: {}

tolerations: []

affinity: {}

# -- Extra kubernetes objects to deploy (value evaluted as a template)
extraObjects: []

Expand Down

0 comments on commit 845ed16

Please sign in to comment.