namespace-divergence

command module
v0.0.0-...-e996a35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 15 Imported by: 0

README

Namespace Divergence

Namespace Divergence is a tool that cross-references the namespaces in your Kubernetes cluster with the namespaces directory in the GitHub repository ministryofjustice/cloud-platform-environments. If a divergence is found, it can send a slack message or just print the output to the screen. This way, you can be sure that accidental namespaces are picked up and confirm git is the source of truth.

How to run
go run divergence.go -p <personal_access_token> -kubeconfig <path_to_kubeconfig> -slackApi <OAUTH_token> -channelId <slack_channel_id>

The only flag you have to provide is personal access token. The others can be implied or ignored.

How to test

You can test the command with:

go test -v ./...

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL