scuttle

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Copyright (C) 2022 Poseidon Labs Copyright (C) 2022 Dalton Hubble

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

Copyright (C) 2022 Poseidon Labs Copyright (C) 2022 Dalton Hubble

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger         *logrus.Logger
	Platform       string
	ShouldUncordon bool
	ShouldDrain    bool
	ShouldDelete   bool
}

Config configures a Scuttle

type Scuttle

type Scuttle struct {
	// contains filtered or unexported fields
}

Scuttle watches for termination notices and performs Kubelet teardown actions.

func New

func New(config *Config) (*Scuttle, error)

New creates a new Scuttle.

func (*Scuttle) Run

func (w *Scuttle) Run(ctx context.Context) error

Run runs the spot termination watch loop.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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