Skip to content

Commit

Permalink
Merge pull request #17 from SavePointSam/spring-23-update
Browse files Browse the repository at this point in the history
Spring 23 update
  • Loading branch information
SavePointSam authored May 28, 2023
2 parents 894329a + 8cd0eb9 commit c4334d2
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 38 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,33 @@ jobs:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v1
uses: azure/setup-helm@v3
with:
version: v3.8.1
version: v3.12.0

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: "3.9"

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.2.1
uses: helm/chart-testing-action@v2

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
changed=$(ct list-changed --target-branch development)
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Run chart-testing (lint)
run: ct lint
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch development

- name: Create kind cluster
uses: helm/[email protected]
if: steps.list-changed.outputs.changed == 'true'
uses: helm/kind-action@v1

- name: Run chart-testing (install)
run: ct install
if: steps.list-changed.outputs.changed == 'true'
run: ct install --target-branch development
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -20,16 +20,16 @@ jobs:
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v1
uses: azure/setup-helm@v3
with:
version: v3.8.1
version: v3.12.0

- name: Add dependency repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.4.0
uses: helm/chart-releaser-action@v1
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
Expand Down
4 changes: 2 additions & 2 deletions savepointsam/pihole/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: pihole
version: 0.1.0
version: 0.2.0
description: A Helm chart to deploy pi-hole on Kubernetes
type: application
keywords:
Expand All @@ -23,4 +23,4 @@ maintainers:
email: [email protected]
url: https://github.com/SavePointSam
icon: https://upload.wikimedia.org/wikipedia/commons/0/00/Pi-hole_Logo.png
appVersion: "2022.05"
appVersion: "2023.05.0"
2 changes: 2 additions & 0 deletions savepointsam/pihole/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ deletes the release.
| Name | Description | Value |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| `pihole.advanced.webPort` | This will break the 'webpage blocked' functionality of Pi-hole however it may help advanced setups. This guide explains how to restore webpage blocked functionality using a linux router DNAT rule: https://discourse.pi-hole.net/t/alternative-synology-installation-method/5454?u=diginc | `""` |

