From f85fbd6848985a25af5adb10a4392974d45033be Mon Sep 17 00:00:00 2001 From: Hyeongju Johannes Lee Date: Wed, 9 Nov 2022 03:44:52 +0200 Subject: [PATCH] operator: fix the operator image name and update docs in DEVEL.md https://sdk.operatorframework.io/docs/cli/operator-sdk_run_bundle/ According to the documentation of operator-sdk, docker.io should be speficied. Signed-off-by: Hyeongju Johannes Lee --- DEVEL.md | 4 +++- deployments/operator/manager/manager.yaml | 2 +- ...evice-plugins-operator.clusterserviceversion.yaml | 12 ++++++------ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/DEVEL.md b/DEVEL.md index a92627fb..c26b0181 100644 --- a/DEVEL.md +++ b/DEVEL.md @@ -142,12 +142,14 @@ $ make bundle-build ``` > **Note**: You need to push the image to a registry if you want to follow the verification process below. +If pushing to the Docker hub, specify `docker.io/` in front of the image name for running bundle. +If pushing to the local registry, put the option `--use-http` for running bundle. Verify the operator deployment works OK via OLM in your development cluster: ``` $ operator-sdk olm install $ kubectl create namespace testoperator -$ operator-sdk run bundle / -n testoperator --use-http +$ operator-sdk run bundle : -n testoperator # do verification checks ... # do clean up diff --git a/deployments/operator/manager/manager.yaml b/deployments/operator/manager/manager.yaml index f877b0da..a0542e33 100644 --- a/deployments/operator/manager/manager.yaml +++ b/deployments/operator/manager/manager.yaml @@ -23,7 +23,7 @@ spec: control-plane: controller-manager spec: containers: - - image: intel/intel-deviceplugin-operator:devel + - image: docker.io/intel/intel-deviceplugin-operator:devel imagePullPolicy: IfNotPresent name: manager livenessProbe: diff --git a/deployments/operator/manifests/bases/intel-device-plugins-operator.clusterserviceversion.yaml b/deployments/operator/manifests/bases/intel-device-plugins-operator.clusterserviceversion.yaml index cadac533..58b1397a 100644 --- a/deployments/operator/manifests/bases/intel-device-plugins-operator.clusterserviceversion.yaml +++ b/deployments/operator/manifests/bases/intel-device-plugins-operator.clusterserviceversion.yaml @@ -5,15 +5,15 @@ metadata: alm-examples: '[]' capabilities: Seamless Upgrades categories: Drivers and plugins - containerImage: intel/intel-deviceplugin-operator:0.24.0 - createdAt: "2022-05-20" + containerImage: docker.io/intel/intel-deviceplugin-operator:0.25.0 + createdAt: "2022-11-09" description: This operator is a Kubernetes custom controller whose goal is to serve the installation and lifecycle management of Intel device plugins for Kubernetes. - operators.operatorframework.io/builder: operator-sdk-v1.20.0 + operators.operatorframework.io/builder: operator-sdk-v1.25.0 operators.operatorframework.io/project_layout: go.kubebuilder.io/v2 repository: https://github.com/intel/intel-device-plugins-for-kubernetes - name: intel-device-plugins-operator.v0.24.0 + name: intel-device-plugins-operator.v0.25.0 namespace: placeholder spec: apiservicedefinitions: {} @@ -122,5 +122,5 @@ spec: provider: name: IntelĀ® Corporation url: https://intel.com - replaces: intel-device-plugins-operator.v0.23.0 - version: 0.24.0 + replaces: intel-device-plugins-operator.v0.24.0 + version: 0.25.0