Skip to content

Instantly share code, notes, and snippets.

@dtantsur
Last active March 11, 2022 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dtantsur/e498e80ee136ee1bb94cd1afa25bb675 to your computer and use it in GitHub Desktop.
Save dtantsur/e498e80ee136ee1bb94cd1afa25bb675 to your computer and use it in GitHub Desktop.
Patch to be able to install AI on 4.11 dev-scripts
export IRONIC_AGENT_LOCAL_IMAGE=https://github.com/flaper87/ironic-agent-image
export IMAGE_CUSTOMIZATION_CONTROLLER_LOCAL_IMAGE=https://github.com/dtantsur/image-customization-controller
export CLUSTER_BAREMETAL_OPERATOR_LOCAL_IMAGE=https://github.com/dtantsur/cluster-baremetal-operator
export ASSISTED_SERVICE_IMAGE=quay.io/flaper87/assisted-service:no-force-inspection-1
export DRIVER=redfish-virtualmedia
export VM_EXTRADISKS=true
export VM_EXTRADISKS_LIST="vda vdb"
export VM_EXTRADISKS_SIZE="10G"
diff --git a/assisted_deployment.sh b/assisted_deployment.sh
index 8ee4b22..ccf985b 100755
--- a/assisted_deployment.sh
+++ b/assisted_deployment.sh
@@ -26,6 +26,36 @@ function generate_local_storage() {
mkdir -p "${ASSETS_DIR}"
cat >"${ASSETS_DIR}/01-local-storage-operator.yaml" <<EOF
+kind: CatalogSource
+apiVersion: operators.coreos.com/v1alpha1
+metadata:
+ name: redhat-operators-v410
+ namespace: openshift-marketplace
+spec:
+ displayName: Red Hat Operators v410
+ image: registry.redhat.io/redhat/redhat-operator-index:v4.10
+ priority: -100
+ publisher: Red Hat
+ sourceType: grpc
+ updateStrategy:
+ registryPoll:
+ interval: 10m0s
+---
+kind: CatalogSource
+apiVersion: operators.coreos.com/v1alpha1
+metadata:
+ name: community-operators-v410
+ namespace: openshift-marketplace
+spec:
+ displayName: Community Operators v410
+ image: registry.redhat.io/redhat/community-operator-index:v4.10
+ priority: -100
+ publisher: Red Hat
+ sourceType: grpc
+ updateStrategy:
+ registryPoll:
+ interval: 10m0s
+---
apiVersion: operators.coreos.com/v1alpha2
kind: OperatorGroup
metadata:
@@ -43,7 +73,7 @@ metadata:
spec:
installPlanApproval: Automatic
name: local-storage-operator
- source: redhat-operators
+ source: redhat-operators-v410
sourceNamespace: openshift-marketplace
EOF
@@ -107,7 +137,7 @@ metadata:
spec:
installPlanApproval: Automatic
name: hive-operator
- source: community-operators
+ source: community-operators-v410
sourceNamespace: openshift-marketplace
EOCR
}
diff --git a/ocp_install_env.sh b/ocp_install_env.sh
index b1b145b..7b8cabd 100644
--- a/ocp_install_env.sh
+++ b/ocp_install_env.sh
@@ -201,13 +201,7 @@ function generate_ocp_install_config() {
outdir="$1"
- # when using local mirror set pull secret to just this mirror to
- # ensure we don't accidentally pull from upstream
- if [ ! -z "${MIRROR_IMAGES}" ]; then
- install_config_pull_secret="${REGISTRY_CREDS}"
- else
- install_config_pull_secret="${PULL_SECRET_FILE}"
- fi
+ install_config_pull_secret="${PULL_SECRET_FILE}"
mkdir -p "${outdir}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment