internal

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package internal holds the internal workings for deleting orphaned GKE clusters from Continuous Integration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReapNamespaces added in v0.7.0

func ReapNamespaces(params *Params) error

ReapNamespaces scans for orphaned namespaces and deletes them.

func Serve

func Serve(conn net.Listener, params *Params) error

Serve brings up an HTTP server and waits for a request. It serves 3 endpoints: /livenessz - for liveness/readiness check /reap - to delete the clusters /close - to shutdown the application. The intention of this serving mode is so that this tool can run from Google Cloud Run.

Types

type Params

type Params struct {
	Age       time.Duration
	Label     string
	ProjectID string
	Location  string
}

Params for deleting a cluster.

Jump to

Keyboard shortcuts

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