Skip to content

Commit

Permalink
Merge branch 'main' into CLM-33049-pass-iq-server-jobs-annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
benflodge committed Dec 12, 2024
2 parents f2d8d8c + a5982ca commit 00fb76a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/helm-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Helm Tests

on:
pull_request:
branches:
- '**'

jobs:
helm-tests:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

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

- name: Install dependencies
run: helm dependency update chart/

- name: Run Helm lint
run: helm lint chart/

- name: Run Helm template
run: helm template chart/

- name: Install unittest plugin
run: helm plugin install https://github.com/quintush/helm-unittest --version v0.2.11

- name: Run Helm tests
run: helm unittest --helm3 chart/
2 changes: 1 addition & 1 deletion chart/templates/iq-server-jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ spec:
command:
- /bin/sh
- -c
- "/usr/bin/java -jar `ls ./nexus-iq-server*.jar` migrate-db /etc/nexus-iq-server/config.yml"
- "/opt/sonatype/nexus-iq-server/bin/nexus-iq-server migrate-db /etc/nexus-iq-server/config.yml"
securityContext:
runAsUser: 1000
runAsGroup: 1000
Expand Down
4 changes: 2 additions & 2 deletions chart/tests/iq-server-jobs_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ tests:
- command:
- /bin/sh
- -c
- /usr/bin/java -jar `ls ./nexus-iq-server*.jar` migrate-db /etc/nexus-iq-server/config.yml
- /opt/sonatype/nexus-iq-server/bin/nexus-iq-server migrate-db /etc/nexus-iq-server/config.yml
env:
- name: NXIQ_DATABASE_HOSTNAME
valueFrom:
Expand Down Expand Up @@ -143,7 +143,7 @@ tests:
- command:
- /bin/sh
- -c
- /usr/bin/java -jar `ls ./nexus-iq-server*.jar` migrate-db /etc/nexus-iq-server/config.yml
- /opt/sonatype/nexus-iq-server/bin/nexus-iq-server migrate-db /etc/nexus-iq-server/config.yml
env:
- name: ENV_VAR_1
value: value1
Expand Down

0 comments on commit 00fb76a

Please sign in to comment.