shared

package module
v0.0.0-...-b04b320 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 13 Imported by: 0

README

kubernetes-alerting-lambda-sample

Repository for our engineering blogpost

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(key, defaultValue string) string

GetEnv gets env or default value

func GetKubeConfig

func GetKubeConfig(clusterName string, region string) (*rest.Config, error)

GetKubeConfig returns kube client config

func LogInit

func LogInit()

LogInit initialize log format and level

Types

type RepairRequest

type RepairRequest struct {
	Namespace string `json:"namespace,omitempty"` // e.g. default
	Name      string `json:"name,omitempty"`      // e.g. deployment name
	Type      string `json:"type,omitempty"`      // deployment, statefulset etc.
	Replicas  int32  `json:"replicas,omitempty"`
}

RepairRequest definition

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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