Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
Signed-off-by: xuezhaojun <[email protected]>
  • Loading branch information
xuezhaojun committed Nov 19, 2024
1 parent fcc928c commit dc85b2a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
9 changes: 4 additions & 5 deletions build/setup-import-controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set -o nounset
# Input: KUBECTL(kubectl or oc), OCM_VERSION, E2E_KUBECONFIG, E2E_MANAGED_KUBECONFIG, cluster_ip, cluster_context

KUBECTL=${KUBECTL:-kubectl}
OCM_VERSION=${OCM_VERSION:-main}
OCM_VERSION=${OCM_VERSION:-test1118}
IMPORT_CONTROLLER_IMAGE_NAME=${IMPORT_CONTROLLER_IMAGE_NAME:-managedcluster-import-controller:latest}

BUILD_DIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
Expand All @@ -23,10 +23,9 @@ E2E_KUBECONFIG="${WORK_DIR}/e2e-kubeconfig"
E2E_MANAGED_KUBECONFIG="${WORK_DIR}/e2e-managed-kubeconfig"
E2E_EXTERNAL_MANAGED_KUBECONFIG="${WORK_DIR}/e2e-external-managed-kubeconfig"

export OCM_BRANCH=$OCM_VERSION
export REGISTRATION_OPERATOR_IMAGE=quay.io/stolostron/registration-operator:$OCM_VERSION
export REGISTRATION_IMAGE=quay.io/stolostron/registration:$OCM_VERSION
export WORK_IMAGE=quay.io/stolostron/work:$OCM_VERSION
export REGISTRATION_OPERATOR_IMAGE=quay.io/zhaoxue/registration-operator:$OCM_VERSION
export REGISTRATION_IMAGE=quay.io/zhaoxue/registration:$OCM_VERSION
export WORK_IMAGE=quay.io/zhaoxue/work:$OCM_VERSION

echo "###### deploy managedcluster-import-controller by image $IMPORT_CONTROLLER_IMAGE_NAME"

Expand Down
16 changes: 8 additions & 8 deletions build/setup-ocm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set -o nounset
# Input: KUBECTL(kubectl or oc), OCM_VERSION)

KUBECTL=${KUBECTL:-kubectl}
OCM_VERSION=${OCM_VERSION:-main}
OCM_VERSION=${OCM_VERSION:-test1118}

function wait_deployment() {
set +e
Expand All @@ -35,13 +35,13 @@ mkdir -p "${WORK_DIR}"
echo "###### deploy ocm"
rm -rf "$WORK_DIR/_repo_ocm"

export OCM_BRANCH=$OCM_VERSION
export IMAGE_NAME=quay.io/stolostron/registration-operator:$OCM_VERSION
export REGISTRATION_OPERATOR_IMAGE=quay.io/stolostron/registration-operator:$OCM_VERSION
export REGISTRATION_IMAGE=quay.io/stolostron/registration:$OCM_VERSION
export WORK_IMAGE=quay.io/stolostron/work:$OCM_VERSION
export PLACEMENT_IMAGE=quay.io/stolostron/placement:$OCM_VERSION
export ADDON_MANAGER_IMAGE=quay.io/stolostron/addon-manager:$OCM_VERSION
export OCM_BRANCH=main
export IMAGE_NAME=quay.io/zhaoxue/registration-operator:$OCM_VERSION
export REGISTRATION_OPERATOR_IMAGE=quay.io/zhaoxue/registration-operator:$OCM_VERSION
export REGISTRATION_IMAGE=quay.io/zhaoxue/registration:$OCM_VERSION
export WORK_IMAGE=quay.io/zhaoxue/work:$OCM_VERSION
export PLACEMENT_IMAGE=quay.io/zhaoxue/placement:$OCM_VERSION
export ADDON_MANAGER_IMAGE=quay.io/zhaoxue/addon-manager:$OCM_VERSION

git clone --depth 1 --branch $OCM_BRANCH https://github.com/stolostron/ocm.git "$WORK_DIR/_repo_ocm"
make deploy-hub-operator apply-hub-cr -C "$WORK_DIR/_repo_ocm"
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/imageregistry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/stolostron/managedcluster-import-controller/test/e2e/util"
)

var _ = ginkgo.Describe("Using customized image registry", func() {
var _ = ginkgo.XDescribe("Using customized image registry", func() {
var (
managedClusterName string
pullSecretName string
Expand Down

0 comments on commit dc85b2a

Please sign in to comment.