https://github.com/pantheon-systems/pubsub-cleaner
Clean up subscriptions in GCE PubSub
https://github.com/pantheon-systems/pubsub-cleaner
gce go kubernetes platfrastructure pubsub sig-golang sig-tools
Last synced: 5 months ago
JSON representation
Clean up subscriptions in GCE PubSub
- Host: GitHub
- URL: https://github.com/pantheon-systems/pubsub-cleaner
- Owner: pantheon-systems
- License: apache-2.0
- Archived: true
- Created: 2016-06-15T04:40:54.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-03-29T21:08:11.000Z (about 4 years ago)
- Last Synced: 2025-09-16T19:35:16.178Z (9 months ago)
- Topics: gce, go, kubernetes, platfrastructure, pubsub, sig-golang, sig-tools
- Language: Go
- Size: 13.7 KB
- Stars: 0
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PubSub Cleaner
--------------
[](https://pantheon.io/docs/oss-support-levels#unsupported)
Helps you clean up subscriptions on google PubSub
Installing
==========
Use `go get` to install
```
go get -u github.com/pantheon-systems/pubsub-cleaner
```
Running
=======
Clean out subscriptions on a topic:
```
pubsub-cleaner topic sometopic --project myproject --keep subname --no-op
```
- `--project` is the GCE project.
- `--keep` is a string match on subscriber names that you want to keep.
- `--no-op` won't actually delete anything, just output what would be deleted
Authentication
==============
This tool relies on Google Application Default Credentials, and honors the environment variables used by that.
read more here: https://developers.google.com/identity/protocols/application-default-credentials
Help
====
The program supports the standard `-h` and `--help` flags