Skip to content

Commit 17389fc

Browse files
committed
fix: helm e2e tests were broken
cleaned up a few refs to nvcr.io that were wrong too
1 parent ee8b9a1 commit 17389fc

File tree

15 files changed

+34
-37
lines changed

15 files changed

+34
-37
lines changed

.github/workflows/operator-ci.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,21 @@ env:
5454

5555
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
5656
jobs:
57-
unit-test:
57+
## move it all down to the tests job, should do all the tests then, and not double install stuff
58+
# unit-test:
59+
# runs-on: ubuntu-latest
60+
# steps:
61+
# - uses: actions/checkout@v4
62+
# - name: Setup Go 1.23
63+
# uses: actions/setup-go@v5
64+
# with:
65+
# go-version: 1.23
66+
# - name: Unit tests
67+
# run: |
68+
# cd operator
69+
# make unit-tests
70+
tests:
5871
runs-on: ubuntu-latest
59-
steps:
60-
- uses: actions/checkout@v4
61-
- name: Setup Go 1.23
62-
uses: actions/setup-go@v5
63-
with:
64-
go-version: 1.23
65-
- name: Unit tests
66-
run: |
67-
cd operator
68-
make unit-tests
69-
k8s-tests:
70-
runs-on: ubuntu-latest
71-
needs: [unit-test] # Don't run the k8s tests if the unit tests fail
7272
steps:
7373
- uses: actions/checkout@v4
7474
with:
@@ -94,10 +94,10 @@ jobs:
9494
run: |
9595
cd operator
9696
GITHUB_TOKEN=${{ secrets.github_token }} make create-kind-cluster
97-
make e2e-tests
97+
make test
9898
build-and-push-operator:
9999
runs-on: ubuntu-latest
100-
needs: [k8s-tests] # Don't run the build and push if the k8s tests fail
100+
needs: [tests] # Don't run the build and push if the k8s tests fail
101101
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
102102
permissions:
103103
contents: read

demos/interrupt-wait-for-pod/scr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ spec:
3636
app: skyhook-demo-workload
3737
packages:
3838
baz:
39-
version: 2024.8.10
40-
image: nvcr.io/nvidian/swgpu-baseos/shellscript:1.3.1
39+
version: 1.1.0
40+
image: ghcr.io/nvidia/skyhook-packages/shellscript
4141
interrupt:
4242
type: reboot
4343
# type: service

k8s-tests/chainsaw/helm/helm-chart-test/assert-no-schedule.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ spec:
5353
- command:
5454
- /manager
5555
((env[?name == 'RUNTIME_REQUIRED_TAINT'].value)[0] == 'skyhook.nvidia.com=runtime-required:NoSchedule'): true
56-
image: nvcr.io/nvidian/swgpu-baseos/skyhook-operator:test
57-
imagePullPolicy: IfNotPresent
56+
image: ghcr.io/nvidia/skyhook/operator:latest ## THIS should change to be like a tag so it can point at a specific commit
5857
livenessProbe:
5958
failureThreshold: 3
6059
httpGet:
@@ -103,7 +102,6 @@ spec:
103102
- name: KUBERNETES_CLUSTER_DOMAIN
104103
value: cluster.local
105104
image: quay.io/brancz/kube-rbac-proxy:v0.15.0
106-
imagePullPolicy: IfNotPresent
107105
name: kube-rbac-proxy
108106
ports:
109107
- containerPort: 8443

k8s-tests/chainsaw/helm/helm-chart-test/assert-scheduled.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ spec:
5353
- command:
5454
- /manager
5555
((env[?name == 'RUNTIME_REQUIRED_TAINT'].value)[0] == 'skyhook.nvidia.com=runtime-required:NoSchedule'): true
56-
imagePullPolicy: IfNotPresent
5756
livenessProbe:
5857
failureThreshold: 3
5958
httpGet:
@@ -102,7 +101,6 @@ spec:
102101
- name: KUBERNETES_CLUSTER_DOMAIN
103102
value: cluster.local
104103
image: quay.io/brancz/kube-rbac-proxy:v0.15.0
105-
imagePullPolicy: IfNotPresent
106104
name: kube-rbac-proxy
107105
ports:
108106
- containerPort: 8443

k8s-tests/chainsaw/helm/helm-chart-test/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ controllerManager:
2929
# telling the helm chart to use the test operator image
3030
# for more info refer to the README
3131
image:
32-
repository: nvcr.io/nvidian/swgpu-baseos/skyhook-operator
33-
tag: test
32+
repository: ghcr.io/nvidia/skyhook/operator
33+
tag: latest ## THIS should change to be like a tag so it can point at a specific commit

k8s-tests/chainsaw/helm/helm-scale-test/chainsaw-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
apiVersion: chainsaw.kyverno.io/v1alpha1
2323
kind: Test
2424
metadata:
25-
name: helm-chart
25+
name: helm-scale
2626
spec:
2727
description: This test asserts that the helm chart is working as expected. Specifically it asserts that the helm chart works when given a different
2828
deployment name than skyhook-operator and that the tolerations that are given to the chart through a values file work as expected.

k8s-tests/chainsaw/helm/helm-scale-test/values-scale.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ controllerManager:
2323
# telling the helm chart to use the test operator image
2424
# for more info refer to the README
2525
image:
26-
repository: nvcr.io/nvidian/swgpu-baseos/skyhook-operator
27-
tag: test
26+
repository: ghcr.io/nvidia/skyhook/operator
27+
tag: latest ## THIS should change to be like a tag so it can point at a specific commit
2828
estimatedNodeCount: 400
2929
estimatedPackageCount: 5

k8s-tests/chainsaw/helm/helm-scale-test/vaules-override-resources.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ controllerManager:
3030
# telling the helm chart to use the test operator image
3131
# for more info refer to the README
3232
image:
33-
repository: nvcr.io/nvidian/swgpu-baseos/skyhook-operator
33+
repository: ghcr.io/nvidia/skyhook/operator
3434
tag: test

k8s-tests/chainsaw/helm/install-cert-manager.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ else
2929
HELM=$(which helm)
3030
fi
3131

32-
VERSION=${1:-v1.16.2}
32+
VERSION=${1:-v1.17.0}
3333

3434
## add chart repo
3535
$HELM repo add jetstack https://charts.jetstack.io --force-update

k8s-tests/chainsaw/helm/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
This directory holds all the tests for the skyhook operator's helm chart. Right now this mainly ensures that tolerations set in the helm chart actually work and that the operator can be deployed successfully under another deployment name than skyhook-operator.
33

44
## Test Image
5-
The image that is used by these tests should be `nvcr.io/nvidian/swgpu-baseos/skyhook-operator:test` since this will be built in CI every time a commit is pushed to Gitlab and will make sure that you current changes to the operator are compatible with the helm chart still.
5+
The image that is used by these tests should be ` ghcr.io/nvidia/skyhook/operator:test` (NOTE: this does not exist in the current github CI, this needs to be fixed) since this will be built in CI every time a commit is pushed to Gitlab and will make sure that you current changes to the operator are compatible with the helm chart still.
66

77
**NOTE:** When you run the helm chart tests locally it may be using an outdated version of the test image since it hasn't been pushed and built by the CI. Be careful in the assumptions you make as your changes to the operator may pass the helm chart tests locally but fail in CI.

0 commit comments

Comments
 (0)