Documentation
¶
Index ¶
- Constants
- type Config
- type Inject
- type InjectAffinity
- type InjectContainer
- type InjectContainerPort
- type InjectContainerResourceRequirements
- type InjectLabelSelector
- type InjectMatchExpression
- type InjectNodeAffinity
- type InjectNodeSelectorTerm
- type InjectRequiredDuringSchedulingIgnoredDuringExecution
- type InjectToleration
- type InjectVolume
- type InjectVolumeConfigMap
- type InjectVolumeKeyToPath
- type InjectVolumeMount
- type K8S
- type Log
- type Server
Constants ¶
View Source
const (
DefaultMaxIterations = 16
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Inject ¶
type Inject struct { Name string `yaml:"name,omitempty"` MaxIterations int `yaml:"maxIterations,omitempty"` LabelSelector *InjectLabelSelector `yaml:"labelSelector,omitempty"` NamespaceSelector *InjectLabelSelector `yaml:"namespaceSelector,omitempty"` Labels map[string]string `yaml:"labels,omitempty"` Affinity *InjectAffinity `yaml:"affinity,omitempty"` Containers []InjectContainer `yaml:"containers,omitempty"` Tolerations []InjectToleration `yaml:"tolerations,omitempty"` VolumeMounts []InjectVolumeMount `yaml:"volumeMounts,omitempty"` Volumes []InjectVolume `yaml:"volumes,omitempty"` }
func (Inject) Fingerprint ¶
type InjectAffinity ¶ added in v0.0.14
type InjectAffinity struct {
NodeAffinity *InjectNodeAffinity `yaml:"nodeAffinity,omitempty"`
}
type InjectContainer ¶
type InjectContainer struct { Name string `yaml:"name,omitempty"` Image string `yaml:"image,omitempty"` Command []string `yaml:"command,omitempty"` Args []string `yaml:"args,omitempty"` Ports []InjectContainerPort `yaml:"ports,omitempty"` Resources *InjectContainerResourceRequirements `yaml:"resources,omitempty"` VolumeMounts []InjectVolumeMount `yaml:"volumeMounts,omitempty"` }
type InjectContainerPort ¶
type InjectContainerResourceRequirements ¶
type InjectContainerResourceRequirements struct { Limits map[string]string `yaml:"limits,omitempty"` Requests map[string]string `yaml:"requests,omitempty"` }
func (InjectContainerResourceRequirements) ResourceRequirements ¶
func (crr InjectContainerResourceRequirements) ResourceRequirements() (*core_v1.ResourceRequirements, error)
type InjectLabelSelector ¶
type InjectLabelSelector struct { MatchLabels map[string]string `yaml:"matchLabels,omitempty"` MatchExpressions []InjectMatchExpression `yaml:"matchExpressions,omitempty"` }
func (InjectLabelSelector) LabelSelector ¶
func (ls InjectLabelSelector) LabelSelector() (*meta_v1.LabelSelector, error)
type InjectMatchExpression ¶
type InjectNodeAffinity ¶ added in v0.0.14
type InjectNodeAffinity struct {
RequiredDuringSchedulingIgnoredDuringExecution *InjectRequiredDuringSchedulingIgnoredDuringExecution `yaml:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"`
}
func (InjectNodeAffinity) NodeAffinity ¶ added in v0.0.14
func (na InjectNodeAffinity) NodeAffinity() (*core_v1.NodeAffinity, error)
type InjectNodeSelectorTerm ¶ added in v0.0.14
type InjectNodeSelectorTerm struct { MatchExpressions []InjectMatchExpression `yaml:"matchExpressions,omitempty"` MatchFields []InjectMatchExpression `yaml:"matchFields,omitempty"` }
func (InjectNodeSelectorTerm) NodeSelectorTerm ¶ added in v0.0.14
func (nst InjectNodeSelectorTerm) NodeSelectorTerm() (*core_v1.NodeSelectorTerm, error)
type InjectRequiredDuringSchedulingIgnoredDuringExecution ¶ added in v0.0.14
type InjectRequiredDuringSchedulingIgnoredDuringExecution struct {
NodeSelectorTerms []InjectNodeSelectorTerm `yaml:"nodeSelectorTerms"`
}
type InjectToleration ¶ added in v0.0.14
type InjectToleration struct { Key string `yaml:"key,omitempty"` Operator string `yaml:"operator,omitempty"` Value string `yaml:"value,omitempty"` Effect string `yaml:"effect,omitempty"` TolerationSeconds *int64 `yaml:"tolerationSeconds,omitempty"` }
func (InjectToleration) Toleration ¶ added in v0.0.14
func (t InjectToleration) Toleration() (*core_v1.Toleration, error)
type InjectVolume ¶
type InjectVolume struct { Name string `yaml:"name,omitempty"` ConfigMap *InjectVolumeConfigMap `yaml:"configMap,omitempty"` }
type InjectVolumeConfigMap ¶
type InjectVolumeConfigMap struct { Name string `yaml:"name,omitempty"` DefaultMode *int32 `yaml:"defaultMode,omitempty"` Items []InjectVolumeKeyToPath `yaml:"items,omitempty"` Optional *bool `yaml:"optional,omitempty"` }
func (InjectVolumeConfigMap) ConfigMapVolumeSource ¶
func (vcm InjectVolumeConfigMap) ConfigMapVolumeSource() (*core_v1.ConfigMapVolumeSource, error)
type InjectVolumeKeyToPath ¶
type InjectVolumeMount ¶
type InjectVolumeMount struct { Name string `yaml:"name"` MountPath string `yaml:"mountPath"` SubPath string `yaml:"subPath,omitempty"` SubPathExpr string `yaml:"subPathExpr,omitempty"` ReadOnly bool `yaml:"readOnly,omitempty"` RecursiveReadOnly *string `yaml:"recursiveReadOnly,omitempty"` MountPropagation *string `yaml:"mountPropagation,omitempty"` }
func (InjectVolumeMount) VolumeMount ¶
func (vm InjectVolumeMount) VolumeMount() (*core_v1.VolumeMount, error)
Source Files
¶
- config.go
- defaults.go
- inject.go
- inject_affinity.go
- inject_container.go
- inject_container_port.go
- inject_container_resource_requirements.go
- inject_label_selector.go
- inject_match_expression.go
- inject_node_affinity.go
- inject_node_selector_term.go
- inject_required_during_scheduling_ignored_during_execution.go
- inject_toleration.go
- inject_volume.go
- inject_volume_config_map.go
- inject_volume_key_to_path.go
- inject_volume_mount.go
- k8s.go
- log.go
- server.go
Click to show internal directories.
Click to hide internal directories.