| `pihole.advanced.webBindAddress` | Lighttpd's bind address. If left unset lighttpd will bind to every interface, except when running in host networking mode where it will use `FTLCONF_LOCAL_IPV4` instead. | `""` |
| `pihole.advanced.skipGravityOnBoot` | Use this option to skip updating the Gravity Database when booting up the container | `false` |
| `pihole.advanced.corsHosts` | List of domains/subdomains on which CORS is allowed. Wildcards are not supported | `[]` |
| `pihole.advanced.customCacheSize` | Set the cache size for dnsmasq. When pihole.dnssec.enabled is "true", then this setting is ignored | `10000` |
Expand Down
46 changes: 25 additions & 21 deletions savepointsam/pihole/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,15 @@ spec:
args: {{- include "common.tplvalues.render" (dict "value" .Values.pihole.args "context" $) | nindent 12 }}
{{- end }}
env:
{{- /* GENERAL */}}
{{- /* Recommended Variables */}}
- name: TZ
value: {{ .Values.pihole.timezone | quote }}
- name: WEBPASSWORD_FILE
valueFrom:
secretKeyRef:
name: {{ include "pihole.secrets.webui.password.name" . }}
key: webpassword
{{- /* Optional Variables */}}
- name: PIHOLE_DNS_
value: {{ join ";" .Values.pihole.upstream | quote }}
- name: DNSSEC
Expand All @@ -104,13 +110,7 @@ spec:
{{- end }}
- name: DNS_FQDN_REQUIRED
value: {{ .Values.pihole.requireFqdn | quote }}
- name: VIRTUAL_HOST
value: {{ .Values.pihole.virtualHost | quote }}
- name: IPv6
value: {{ .Values.pihole.ipv6Support | quote }}
- name: TEMPERATUREUNIT
value: {{ .Values.pihole.temperatureUnit }}
{{- /* REVERSE SERVER */}}
{{- /* Optional - Reverse Server */}}
- name: REV_SERVER
value: {{ .Values.pihole.reverseServer.enabled | quote }}
{{- if .Values.pihole.reverseServer.enabled }}
Expand All @@ -121,8 +121,7 @@ spec:
- name: REV_SERVER_CIDR
value: {{ .Values.pihole.reverseServer.cidr | quote }}
{{- end }}
{{- /* DHCP SERVER */}}
{{- /* TODO: support DHCP */}}
{{- /* Optional - DHCP Server */}}
{{- /*
- name: DHCP_ACTIVE
value: {{ .Values.pihole.dhcp.enabled }}
Expand All @@ -143,9 +142,12 @@ spec:
value: {{ .Values.pihole.dhcp.rapidCommit }}
{{- end }}
*/}}
{{- /* WEB UI */}}
- name: ADMIN_EMAIL
value: {{ .Values.pihole.webui.admin.email | quote }}
- name: VIRTUAL_HOST
value: {{ .Values.pihole.virtualHost | quote }}
- name: IPv6
value: {{ .Values.pihole.ipv6Support | quote }}
- name: TEMPERATUREUNIT
value: {{ .Values.pihole.temperatureUnit }}
{{- if .Values.pihole.webui.boxedLayout }}
- name: WEBUIBOXEDLAYOUT
value: boxed
Expand All @@ -157,16 +159,15 @@ spec:
value: {{ .Values.pihole.webui.queryLogging | quote }}
- name: WEBTHEME
value: {{ .Values.pihole.webui.theme }}
- name: WEBPASSWORD_FILE
valueFrom:
secretKeyRef:
name: {{ include "pihole.secrets.webui.password.name" . }}
key: webpassword
{{- /* ADVANCED */}}
{{- /* Advanced Variables */}}
{{- if .Values.pihole.advanced.webPort | quote }}
- name: WEB_PORT
value: {{ .Values.pihole.advanced.webPort | quote }}
{{- end }}
{{- if .Values.pihole.advanced.webBindAddress | quote }}
- name: WEB_BIND_ADDR
value: {{ .Values.pihole.advanced.webBindAddress | quote }}
{{- end }}
{{- if .Values.pihole.advanced.skipGravityOnBoot }}
- name: SKIPGRAVITYONBOOT
value: 1
Expand All @@ -187,7 +188,7 @@ spec:
- name: "FTLCONF_{{ $key }}"
value: {{ $value | quote }}
{{- end }}
{{- /* EXPERIMENTAL */}}
{{- /* Experimental Variables */}}
{{- if .Values.pihole.experimental.dnsmasqUser }}
- name: DNSMASQ_USER
value: {{ .Values.pihole.experimental.dnsmasqUser }}
Expand All @@ -212,7 +213,10 @@ spec:
- name: WEBLOGS_STDOUT
value: 1
{{- end }}
{{- /* EXTRA */}}
{{- /* Deprecated Variables */}}
- name: ADMIN_EMAIL
value: {{ .Values.pihole.webui.admin.email | quote }}
{{- /* Extra Variables */}}
{{- if .Values.pihole.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.pihole.extraEnvVars "context" $) | nindent 12 }}
{{- end }}
Expand Down
4 changes: 3 additions & 1 deletion savepointsam/pihole/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ pihole:
## Pi-hole advanced configuration
## ref: https://github.com/pi-hole/docker-pi-hole#advanced-variables
## @param pihole.advanced.webPort This will break the 'webpage blocked' functionality of Pi-hole however it may help advanced setups. This guide explains how to restore webpage blocked functionality using a linux router DNAT rule: https://discourse.pi-hole.net/t/alternative-synology-installation-method/5454?u=diginc
## @param pihole.advanced.webBindAddress Lighttpd's bind address. If left unset lighttpd will bind to every interface, except when running in host networking mode where it will use FTLCONF_LOCAL_IPV4 instead.
## @param pihole.advanced.skipGravityOnBoot Use this option to skip updating the Gravity Database when booting up the container
## @param pihole.advanced.corsHosts List of domains/subdomains on which CORS is allowed. Wildcards are not supported
## @param pihole.advanced.customCacheSize Set the cache size for dnsmasq. When pihole.dnssec.enabled is "true", then this setting is ignored
Expand All @@ -160,6 +161,7 @@ pihole:
##
advanced:
webPort: ""
webBindAddress: ""
skipGravityOnBoot: false
corsHosts: []
customCacheSize: 10000
Expand Down Expand Up @@ -211,7 +213,7 @@ pihole:
image:
registry: docker.io
repository: pihole/pihole
tag: "2022.05"
tag: "2023.05.0"
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
Expand Down

0 comments on commit c4334d2

Please sign in to comment.