Skip to content

Commit

Permalink
Use Mattermost tokens instead of user/password plus permission fix (#5)
Browse files Browse the repository at this point in the history
* Use Mattermost tokens instead of user/password

* Fix permissions for accessing replicasets and deployments
  • Loading branch information
jwilander authored and lnsp committed Nov 15, 2019
1 parent 61a5cc7 commit 5967851
Show file tree
Hide file tree
Showing 5 changed files with 327 additions and 36 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@ This Kubernetes controller informs you when a Kubernetes Pod repeatedly dies (`C
```yaml
apiVersion: v1
data:
token: <bot-token>
channel: <channel-name>
password: <your-user-password>
team: <team-name>
url: <your-mattermost-url>
user: <your-user>
kind: ConfigMap
metadata:
name: mattermost-informer-cfg
```
You should supply the user credentials of the bot, server URL, team and channel.
You should supply the [token of the bot](https://docs.mattermost.com/developer/bot-accounts.html) (or a [personal access token of a user](https://docs.mattermost.com/developer/personal-access-tokens.html)), server URL, team and channel.
##### If you use Slack, use
```yaml
Expand Down
20 changes: 2 additions & 18 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,14 @@ module github.com/lnsp/k8s-crash-informer
go 1.12

require (
github.com/Masterminds/squirrel v1.1.0 // indirect
github.com/blang/semver v3.5.1+incompatible // indirect
github.com/dyatlov/go-opengraph v0.0.0-20180429202543-816b6608b3c8 // indirect
github.com/go-gorp/gorp v2.0.0+incompatible // indirect
github.com/go-ldap/ldap v3.0.3+incompatible // indirect
github.com/go-redis/redis v6.15.5+incompatible // indirect
github.com/go-sql-driver/mysql v1.4.1 // indirect
github.com/kelseyhightower/envconfig v1.4.0
github.com/lib/pq v1.2.0 // indirect
github.com/mattermost/gorp v2.0.0+incompatible // indirect
github.com/mattermost/mattermost-server v5.11.1+incompatible
github.com/mattn/go-sqlite3 v1.11.0 // indirect
github.com/mattermost/mattermost-server v0.0.0-20191031155836-533c7bb3e584
github.com/minio/minio-go v0.0.0-20190422205105-a8704b60278f // indirect
github.com/nicksnyder/go-i18n v1.10.0 // indirect
github.com/nlopes/slack v0.6.0
github.com/pborman/uuid v1.2.0 // indirect
github.com/pelletier/go-toml v1.4.0 // indirect
github.com/pkg/errors v0.8.1
github.com/stretchr/objx v0.2.0 // indirect
github.com/ziutek/mymysql v1.5.4 // indirect
go.uber.org/atomic v1.4.0 // indirect
go.uber.org/multierr v1.1.0 // indirect
go.uber.org/zap v1.10.0 // indirect
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
k8s.io/api v0.0.0-20190831074750-7364b6bdad65
k8s.io/apimachinery v0.0.0-20190831074630-461753078381
k8s.io/client-go v0.0.0-20190831074946-3fe2abece89e
Expand Down
Loading

0 comments on commit 5967851

Please sign in to comment.