diff --git a/Makefile b/Makefile index 404de36a9..ea13bccfa 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,6 @@ IMAGE_TAG ?= latest BPFMAN_IMG ?= quay.io/bpfman/bpfman:$(IMAGE_TAG) BPFMAN_AGENT_IMG ?= quay.io/bpfman/bpfman-agent:$(IMAGE_TAG) BPFMAN_OPERATOR_IMG ?= quay.io/bpfman/bpfman-operator:$(IMAGE_TAG) -BPFMAN_OPERATOR_BUNDLE_IMG ?= quay.io/bpfman/bpfman-operator-bundle:$(IMAGE_TAG) KIND_CLUSTER_NAME ?= bpfman-deployment # ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary. @@ -344,11 +343,11 @@ load-images-kind: ## Load bpfman-agent, and bpfman-operator images into the runn .PHONY: bundle-build bundle-build: ## Build the bundle image. - docker build -f Containerfile.bundle -t $(BPFMAN_OPERATOR_BUNDLE_IMG) . + docker build -f Containerfile.bundle -t $(BUNDLE_IMG) . .PHONY: bundle-push bundle-push: ## Push the bundle image. - docker push $(BPFMAN_OPERATOR_BUNDLE_IMG) + docker push $(BUNDLE_IMG) # A comma-separated list of bundle images (e.g. make catalog-build BUNDLE_IMGS=example.com/operator-bundle:v0.1.0,example.com/operator-bundle:v0.2.0). # These images MUST exist in a registry and be pull-able. diff --git a/README.md b/README.md index 7e906aa66..b25600e25 100644 --- a/README.md +++ b/README.md @@ -182,4 +182,16 @@ object to find references to the bpfMap pinpoints (`spec.maps`) to configure the ## Developer For more architecture details about `bpfman-operator`, refer to -[Developing the bpfman-operator](https://bpfman.io/v0.5.0-rc1/developer-guide/develop-operator) \ No newline at end of file +[Developing the bpfman-operator](https://bpfman.io/v0.5.0-rc1/developer-guide/develop-operator) + +### Deploy as a bundle from the Console's OperatorHub page + +This mode is recommended when you want to test the customer experience of navigating through the operators' +catalog and installing/configuring it manually through the UI. + +```sh +export BUNDLE_IMG=quay.io/$USER/bpfman-operator-bundle:v$VERSION +make bundle bundle-build bundle-push +export CATALOG_IMG=quay.io/$USER/bpfman-operator-catalog:v$VERSION +make catalog-build catalog-push catalog-deploy +``` diff --git a/bundle/manifests/bpfman-operator.clusterserviceversion.yaml b/bundle/manifests/bpfman-operator.clusterserviceversion.yaml index d76b7f5fc..d338c9c49 100644 --- a/bundle/manifests/bpfman-operator.clusterserviceversion.yaml +++ b/bundle/manifests/bpfman-operator.clusterserviceversion.yaml @@ -296,7 +296,18 @@ metadata: capabilities: Basic Install categories: OpenShift Optional containerImage: quay.io/bpfman/bpfman-operator:v0.0.0 - createdAt: "2024-07-10T22:28:17Z" + createdAt: "2024-07-12T16:12:00Z" + features.operators.openshift.io/cnf: "false" + features.operators.openshift.io/cni: "false" + features.operators.openshift.io/csi: "true" + features.operators.openshift.io/disconnected: "true" + features.operators.openshift.io/fips-compliant: "true" + features.operators.openshift.io/proxy-aware: "false" + features.operators.openshift.io/tls-profiles: "false" + features.operators.openshift.io/token-auth-aws: "false" + features.operators.openshift.io/token-auth-azure: "false" + features.operators.openshift.io/token-auth-gcp: "false" + operatorframework.io/suggested-namespace: bpfman operatorframework.io/suggested-namespace-template: |- { "apiVersion": "v1", @@ -313,9 +324,17 @@ metadata: }, } } + operators.openshift.io/infrastructure-features: '["csi", "disconnected"]' + operators.openshift.io/valid-subscription: '["OpenShift Kubernetes Engine", "OpenShift + Container Platform", "OpenShift Platform Plus"]' operators.operatorframework.io/builder: operator-sdk-v1.27.0 operators.operatorframework.io/project_layout: go.kubebuilder.io/v3 repository: https://github.com/bpfman/bpfman + labels: + operatorframework.io/arch.amd64: supported + operatorframework.io/arch.arm64: supported + operatorframework.io/arch.ppc64le: supported + operatorframework.io/arch.s390x: supported name: bpfman-operator.v0.5.0-rc1 namespace: placeholder spec: diff --git a/config/manifests/bases/bpfman-operator.clusterserviceversion.yaml b/config/manifests/bases/bpfman-operator.clusterserviceversion.yaml index 13d121a58..2369c5f9d 100644 --- a/config/manifests/bases/bpfman-operator.clusterserviceversion.yaml +++ b/config/manifests/bases/bpfman-operator.clusterserviceversion.yaml @@ -7,6 +7,7 @@ metadata: capabilities: Basic Install containerImage: quay.io/bpfman/bpfman-operator:v0.0.0 repository: https://github.com/bpfman/bpfman + operatorframework.io/suggested-namespace: bpfman operatorframework.io/suggested-namespace-template: |- { "apiVersion": "v1", @@ -23,6 +24,23 @@ metadata: }, } } + features.operators.openshift.io/disconnected: "true" + features.operators.openshift.io/fips-compliant: "true" + features.operators.openshift.io/proxy-aware: "false" + features.operators.openshift.io/cnf: "false" + features.operators.openshift.io/cni: "false" + features.operators.openshift.io/csi: "true" + features.operators.openshift.io/tls-profiles: "false" + features.operators.openshift.io/token-auth-aws: "false" + features.operators.openshift.io/token-auth-azure: "false" + features.operators.openshift.io/token-auth-gcp: "false" + operators.openshift.io/infrastructure-features: '["csi", "disconnected"]' + operators.openshift.io/valid-subscription: '["OpenShift Kubernetes Engine", "OpenShift Container Platform", "OpenShift Platform Plus"]' + labels: + operatorframework.io/arch.amd64: supported + operatorframework.io/arch.arm64: supported + operatorframework.io/arch.ppc64le: supported + operatorframework.io/arch.s390x: supported name: bpfman-operator.v0.0.0 namespace: placeholder spec: