Skip to content

Commit 3a0c17e

Browse files
committed
Add an e2e test for keyless verification
Signed-off-by: Soule BA <bah.soule@gmail.com>
1 parent 2b0e355 commit 3a0c17e

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

.github/workflows/e2e.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ jobs:
110110
kubectl -n helm-system apply -f config/testdata/podinfo
111111
kubectl -n helm-system wait helmreleases/podinfo --for=condition=ready --timeout=4m
112112
kubectl -n helm-system wait helmreleases/podinfo-git --for=condition=ready --timeout=4m
113+
kubectl -n helm-system wait helmreleases/podinfo-oci --for=condition=ready --timeout=4m
113114
kubectl -n helm-system delete -f config/testdata/podinfo
114115
- name: Run dependency tests
115116
run: |

config/default/kustomization.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: helm-system
44
resources:
5-
- https://github.com/fluxcd/source-controller/releases/download/v0.25.3/source-controller.crds.yaml
6-
- https://github.com/fluxcd/source-controller/releases/download/v0.25.3/source-controller.deployment.yaml
5+
- https://github.com/fluxcd/source-controller/releases/download/v0.31.0/source-controller.crds.yaml
6+
- https://github.com/fluxcd/source-controller/releases/download/v0.31.0/source-controller.deployment.yaml
77
- ../crd
88
- ../rbac
99
- ../manager
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: helm.toolkit.fluxcd.io/v2beta1
2+
kind: HelmRelease
3+
metadata:
4+
name: podinfo-oci
5+
spec:
6+
interval: 5m
7+
chart:
8+
spec:
9+
chart: podinfo
10+
version: '6.2.1'
11+
sourceRef:
12+
kind: HelmRepository
13+
name: podinfo-oci
14+
interval: 1m
15+
verify:
16+
provider: cosign
17+
values:
18+
resources:
19+
requests:
20+
cpu: 100m
21+
memory: 64Mi
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: source.toolkit.fluxcd.io/v1beta1
2+
kind: HelmRepository
3+
metadata:
4+
name: podinfo-oci
5+
spec:
6+
interval: 1m
7+
url: oci://ghcr.io/stefanprodan/charts
8+
type: "oci"

0 commit comments

Comments
 (0)