Documentation ¶
Index ¶
- Constants
- func IsMapPresent(sourceMap map[string]string, subsetMap map[string]string) (bool, error)
- func StartWatcher(configFile string, ownerFile string, loggerIn *zap.Logger) error
- func TestGeneric(configFile string, loggerIn *zap.Logger) error
- func UpdateStatus(ownerFile string, status string) error
- func WatchBasic(conditions []BasicConfigurationCondition, matchConditions chan Condition, ...)
- func WatchPods(conditions []PodCondition, matchConditions chan Condition, ...)
- type BasicConfiguration
- type BasicConfigurationCondition
- type BasicK8s
- type Condition
- type ExitScenario
- type ExitScenarioState
- type PatchObject
- type PodCondition
- type SelectorName
- type WatcherConfig
Constants ¶
View Source
const ( StatusCompleted string = "Satisfied" StatusTimeout string = "Timeout" )
Variables ¶
This section is empty.
Functions ¶
func IsMapPresent ¶
func StartWatcher ¶
func UpdateStatus ¶
func WatchBasic ¶
func WatchBasic(conditions []BasicConfigurationCondition, matchConditions chan Condition, stopper chan struct{}, informer cache.SharedIndexInformer)
func WatchPods ¶
func WatchPods(conditions []PodCondition, matchConditions chan Condition, stopper chan struct{})
Types ¶
type BasicConfiguration ¶
type ExitScenario ¶
type ExitScenario struct { Exit int `yaml:"exit"` Timeout int `yaml:"timeout"` Pods []PodCondition `yaml:"pods"` ConfigMaps []BasicConfigurationCondition `yaml:"configmaps"` Secrets []BasicConfigurationCondition `yaml:"secrets"` Services []BasicConfigurationCondition `yaml:"services"` }
type ExitScenarioState ¶
type PatchObject ¶
type PodCondition ¶
type SelectorName ¶
type SelectorName string
const ( POD SelectorName = "Pod" JOB SelectorName = "Job" CONFIGMAP SelectorName = "ConfigMap" SECRET SelectorName = "Secret" UNKOWN SelectorName = "" )
func GetSelector ¶
func GetSelector(gvk schema.GroupVersionKind) SelectorName
func (SelectorName) GetGVK ¶
func (sn SelectorName) GetGVK() *schema.GroupVersionKind
Click to show internal directories.
Click to hide internal directories.