dynamichelper

package
v0.0.0-...-a580c8e Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrder

func CreateOrder(i, j *unstructured.Unstructured) bool

CreateOrder is to be used in a sort.Slice() comparison. It is to help make sure that resources are created in an order that causes a reliable startup.

func HashWorkloadConfigs

func HashWorkloadConfigs(resources []runtime.Object) error

HashWorkloadConfigs iterates daemonsets, walks their volumes, and updates their pod templates with annotations that include the hashes of the content for each configmap or secret.

Types

type DynamicHelper

type DynamicHelper interface {
	RefreshAPIResources() error
	CreateOrUpdate(obj *unstructured.Unstructured) error
	Delete(groupKind, namespace, name string) error
	Ensure(o *unstructured.Unstructured) error
	Get(groupKind, namespace, name string) (*unstructured.Unstructured, error)
	List(groupKind, namespace string) (*unstructured.UnstructuredList, error)
}

func New

func New(log *logrus.Entry, restconfig *rest.Config) (DynamicHelper, error)

Directories

Path Synopsis
Code generated for package discovery by go-bindata DO NOT EDIT.
Code generated for package discovery by go-bindata DO NOT EDIT.

Jump to

Keyboard shortcuts

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