Skip to content

Commit 83dd29d

Browse files
committed
Add make targets,scripts & docs for bundle format
Add make targets for buinding bundle images and index images Add development docs Delte obsolete scripts and csv manifests Signed-off-by: Nikhil Thomas <nikthoma@redhat.com>
1 parent 7f86d0e commit 83dd29d

20 files changed

+524
-1166
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ include ./make/test.mk
1515
include ./make/docker.mk
1616
include ./make/csv.mk
1717
include ./opo-makefile.mk
18+
include ./opo-makefile-new-bundle-format.mk
1819

1920
BUILD_OUTPUT_DIR ?= ./out/
2021
BUILD_OUTPUT_FILE ?= operator

README.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ You must install these tools:
5959
1. [`git`](https://help.github.com/articles/set-up-git/): For source control
6060
1. [`kubectl`](https://kubernetes.io/docs/tasks/tools/install-kubectl/): For
6161
interacting with your kube cluster
62-
1. operator-sdk: https://github.com/operator-framework/operator-sdk
63-
1. minikube: https://kubernetes.io/docs/tasks/tools/install-minikube/
62+
1. [operator-sdk](https://github.com/operator-framework/operator-sdk)
63+
1. [opm](https://github.com/operator-framework/operator-registry/releases/tag/v1.13.7)
6464

6565
### Install Minikube
6666

@@ -81,19 +81,7 @@ eval $(minikube docker-env -p mk-tekton)
8181

8282
### Development build
8383

84-
1. Change directory to '${GOPATH}/src/github.com/openshift/tektoncd-pipeline-operator'
85-
```
86-
cd ${GOPATH}/src/github.com/openshift/tektoncd-pipeline-operator
87-
```
88-
2. Build go and the container image
89-
```
90-
make osdk-image IMAGE_TAG=${YOUR_REGISTRY}/openshift-pipelines-operator:${YOUR_IMAGE_TAG}
91-
```
92-
3. Push the container image
93-
```
94-
docker push ${YOUR_REGISTRY}/openshift-pipelines-operator:${YOUR_IMAGE_TAG}
95-
```
96-
4. Edit the 'image' value in deploy/operator.yaml to match to your image
84+
[Development Guide](docs/development.md)
9785

9886
#### [Running tests](docs/tests.md)
9987

bundle.Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM scratch
2+
3+
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
4+
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
5+
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
6+
LABEL operators.operatorframework.io.bundle.package.v1=openshift-pipelines-operator-midstr
7+
LABEL operators.operatorframework.io.bundle.channels.v1=canary
8+
LABEL operators.operatorframework.io.bundle.channel.default.v1=canary
9+
10+
COPY bundle/manifests /manifests/
11+
COPY bundle/metadata /metadata/

olm-catalog/openshift-pipelines-operator/0.11.2/openshift-pipelines-operator.v0.11.2.clusterserviceversion.yaml renamed to bundle/manifests/openshift-pipelines-operator.clusterserviceversion.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ metadata:
1818
capabilities: Seamless Upgrades
1919
categories: Developer Tools, Integration & Delivery
2020
certified: "false"
21-
containerImage: quay.io/openshift-pipeline/openshift-pipelines-operator:v0.11.2
21+
containerImage: quay.io/openshift-pipeline/openshift-pipelines-operator-controller:v0.15.2-1
2222
createdAt: "2019-03-15T19:44:21Z"
2323
description: OpenShift Pipelines is a cloud-native CI/CD solution for building
2424
pipelines using Tekton concepts which run natively on OpenShift and Kubernetes.
2525
operators.operatorframework.io/internal-objects: '["config.operator.tekton.dev"]'
2626
repository: https://github.com/openshift/tektoncd-pipeline-operator
2727
support: Red Hat, Inc.
28-
name: openshift-pipelines-operator.v0.11.2
28+
name: openshift-pipelines-operator.v0.15.2-1
2929
namespace: placeholder
3030
spec:
3131
apiservicedefinitions: {}
@@ -370,13 +370,15 @@ spec:
370370
valueFrom:
371371
fieldRef:
372372
fieldPath: metadata.annotations['olm.targetNamespaces']
373+
- name: IMAGE_ADDONS_PARAM_KN_IMAGE
374+
value: registry.redhat.io/openshift-serverless-1/client-kn-rhel8:0.13.2
373375
- name: POD_NAME
374376
valueFrom:
375377
fieldRef:
376378
fieldPath: metadata.name
377379
- name: OPERATOR_NAME
378380
value: openshift-pipelines-operator
379-
image: quay.io/openshift-pipeline/openshift-pipelines-operator:v0.11.2
381+
image: quay.io/openshift-pipeline/openshift-pipelines-operator-controller:v0.15.2-1
380382
imagePullPolicy: Always
381383
name: openshift-pipelines-operator
382384
resources: {}
@@ -407,10 +409,4 @@ spec:
407409
maturity: alpha
408410
provider:
409411
name: Red Hat
410-
replaces: openshift-pipelines-operator.v0.10.7
411-
skips:
412-
- openshift-pipelines-operator.v0.10.8
413-
- openshift-pipelines-operator.v0.11.0-rc2
414-
- openshift-pipelines-operator.v0.11.0
415-
- openshift-pipelines-operator.v0.11.1
416-
version: 0.11.2
412+
version: 0.15.2-1

olm-catalog/openshift-pipelines-operator/0.11.2/operator_v1alpha1_config_crd.yaml renamed to bundle/manifests/operator_v1alpha1_config_crd.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,19 @@ spec:
4242
details:
4343
description: Additional details about the Code
4444
type: string
45+
pipelineVersion:
46+
description: The version of OpenShift pipelines
47+
type: string
48+
triggersVersion:
49+
description: The version of OpenShift triggers
50+
type: string
4551
version:
46-
description: The version of tekton pipelines
52+
description: The version of OpenShift pipelines operator
4753
type: string
4854
required:
4955
- code
56+
- pipelineVersion
57+
- triggersVersion
5058
- version
5159
type: object
5260
type: array

bundle/metadata/annotations.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
annotations:
2+
operators.operatorframework.io.bundle.channel.default.v1: canary
3+
operators.operatorframework.io.bundle.channels.v1: canary
4+
operators.operatorframework.io.bundle.manifests.v1: manifests/
5+
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
6+
operators.operatorframework.io.bundle.metadata.v1: metadata/
7+
operators.operatorframework.io.bundle.package.v1: openshift-pipelines-operator-midstr

deploy/operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
serviceAccountName: openshift-pipelines-operator
1717
containers:
1818
- name: openshift-pipelines-operator
19-
image: quay.io/openshift-pipeline/openshift-pipelines-operator:v0.11.2
19+
image: quay.io/openshift-pipeline/openshift-pipelines-operator-controller:v0.15.2-1
2020
command:
2121
- openshift-pipelines-operator
2222
- --recursive

0 commit comments

Comments
 (0)