Skip to content

Commit

Permalink
Switch back to master branch of baremetal-operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
russellb authored and stbenjam committed May 31, 2019
1 parent 398d4d0 commit e594415
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
7 changes: 1 addition & 6 deletions 03_ocp_repo_sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@ make install
popd

# Install baremetal-operator
sync_repo_and_patch github.com/metalkube/baremetal-operator https://github.com/metalkube/baremetal-operator.git
# FIXME(dhellmann): Use the pre-rename version of the operator until
# this repository is ready for the renamed version.
pushd $GOPATH/src/github.com/metalkube/baremetal-operator
git checkout origin/metalkube
popd
sync_repo_and_patch github.com/metal3-io/baremetal-operator https://github.com/metal3-io/baremetal-operator.git

# Install rook repository
sync_repo_and_patch github.com/rook/rook https://github.com/rook/rook.git
Expand Down
8 changes: 2 additions & 6 deletions 08_deploy_bmo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,15 @@ source logging.sh
eval "$(go env)"

# Get the latest bits for baremetal-operator
export BMOPATH="$GOPATH/src/github.com/metalkube/baremetal-operator"
export BMOPATH="$GOPATH/src/github.com/metal3-io/baremetal-operator"

# Make a local copy of the baremetal-operator code to make changes
cp -r $BMOPATH/deploy ocp/.
sed -i 's/namespace: .*/namespace: openshift-machine-api/g' ocp/deploy/role_binding.yaml
# FIXME(dhellmann): Use the pre-rename operator until this repo
# works with the renamed version.
# - https://github.com/openshift-metal3/dev-scripts/issues/548
sed -i 's|image: quay.io/metalkube/baremetal-operator$|image: quay.io/metalkube/baremetal-operator:metalkube|' ocp/deploy/operator.yaml

# Start deploying on the new cluster
oc --config ocp/auth/kubeconfig apply -f ocp/deploy/service_account.yaml --namespace=openshift-machine-api
oc --config ocp/auth/kubeconfig apply -f ocp/deploy/role.yaml --namespace=openshift-machine-api
oc --config ocp/auth/kubeconfig apply -f ocp/deploy/role_binding.yaml
oc --config ocp/auth/kubeconfig apply -f ocp/deploy/crds/metalkube_v1alpha1_baremetalhost_crd.yaml
oc --config ocp/auth/kubeconfig apply -f ocp/deploy/crds/metal3_v1alpha1_baremetalhost_crd.yaml
oc --config ocp/auth/kubeconfig apply -f ocp/deploy/operator.yaml --namespace=openshift-machine-api
2 changes: 1 addition & 1 deletion make-bm-worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ data:
password: {{ .EncodedPassword }}
---
apiVersion: metalkube.org/v1alpha1
apiVersion: metal3.io/v1alpha1
kind: BareMetalHost
metadata:
name: {{ .Name }}
Expand Down

0 comments on commit e594415

Please sign in to comment.