Documentation ¶
Index ¶
- type Agnostic
- func (a *Agnostic) AddonManager() *SourcePod
- func (a *Agnostic) Busybox() *SourcePod
- func (a *Agnostic) CloudControllerManagerNotSecured() *SourcePod
- func (a *Agnostic) CloudControllerManagerSecured() *SourcePod
- func (a *Agnostic) DependencyWatchdog() *SourcePod
- func (a *Agnostic) ElasticSearch() *SourcePod
- func (a *Agnostic) EtcdEvents() *SourcePod
- func (a *Agnostic) EtcdMain() *SourcePod
- func (a *Agnostic) External() *Host
- func (a *Agnostic) GardenPrometheus() *Host
- func (a *Agnostic) Grafana() *SourcePod
- func (a *Agnostic) Kibana() *SourcePod
- func (a *Agnostic) KubeAPIServer() *SourcePod
- func (a *Agnostic) KubeControllerManagerNotSecured() *SourcePod
- func (a *Agnostic) KubeControllerManagerSecured() *SourcePod
- func (a *Agnostic) KubeSchedulerNotSecured() *SourcePod
- func (a *Agnostic) KubeSchedulerSecured() *SourcePod
- func (a *Agnostic) KubeStateMetricsSeed() *SourcePod
- func (a *Agnostic) KubeStateMetricsShoot() *SourcePod
- func (a *Agnostic) MachineControllerManager() *SourcePod
- func (a *Agnostic) Prometheus() *SourcePod
- func (a *Agnostic) SeedKubeAPIServer() *Host
- type CloudAware
- type Host
- type HostRule
- type NamespacedSourcePod
- type NamespacedTargetPod
- type Pod
- type PodRule
- type Port
- type Rule
- type RuleBuilder
- func (s *RuleBuilder) AllowHost(allowedHosts ...*Host) *RuleBuilder
- func (s *RuleBuilder) AllowPod(allowedSources ...*SourcePod) *RuleBuilder
- func (s *RuleBuilder) AllowTargetPod(allowTargetPods ...*TargetPod) *RuleBuilder
- func (s *RuleBuilder) Build() Rule
- func (s *RuleBuilder) DenyHost(deniedHosts ...*Host) *RuleBuilder
- func (s *RuleBuilder) DenyPod(deniedPods ...*SourcePod) *RuleBuilder
- func (s *RuleBuilder) DenyTargetPod(deniedTargets ...*TargetPod) *RuleBuilder
- type SharedResources
- type SourcePod
- type TargetPod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agnostic ¶
type Agnostic struct{}
Agnostic contains cloud agnostic settings.
func (*Agnostic) AddonManager ¶
AddonManager points to gardener-resource-manager instance.
func (*Agnostic) CloudControllerManagerNotSecured ¶
CloudControllerManagerNotSecured points to cloud-agnostic cloud-controller-manager running on HTTP port.
func (*Agnostic) CloudControllerManagerSecured ¶
CloudControllerManagerSecured points to cloud-agnostic cloud-controller-manager running on HTTPS port.
func (*Agnostic) DependencyWatchdog ¶
DependencyWatchdog points to dependency-watchdog instance.
func (*Agnostic) ElasticSearch ¶
ElasticSearch points to cloud-agnostic elasticsearch instance.
func (*Agnostic) EtcdEvents ¶
EtcdEvents points to cloud-agnostic etcd-main instance.
func (*Agnostic) GardenPrometheus ¶
GardenPrometheus points the Gardener Prometheus running in the seed cluster.
func (*Agnostic) KubeAPIServer ¶
KubeAPIServer points to cloud-agnostic kube-apiserver.
func (*Agnostic) KubeControllerManagerNotSecured ¶
KubeControllerManagerNotSecured points to cloud-agnostic kube-controller-manager running on HTTP port.
func (*Agnostic) KubeControllerManagerSecured ¶
KubeControllerManagerSecured points to cloud-agnostic kube-controller-manager running on HTTPS port.
func (*Agnostic) KubeSchedulerNotSecured ¶
KubeSchedulerNotSecured points to cloud-agnostic kube-scheduler running on HTTP port.
func (*Agnostic) KubeSchedulerSecured ¶
KubeSchedulerSecured points to cloud-agnostic kube-scheduler running on HTTPS port.
func (*Agnostic) KubeStateMetricsSeed ¶
KubeStateMetricsSeed points to cloud-agnostic kube-state-metrics-seed instance.
func (*Agnostic) KubeStateMetricsShoot ¶
KubeStateMetricsShoot points to cloud-agnostic kube-state-metrics-shoot instance.
func (*Agnostic) MachineControllerManager ¶
MachineControllerManager points to cloud-agnostic machine-controller-manager instance.
func (*Agnostic) Prometheus ¶
Prometheus points to cloud-agnostic prometheus instance.
func (*Agnostic) SeedKubeAPIServer ¶
SeedKubeAPIServer points the Seed Kube APIServer.
type CloudAware ¶
type CloudAware interface { // Rules returns a list of all Rules of the CloudProvider. Rules() []Rule // Sources returns a list of all Sources of the CloudProvider. Sources() []*SourcePod // EgressFromOtherNamespaces returns a list of all TargetPod. EgressFromOtherNamespaces(source *SourcePod) Rule // Provider returns the CloudProvider. Provider() string }
CloudAware contains a Cloud-specific information for Source(s) to Target(s) communication.
type NamespacedSourcePod ¶
NamespacedSourcePod holds namespaced PodInfo.
func NewNamespacedSourcePod ¶
func NewNamespacedSourcePod(sp *SourcePod, namespace string) *NamespacedSourcePod
NewNamespacedSourcePod creates a new NamespacedSourcePod.
type NamespacedTargetPod ¶
NamespacedTargetPod holds namespaced TargetPod.
func NewNamespacedTargetPod ¶
func NewNamespacedTargetPod(tp *TargetPod, namespace string) *NamespacedTargetPod
NewNamespacedTargetPod creates a new NamespacedTargetPod.
type Pod ¶
type Pod struct { Name string Labels labels.Set ShootVersionConstraint string // For which seed clusters this pod is active. SeedClusterConstraints sets.String }
Pod contains the barebone detals about a Pod.
func (*Pod) CheckSeedCluster ¶
CheckSeedCluster checks if Seed cluster is matched by ShootVersionConstraint.
func (*Pod) CheckVersion ¶
CheckVersion checks if shoot version is matched by ShootVersionConstraint.
type RuleBuilder ¶
type RuleBuilder struct {
// contains filtered or unexported fields
}
RuleBuilder is a builder for easy construction of Source.
func NewSource ¶
func NewSource(pi *SourcePod) *RuleBuilder
NewSource creates a new instance of RuleBuilder.
func (*RuleBuilder) AllowHost ¶
func (s *RuleBuilder) AllowHost(allowedHosts ...*Host) *RuleBuilder
AllowHost adds `allowedHosts` as allowed Targets.
func (*RuleBuilder) AllowPod ¶
func (s *RuleBuilder) AllowPod(allowedSources ...*SourcePod) *RuleBuilder
AllowPod adds `allowedSources` as allowed Targets.
func (*RuleBuilder) AllowTargetPod ¶
func (s *RuleBuilder) AllowTargetPod(allowTargetPods ...*TargetPod) *RuleBuilder
AllowTargetPod adds `allowTargetPods` as allowed Targets.
func (*RuleBuilder) Build ¶
func (s *RuleBuilder) Build() Rule
Build returns the completed Source instance.
func (*RuleBuilder) DenyHost ¶
func (s *RuleBuilder) DenyHost(deniedHosts ...*Host) *RuleBuilder
DenyHost adds `deniedHosts` as denied Targets.
func (*RuleBuilder) DenyPod ¶
func (s *RuleBuilder) DenyPod(deniedPods ...*SourcePod) *RuleBuilder
DenyPod adds `deniedPods` as denied Targets.
func (*RuleBuilder) DenyTargetPod ¶
func (s *RuleBuilder) DenyTargetPod(deniedTargets ...*TargetPod) *RuleBuilder
DenyTargetPod adds `deniedTargets` as denied Targets.
type SharedResources ¶
type SharedResources struct {}
SharedResources are shared between Ginkgo Nodes.
type SourcePod ¶
SourcePod holds the data about pods in the shoot namespace and their services.
func (*SourcePod) AsTargetPods ¶
AsTargetPods returns a list of TargetPods for each Port. Returned slice is not deep copied!