{"id":26183664,"url":"https://github.com/outtherelabs/openshift-slack-notifications","last_synced_at":"2025-10-13T17:38:00.277Z","repository":{"id":101531348,"uuid":"86397078","full_name":"OutThereLabs/openshift-slack-notifications","owner":"OutThereLabs","description":"OpenShift slack notifications","archived":false,"fork":false,"pushed_at":"2018-04-19T08:32:32.000Z","size":39,"stargazers_count":12,"open_issues_count":1,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-12T18:40:33.047Z","etag":null,"topics":["kubernetes","openshift","ops","slack-bot"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OutThereLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-03-28T00:25:59.000Z","updated_at":"2023-12-21T16:06:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c0c8429-ee6c-434b-bd81-538a92f5382f","html_url":"https://github.com/OutThereLabs/openshift-slack-notifications","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OutThereLabs/openshift-slack-notifications","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutThereLabs%2Fopenshift-slack-notifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutThereLabs%2Fopenshift-slack-notifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutThereLabs%2Fopenshift-slack-notifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutThereLabs%2Fopenshift-slack-notifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OutThereLabs","download_url":"https://codeload.github.com/OutThereLabs/openshift-slack-notifications/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OutThereLabs%2Fopenshift-slack-notifications/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016369,"owners_count":26085828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kubernetes","openshift","ops","slack-bot"],"created_at":"2025-03-11T22:48:36.284Z","updated_at":"2025-10-13T17:38:00.258Z","avatar_url":"https://github.com/OutThereLabs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenShift Slack Notifications\n\nA project to send OpenShift error messages to a slack channel of your choice.\n\n## Cluster Deployment\n\nFirst create a [Slack Incoming Webhook](https://my.slack.com/services/new/incoming-webhook).\n\nThen deploy this bot to OpenShift with permissions via:\n\n```shell\n$ oc adm policy add-cluster-role-to-user cluster-reader system:serviceaccount:\u003ccurrent-project-here\u003e:default --as=system:admin\n$ oc new-app -f https://raw.githubusercontent.com/OutThereLabs/openshift-slack-notifications/master/template.yaml \\\n             -p SLACK_WEBHOOK_URL=https://hooks.slack.com/services/\u003cwebhook-specifics-here\u003e \\\n             -p OPENSHIFT_CONSOLE_URL=https://\u003copenshift-host-here\u003e:8443/console\n$ oc start-build openshift-slack-notifications\n```\n\nOnce the app is built and deployed, it will start sending notifications to slack when there are `Warning` type events.\n\n![Slackbot Message](images/slack-bot-message.png)\n\n## Local Development\n\n### Cluster Requirements\n\nFirst you need a running minishift cluster. This can be installed via homebrew:\n\n```shell\n$ brew install socat openshift-cli docker-machine-driver-xhyve\n$ brew tap caskroom/versions\n$ brew cask install minishift-beta\n```\n\nThe xhyve hypervisor requires superuser privileges. To enable, execute:\n\n```shell\n$ sudo chown root:wheel /usr/local/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve\n$ sudo chmod u+s /usr/local/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve\n```\n\nThen start the cluster with:\n\n```shell\n$ minishift start --memory 4048\n```\n\n### App Requirements\n\nFirst add the privileges to mount volumes and read cluster state to your service account:\n\n```shell\n$ oc login -u system:admin\n$ oc adm policy add-scc-to-user hostmount-anyuid system:serviceaccount:myproject:default --as=system:admin\n$ oc adm policy add-cluster-role-to-user cluster-reader system:serviceaccount:myproject:default --as=system:admin\n```\n\nThen create your dev environment via the provided template\n\n```shell\n$ oc process -f debug-template.yaml -v SOURCE_PATH=\"${PWD}\" SLACK_WEBHOOK_URL=\u003cslack-webhook-url-here\u003e OPENSHIFT_CONSOLE_URL=https://\u003ccluster-ip-here\u003e:8443/console | oc create -f -\n$ oc start-build go\n```\n\n### Debugging the app\n\nTo run a local copy, start a debug pod\n\n```shell\n$ oc debug dc/go-dev\n$ cd go/github.com/outtherelabs/openshift-slack-notifications \u0026\u0026 glide up\n$ go run main.go\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fouttherelabs%2Fopenshift-slack-notifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fouttherelabs%2Fopenshift-slack-notifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fouttherelabs%2Fopenshift-slack-notifications/lists"}