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.