Skip to content

Instantly share code, notes, and snippets.

John Matthews jwmatthews

Block or report user

Report or block jwmatthews

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Konveyor_Repos_Move.md

Plan to move repositories from github.com/fusor to github.com/konveyor

  1. Need a window of 3 days of engineering time to make changes for move and address issues that pop up with upstream/downstream builds and CI
    • Propose to wait till after 1.0.1 release, prior to 1.1.0
  2. Move repositories identified below from github.com/fusor to github.com/konveyor
    • Note, only the specified repositories from github.com/fusor will be moved, 'fusor' org has many unrelated repositories we will not move
  3. Update the golang sources for package references to refer to 'konveyor' instead of 'fusor'
    • For Migration controller/operator/UI
    • For CPMA
  4. Setup image builds to publish to https://quay.io/konveyor/
  5. Update example depolyment scripts to reference https://quay.io/konveyor/ for images
View operator.yml
---
apiVersion: v1
kind: Namespace
metadata:
annotations:
openshift.io/node-selector: ""
labels:
control-plane: controller-manager
controller-tools.k8s.io: "1.0"
name: "openshift-migration"
View gist:78b69e670672c3e2f9c6d51754792120
1) On 'master' of OCP 3 cluster
/etc/origin/master/master-config.yaml
corsAllowedOrigins:
- (?i)//migration-openshift-migration\.apps\.cluster-jwm1023ocp4b\.jwm1023ocp4b\.mg\.dog8code\.com(:|\z)
2) Assume script below:
$ cat check_cors.sh
#!/bin/sh
View gist:7312006b0716b7458d75846570df4571
$ oc get migplan -n openshift-migration -o yaml
apiVersion: v1
items:
- apiVersion: migration.openshift.io/v1alpha1
kind: MigPlan
metadata:
annotations:
touch: 7e2751c5-f625-4cd3-9615-defb02d67b9c
creationTimestamp: "2019-09-17T22:12:26Z"
generation: 14
View setup_noobaa.sh
NOOBAA_CMD=noobaa-linux-v1.1.1
NOOBAA_NAMESPACE="noobaa"
wget https://github.com/noobaa/noobaa-operator/releases/download/v1.1.1/${NOOBAA_CMD}
chmod +x ./${NOOBAA_CMD}
./${NOOBAA_CMD} install --namespace ${NOOBAA_NAMESPACE}
View gist:341bc1bb2040072d19345388cb07e836
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:DescribeVolumes",
"ec2:DescribeSnapshots",
"ec2:CreateTags",
View cleanup.sh
#!/bin/bash
SRC_KUBECONFIG="/Users/jmatthews/.agnosticd/jwm0817ocp3b/kubeconfig"
DST_KUBECONFIG="/Users/jmatthews/.agnosticd/jwm0817ocp4b/ocp4-workshop_jwm0817ocp4b_kubeconfig"
MIG_NAMESPACE="mig"
MSSQL_NAMESPACE="mssql-persistent"
## Destination Cleanup
echo "Removing migmigrations"
View clusterrole.rbac_0817cluster.logs
Name: admin
Labels: kubernetes.io/bootstrapping=rbac-defaults
Annotations: rbac.authorization.kubernetes.io/autoupdate: true
PolicyRule:
Resources Non-Resource URLs Resource Names Verbs
--------- ----------------- -------------- -----
imagestreams [] [] [create delete deletecollection get list patch update watch create get list watch]
imagestreams.image.openshift.io [] [] [create delete deletecollection get list patch update watch create get list watch]
secrets [] [] [create delete deletecollection get list patch update watch get list watch create delete deletecollection patch update]
buildconfigs/webhooks [] []
View clusterrole.rbac.logs
Name: admin
Labels: kubernetes.io/bootstrapping=rbac-defaults
Annotations: rbac.authorization.kubernetes.io/autoupdate: true
PolicyRule:
Resources Non-Resource URLs Resource Names Verbs
--------- ----------------- -------------- -----
imagestreams [] [] [create delete deletecollection get list patch update watch create get list watch]
imagestreams.image.openshift.io [] [] [create delete deletecollection get list patch update watch create get list watch]
secrets [] [] [create delete deletecollection get list patch update watch get list watch create delete deletecollection patch update]
buildconfigs/webhooks [] []
View controller-manager-764c44c4d4-zq952.log
{"level":"info","ts":1565122005.719307,"logger":"entrypoint","msg":"setting up client for manager"}
{"level":"info","ts":1565122005.719652,"logger":"entrypoint","msg":"setting up manager"}
{"level":"info","ts":1565122006.034427,"logger":"entrypoint","msg":"Registering Components."}
{"level":"info","ts":1565122006.034474,"logger":"entrypoint","msg":"setting up scheme"}
{"level":"info","ts":1565122006.034886,"logger":"entrypoint","msg":"Setting up controller"}
{"level":"info","ts":1565122006.0349767,"logger":"kubebuilder.controller","msg":"Starting EventSource","controller":"migcluster-controller","source":"kind source: /, Kind="}
{"level":"info","ts":1565122006.0351217,"logger":"kubebuilder.controller","msg":"Starting EventSource","controller":"migcluster-controller","source":"kind source: /, Kind="}
{"level":"info","ts":1565122006.0352125,"logger":"kubebuilder.controller","msg":"Starting EventSource","controller":"migcluster-controller","source":"kind source: /, Kind="}
{"level":"info","ts":1565122006.0353415
You can’t perform that action at this time.