Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ jobs:
echo "Tag: ${tag}"
echo "tag=$tag" >> $GITHUB_OUTPUT
- name: Checkout Server
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ steps.tag.outputs.tag }}

- name: Create docker context
run: |
docker context create ctx
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
id: buildx
with:
endpoint: ctx
Expand All @@ -49,7 +49,7 @@ jobs:
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
echo "Build tag ${{ steps.tag.outputs.tag }}"
- name: Login to GHRC
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.registry }}
username: ${{ github.actor }}
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4.2.0
with:
version: v3.6.3
version: v3.17.0

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5.3.0
with:
python-version: 3.7
python-version: '3.x'
check-latest: true

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

- name: Run chart-testing (list-changed)
id: list-changed
Expand All @@ -34,7 +35,7 @@ jobs:
run: ct lint --target-branch main

- name: Create kind cluster
uses: helm/kind-action@v1.8.0
uses: helm/kind-action@v1.12.0
if: steps.list-changed.outputs.changed == 'true'

- name: Run chart-testing (install)
Expand Down
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@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -19,11 +19,11 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Set up Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4.2.0
with:
version: v3.6.3
version: v3.17.0

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
uses: helm/chart-releaser-action@v1.7.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 1 addition & 1 deletion charts/unbound/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
description: Unbound is a fast caching DNS resolver
home: https://www.unbound.net/
name: unbound
version: 0.1.4
version: 0.1.5
appVersion: 1.17.1
sources:
- https://github.com/pixelfederation/unbound/
Expand Down
11 changes: 10 additions & 1 deletion charts/unbound/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,13 @@ policy/v1
{{- else -}}
policy/v1beta1
{{- end }}
{{- end -}}
{{- end -}}

{/*
Namespace for all resources to be installed into
If not defined in values file then the helm release namespace is used
By default this is not set so the helm release namespace will be used
*/}}
{{- define "unbound.namespace" -}}
{{ .Values.namespace | default .Release.Namespace }}
{{- end -}}
1 change: 1 addition & 0 deletions charts/unbound/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "unbound.fullname" . }}
namespace: {{ include "unbound.namespace" . }}
labels:
app: {{ template "unbound.name" . }}
chart: {{ template "unbound.chart" . }}
Expand Down
1 change: 1 addition & 0 deletions charts/unbound/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "unbound.fullname" . }}
namespace: {{ include "unbound.namespace" . }}
labels:
{{- include "unbound.labels" . | nindent 4 }}
{{- with .Values.labels }}
Expand Down
1 change: 1 addition & 0 deletions charts/unbound/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "unbound.fullname" . }}
namespace: {{ include "unbound.namespace" . }}
labels:
{{- include "unbound.labels" . | nindent 4 }}
{{- with .Values.labels }}
Expand Down
1 change: 1 addition & 0 deletions charts/unbound/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: {{ include "unbound.pdb.apiVersion" . }}
kind: PodDisruptionBudget
metadata:
name: {{ include "unbound.fullname" . }}
namespace: {{ include "unbound.namespace" . }}
labels:
{{- include "unbound.labels" . | nindent 4 }}
{{- with .Values.podDisruptionBudget.annotations }}
Expand Down
3 changes: 2 additions & 1 deletion charts/unbound/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Service
apiVersion: v1
metadata:
name: {{ template "unbound.fullname" . }}
namespace: {{ include "unbound.namespace" . }}
labels:
{{- include "unbound.labels" . | nindent 4 }}
{{- with .Values.labels }}
Expand Down Expand Up @@ -46,4 +47,4 @@ spec:
{{- with .Values.service.topologyKeys }}
topologyKeys: {{ toYaml . | nindent 2 }}
{{- end }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/unbound/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "unbound.fullname" . }}
namespace: {{ include "unbound.namespace" . }}
labels:
{{- include "unbound.labels" . | nindent 4 }}
{{- with .Values.serviceMonitor.annotations }}
Expand Down
7 changes: 6 additions & 1 deletion charts/unbound/values.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# This namespace allows you to define where the services are installed into.
# If not set then they use the namespace of the release.
# This is helpful when installing cert manager as a chart dependency (sub chart).
namespace: ""

containers:
unbound:
image:
repository: ghcr.io/pixelfederation/unbound
tag: 1.17.1_3
tag: 1.17.1_4
pullPolicy: IfNotPresent
resources:
requests:
Expand Down