Skip to content

Commit 2c7ba05

Browse files
author
Jeff Peeler
committedOct 28, 2019
test(e2e): add bundle data image extraction test
The image-bundle directory contains files for the data inside a bundle image in addition to buildling both the bundle and init container images.
1 parent 2186398 commit 2c7ba05

8 files changed

+1387
-0
lines changed
 

‎test/e2e/bundle_image_test.go

+773
Large diffs are not rendered by default.
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# docker build -t bundle-image .
2+
FROM fedora
3+
4+
COPY manifests /manifests
5+
COPY metadata /metadata
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# docker build -t init-operator-manifest .
2+
FROM busybox
3+
4+
COPY opm /
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: kialis.kiali.io
5+
labels:
6+
app: kiali-operator
7+
spec:
8+
group: kiali.io
9+
names:
10+
kind: Kiali
11+
listKind: KialiList
12+
plural: kialis
13+
singular: kiali
14+
scope: Namespaced
15+
subresources:
16+
status: {}
17+
version: v1alpha1
18+
versions:
19+
- name: v1alpha1
20+
served: true
21+
storage: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: monitoringdashboards.monitoring.kiali.io
5+
labels:
6+
app: kiali
7+
spec:
8+
group: monitoring.kiali.io
9+
names:
10+
kind: MonitoringDashboard
11+
listKind: MonitoringDashboardList
12+
plural: monitoringdashboards
13+
singular: monitoringdashboard
14+
scope: Namespaced
15+
version: v1alpha1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
packageName: kiali
2+
channels:
3+
- name: alpha
4+
currentCSV: kiali-operator.v1.4.2
5+
- name: stable
6+
currentCSV: kiali-operator.v1.4.2
7+
defaultChannel: stable

‎test/e2e/image-bundle/manifests/kiali.v1.4.2.clusterserviceversion.yaml

+555
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
annotations:
2+
operators.operatorframework.io.bundle.mediatype.v1: "registry+v1"
3+
operators.operatorframework.io.bundle.manifests.v1: "/manifests/"
4+
operators.operatorframework.io.bundle.metadata.v1: "/metadata/"
5+
operators.operatorframework.io.bundle.package.v1: "kiali-operator.v1.4.2"
6+
operators.operatorframework.io.bundle.channels.v1: "alpha,stable"
7+
operators.operatorframework.io.bundle.channel.default.v1: "stable"

0 commit comments

Comments
 (0)
Please sign in to comment.