Skip to content

Instantly share code, notes, and snippets.

View dofinn's full-sized avatar

Dominic Finn dofinn

View GitHub Profile
@dofinn
dofinn / osd_test_owners.md
Last active January 27, 2022 05:43
osde2e test owners
pkg/common/alert/alert.go:// RegisterGinkgoAlert will retrieve the ginkgo test info and register an alert given
pkg/common/alert/alert.go:func RegisterGinkgoAlert(test, team, contact, slack, email string, threshold int) {
pkg/e2e/state/alerts.go:	alert.RegisterGinkgoAlert(clusterStateTestName, "SD-CICD", "Michael Wilson", "sd-cicd-alerts", "sd-cicd@redhat.com", 4)
pkg/e2e/openshift/app_builds.go:	alert.RegisterGinkgoAlert(appBuildsTestName, "SD-CICD", "Jeffrey Sica", "sd-cicd-alerts", "sd-cicd@redhat.com", 4)
pkg/e2e/openshift/images.go:	alert.RegisterGinkgoAlert(imageRegistryTestName, "SD-CICD", "Jeffrey Sica", "sd-cicd-alerts", "sd-cicd@redhat.com", 4)
pkg/e2e/openshift/images.go:	alert.RegisterGinkgoAlert(imageEcosystemTestName, "SD-CICD", "Jeffrey Sica", "sd-cicd-alerts", "sd-cicd@redhat.com", 4)
pkg/e2e/openshift/conformance.go:	alert.RegisterGinkgoAlert(conformanceK8sTestName, "SD-CICD", "Jeffrey Sica", "sd-cicd-alerts", "sd-cicd@redhat.com", 4)
pkg/e2e/openshift/conformance.go:	alert.RegisterGinkgo
@dofinn
dofinn / muodev.sh
Last active July 23, 2021 13:43
Things I do every time Im deving MUO
#!/bin/bash
set -e
NAMESPACE=openshift-managed-upgrade-operator
OPERATOR=managed-upgrade-operator
# Set replicas to 0
oc -n ${NAMESPACE} scale deployment ${OPERATOR} --replicas=0
@dofinn
dofinn / muo_nodedrainsetup.sh
Last active February 26, 2021 13:24
Script for node drain dev
#!/bin/bash
# setup test app from e2e
oc new-project guestbook
# pull guestbook from e2e
curl https://raw.githubusercontent.com/openshift/osde2e/main/assets/workloads/e2e/guestbook/frontend-deployment.yaml | oc apply -f -
curl https://raw.githubusercontent.com/openshift/osde2e/main/assets/workloads/e2e/guestbook/frontend-service.yaml | oc apply -f -
curl https://raw.githubusercontent.com/openshift/osde2e/main/assets/workloads/e2e/guestbook/redis-master-deployment.yaml | oc apply -f -
curl https://raw.githubusercontent.com/openshift/osde2e/main/assets/workloads/e2e/guestbook/redis-master-service.yaml | oc apply -f -
@dofinn
dofinn / ocmclusterstate.sh
Last active June 26, 2020 08:15
Get state of target cluster to trigger reminders of action.
#!/bin/bash
clusterIdentifier=$1
OCM=~/go/bin/ocm
/usr/local/bin/ocm-stg-login
clusterInfo=$(${OCM} cluster list --managed | grep ${clusterIdentifier})
clusterId=$(echo ${clusterInfo} | awk '{print $1}')
clusterName=$(echo ${clusterInfo} | awk '{print $2}')