Skip to content

Commit

Permalink
Merge pull request #115 from WyriHaximusNet/add-pi-hole-to-testing-cl…
Browse files Browse the repository at this point in the history
…uster

Add pi-hole to testing cluster
  • Loading branch information
WyriHaximus authored Nov 17, 2024
2 parents 98a4041 + f650d6e commit 5ea9ebb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/helm-charts-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,30 @@ jobs:
node_image: "kindest/node:v${{ matrix.k8s }}.0"
config: etc/kind.yaml
- run: kubectl get nodes
- run: kubectl get pods -A
- run: kubectl get svc -A
- name: Install PiHole
uses: evryfs/[email protected]
with:
repo: https://mojo2600.github.io/pihole-kubernetes/
chart: pihole
helm: 'helm' # optional, default value is 'helm'
args: '--wait --atomic --timeout 13m' #optional, default value is '--wait --timeout 2m' in order to wait for the chart-install to stabilize into ready state
- run: kubectl get pods -A
- run: kubectl get svc -A
- name: Create postgresql URL
id: pihole
run: |
echo ::set-output name=hostname::$(echo "pihole-helm-charts-${{ github.run_number }}-web.default" | base64)
- name: Install postgresql
uses: evryfs/[email protected]
with:
repo: https://charts.bitnami.com/bitnami
chart: postgresql
helm: 'helm' # optional, default value is 'helm'
args: '--wait --timeout 13m' #optional, default value is '--wait --timeout 2m' in order to wait for the chart-install to stabilize into ready state
args: '--wait --atomic --timeout 13m' #optional, default value is '--wait --timeout 2m' in order to wait for the chart-install to stabilize into ready state
- run: kubectl get pods -A
- run: kubectl get svc -A
- name: Get PG password
id: postgresql_password
run: |
Expand All @@ -77,6 +94,7 @@ jobs:
fi
- name: Prepare library charts
run: |
echo -e " PIHOLE_HOSTNAME: \"${{ steps.pihole.outputs.hostname }}\"\r\n" >> charts/pi-hole-exporter/library-ci/secret.yaml
cp charts/commons/library-ci/*.yaml charts/commons/templates/
cp charts/cron-jobs/library-ci/*.yaml charts/cron-jobs/templates/
cp charts/horizontal-pod-autoscalers/library-ci/*.yaml charts/horizontal-pod-autoscalers/templates/
Expand All @@ -90,9 +108,13 @@ jobs:
sed -i 's/library/application/g' charts/horizontal-pod-autoscalers/Chart.yaml
rm -Rf charts/commento
rm -Rf charts/commentoplusplus
- run: kubectl get pods -A
- run: kubectl get svc -A
- name: Test Changed Charts
if: steps.list-changed.outputs.changed == 'true'
run: ct install
- name: Test All Charts
if: steps.list-changed.outputs.changed != 'true'
run: ct install --all
- run: kubectl get pods -A
- run: kubectl get svc -A
3 changes: 1 addition & 2 deletions charts/pi-hole-exporter/library-ci/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ metadata:
name: pi-hole
type: Opaque
data:
PIHOLE_HOSTNAME: UElIT0xFX0hPU1ROQU1F
PIHOLE_PASSWORD: UElIT0xFX1BBU1NXT1JE
PIHOLE_PASSWORD: UElIT0xFX1BBU1NXT1JE

0 comments on commit 5ea9ebb

Please sign in to comment.