existing

package
v0.0.0-...-8eb8255 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Overview

Package existing handles the checking of Graffiti rules against already existing objects within Kubernetes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRuleAgainstExistingObjects

func ApplyRuleAgainstExistingObjects(rule config.Rule)

ApplyRuleAgainstExistingObjects checks a single graffiti rule against existing kubernetes objects

func ApplyRulesAgainstExistingObjects

func ApplyRulesAgainstExistingObjects(rules []config.Rule)

ApplyRulesAgainstExistingObjects interates over the graffiti rules and targets, apply each rule to existing kubernetes objects.

func InitKubeClients

func InitKubeClients(rest *rest.Config) error

InitKubeClients sets up the package for working with kubernetes api and discovers and caches known api groups/versions and resource types

func NewNamespaceCache

func NewNamespaceCache(rest *rest.Config) (namespaceCache, error)

NewNamespaceCache creates client-go cache.Store and Reflector which watches and updates namespaces when they change.

Types

This section is empty.

Jump to

Keyboard shortcuts

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