cloud-platform-ingress-patch

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

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 15 Imported by: 0

README

Prototype Ingress Patcher

repo standards badge

ARCHIVED No longer required.

This repository contains the Go code that performs the following:

  • Accepts a list of ministryofjustice repositories.
  • For each repository, it checks if the repository has an kubernetes-deploy resource (as defined in the prototype creation).
  • If so, it will patch the ingress resource to add the appropriate annotations ready for the new ingress API.
  • If changes are made, it will create a pull request with the changes.

Usage

The prototype ingress patcher is a Go application that can be run locally or in a container.

Running locally

To run the application locally, you will need to have Go installed on your machine. You can find instructions on how to do this here.

Once Go is installed, you can run the application by running the following command:

go run patch.go -u <github-username> -p <github-person-access-token>

If you want to change the list of repositories that the application will run against, you can do so by editing the repositories variable in the patch.go file.

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