rules

package
v0.0.0-...-72d948e Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentRuleReplicasMinimum

type DeploymentRuleReplicasMinimum struct {
	Name            string                   `yaml:"name"`
	MinimumReplicas int32                    `yaml:"minimum_replicas"`
	Filter          filters.DeploymentFilter `yaml:"filter"`
}

func (DeploymentRuleReplicasMinimum) FindNonConformingDeployment

func (deploymentRuleReplicasMinimum DeploymentRuleReplicasMinimum) FindNonConformingDeployment(deployments []appsv1.Deployment) DeploymentRuleResult

func (*DeploymentRuleReplicasMinimum) UnmarshalYAML

func (deploymentRuleReplicasMinimum *DeploymentRuleReplicasMinimum) UnmarshalYAML(unmarshal func(interface{}) error) error

type DeploymentRuleResult

type DeploymentRuleResult struct {
	Deployments []appsv1.Deployment
	Reason      string
	RuleName    string
}

type PodRuleLabelsFilledIn

type PodRuleLabelsFilledIn struct {
	Name   string            `yaml:"name"`
	Labels []string          `yaml:"labels"`
	Filter filters.PodFilter `yaml:"filter"`
}

func (PodRuleLabelsFilledIn) FindNonConformingPods

func (r PodRuleLabelsFilledIn) FindNonConformingPods(pods []v1.Pod) PodRuleResult

func (*PodRuleLabelsFilledIn) UnmarshalYAML

func (r *PodRuleLabelsFilledIn) UnmarshalYAML(unmarshal func(interface{}) error) error

type PodRuleLimitsFilledIn

type PodRuleLimitsFilledIn struct {
	Name   string            `yaml:"name"`
	Filter filters.PodFilter `yaml:"filter"`
}

func (PodRuleLimitsFilledIn) FindNonConformingPods

func (r PodRuleLimitsFilledIn) FindNonConformingPods(pods []v1.Pod) PodRuleResult

func (*PodRuleLimitsFilledIn) UnmarshalYAML

func (r *PodRuleLimitsFilledIn) UnmarshalYAML(unmarshal func(interface{}) error) error

type PodRuleRequestsFilledIn

type PodRuleRequestsFilledIn struct {
	Name   string            `yaml:"name"`
	Filter filters.PodFilter `yaml:"filter"`
}

func (PodRuleRequestsFilledIn) FindNonConformingPods

func (r PodRuleRequestsFilledIn) FindNonConformingPods(pods []v1.Pod) PodRuleResult

func (*PodRuleRequestsFilledIn) UnmarshalYAML

func (r *PodRuleRequestsFilledIn) UnmarshalYAML(unmarshal func(interface{}) error) error

type PodRuleResult

type PodRuleResult struct {
	Pods     []apiv1.Pod
	Reason   string
	RuleName string
}

type StatefulSetRuleReplicasMinimum

type StatefulSetRuleReplicasMinimum struct {
	Name            string                    `yaml:"name"`
	MinimumReplicas int32                     `yaml:"minimum_replicas"`
	Filter          filters.StatefulsetFilter `yaml:"filter"`
}

func (StatefulSetRuleReplicasMinimum) FindNonConformingStatefulSet

func (statefulSetRuleReplicasMinimum StatefulSetRuleReplicasMinimum) FindNonConformingStatefulSet(statefulSets []appsv1.StatefulSet) StatefulSetRuleResult

func (*StatefulSetRuleReplicasMinimum) UnmarshalYAML

func (statefulSetRuleReplicasMinimum *StatefulSetRuleReplicasMinimum) UnmarshalYAML(unmarshal func(interface{}) error) error

type StatefulSetRuleResult

type StatefulSetRuleResult struct {
	StatefulSets []appsv1.StatefulSet
	Reason       string
	RuleName     string
}

Jump to

Keyboard shortcuts

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