-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cicd): add helm install job to pr checks
- Loading branch information
1 parent
8779295
commit a4a1c4c
Showing
3 changed files
with
78 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,45 @@ jobs: | |
needs: [cancel-previous] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: helm-check | ||
- name: helm-check-default | ||
uses: igabaydulin/[email protected] | ||
env: | ||
CHART_LOCATION: ./ | ||
CHART_VALUES: ./values.yaml | ||
- name: helm-check-test | ||
uses: igabaydulin/[email protected] | ||
env: | ||
CHART_LOCATION: ./ | ||
CHART_VALUES: ./values-test.yaml | ||
|
||
test-k8s: | ||
runs-on: ubuntu-latest | ||
needs: [helm-check] | ||
strategy: | ||
matrix: | ||
k8s-version: [ v1.27, v1.26 ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Helm | ||
uses: azure/[email protected] | ||
with: | ||
version: v3.10.3 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
check-latest: true | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
with: | ||
version: v3.10.1 | ||
|
||
- name: Create Kind cluster | ||
uses: helm/[email protected] | ||
with: | ||
kubectl_version: ${{ matrix.k8s-version }} | ||
|
||
- name: Run chart-testing (install) | ||
run: ct install --charts . --helm-extra-args '--timeout 60s' |
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 @@ | ||
# Keep empty file for chart testing to grab defaults from values.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,39 @@ | ||
replicaCount: 2 | ||
|
||
# Pod disruption budget will be created only if replicaCount > 1 | ||
pdb: | ||
enabled: true | ||
minAvailable: 1 | ||
|
||
readinessProbe: | ||
enabled: true | ||
initialDelaySeconds: 10 | ||
|
||
livenessProbe: | ||
enabled: true | ||
initialDelaySeconds: 10 | ||
|
||
image: | ||
repository: nginx | ||
pullPolicy: IfNotPresent | ||
# Overrides the image tag whose default is the chart appVersion. | ||
tag: "latest" | ||
|
||
autoscaling: | ||
enabled: true | ||
minReplicas: 2 | ||
maxReplicas: 3 | ||
targetCPUUtilizationPercentage: 80 | ||
# targetMemoryUtilizationPercentage: 80 | ||
|
||
# Allows you to add any config files in specified mount path | ||
configFiles: | ||
config.yml: | | ||
key: value | ||
example.json: | | ||
{ | ||
"key1": "value1", | ||
"key2": "value2" | ||
} | ||
configFilesMountPath: /usr/share/config |