diff --git a/Gopkg.lock b/Gopkg.lock index 1c6d4ce95..4c6936acc 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -1421,6 +1421,8 @@ "github.com/RHsyseng/operator-utils/pkg/resource/compare", "github.com/RHsyseng/operator-utils/pkg/resource/write", "github.com/RHsyseng/operator-utils/pkg/validation", + "github.com/blang/semver", + "github.com/coreos/prometheus-operator/pkg/apis/monitoring/v1", "github.com/ghodss/yaml", "github.com/go-logr/logr", "github.com/go-openapi/spec", @@ -1434,6 +1436,7 @@ "github.com/openshift/api/route/v1", "github.com/openshift/client-go/image/clientset/versioned/typed/image/v1", "github.com/operator-framework/operator-lifecycle-manager/pkg/api/apis/operators/v1alpha1", + "github.com/operator-framework/operator-lifecycle-manager/pkg/lib/version", "github.com/operator-framework/operator-sdk/pkg/k8sutil", "github.com/operator-framework/operator-sdk/pkg/leader", "github.com/operator-framework/operator-sdk/pkg/log/zap", diff --git a/Makefile b/Makefile index 9d4519762..1dda761f8 100644 --- a/Makefile +++ b/Makefile @@ -64,6 +64,10 @@ rhel-scratch: rhel-release: ./hack/go-build.sh rhel release +.PHONY: csv +csv: + go run ./tools/csv-gen/csv-gen.go + .PHONY: clean clean: rm -rf build/_output \ diff --git a/README.md b/README.md index 3b52c5902..1fb877337 100644 --- a/README.md +++ b/README.md @@ -29,14 +29,26 @@ To install this operator on OpenShift 4 for end-to-end testing, make sure you ha Push the operator bundle to your quay application repository as follows: ```bash -operator-courier push deploy/catalog_resources/courier/bundle_dir/1.2.0 kiegroup kiecloud-operator 1.2.0 "basic XXXXXXXXX" -# operator-courier push deploy/catalog_resources/courier/bundle_dir/1.1.1 kiegroup kiecloud-operator 1.1.1 "basic XXXXXXXXX" +REGISTRY_NS= +operator-courier push deploy/catalog_resources/community ${REGISTRY_NS} kiecloud-operator $(go run getversion.go -operator) "basic XXXXXXXXX" ``` If pushing to another quay repository, replace _kiegroup_ with your username or other namespace. Also note that the push command does not overwrite an existing repository, and it needs to be deleted before a new version can be built and uploaded. Once the bundle has been uploaded, create an [Operator Source](https://github.com/operator-framework/community-operators/blob/master/docs/testing-operators.md#linking-the-quay-application-repository-to-your-openshift-40-cluster) to load your operator bundle in OpenShift. ```bash -oc create -f deploy/catalog_resources/courier/kiecloud-operatorsource.yaml +oc create -f - <