Documentation ¶
Overview ¶
Package kubernetes is a generated protocol buffer package.
It is generated from these files:
spec.proto
It has these top-level messages:
UpstreamSpec
Index ¶
- Constants
- func EncodeUpstreamSpec(spec UpstreamSpec) *types.Struct
- func NewEndpointDiscovery(masterUrl, kubeconfigPath string, resyncDuration time.Duration) (endpointdiscovery.Interface, error)
- type Plugin
- type UpstreamSpec
- func (*UpstreamSpec) Descriptor() ([]byte, []int)
- func (this *UpstreamSpec) Equal(that interface{}) bool
- func (m *UpstreamSpec) GetLabels() map[string]string
- func (m *UpstreamSpec) GetServiceName() string
- func (m *UpstreamSpec) GetServiceNamespace() string
- func (m *UpstreamSpec) GetServicePort() int32
- func (*UpstreamSpec) ProtoMessage()
- func (m *UpstreamSpec) Reset()
- func (m *UpstreamSpec) String() string
Constants ¶
View Source
const (
// define Upstream type name
UpstreamTypeKube = "kubernetes"
)
Variables ¶
This section is empty.
Functions ¶
func EncodeUpstreamSpec ¶
func EncodeUpstreamSpec(spec UpstreamSpec) *types.Struct
func NewEndpointDiscovery ¶
Types ¶
type Plugin ¶
type Plugin struct{}
func (*Plugin) GetDependencies ¶
func (p *Plugin) GetDependencies(_ *v1.Config) *plugins.Dependencies
func (*Plugin) ProcessUpstream ¶
func (*Plugin) SetupEndpointDiscovery ¶
type UpstreamSpec ¶
type UpstreamSpec struct { // The name of the Kubernetes Service ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // The namespace where the Service lives ServiceNamespace string `protobuf:"bytes,2,opt,name=service_namespace,json=serviceNamespace,proto3" json:"service_namespace,omitempty"` // The port where the Service is listening. If the service only has one port, this can be left empty ServicePort int32 `protobuf:"varint,3,opt,name=service_port,json=servicePort,proto3" json:"service_port,omitempty"` // Labels allow finer-grained filtering of pods for the Upstream. Gloo will select pods based on their labels if // any are provided here. // (see [Kubernetes labels and selectors](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/) Labels map[string]string `` /* 146-byte string literal not displayed */ }
Upstream Spec for Kubernetes Upstreams Kubernetes Upstreams represent a set of one or more addressable pods for a Kubernetes Service the Gloo Kubernetes Upstream maps to a single service port. Because Kubernetes Services support mulitple ports, Gloo requires that a different upstream be created for each port Kubernetes Upstreams are typically generated automatically by Gloo from the Kubernetes API
func DecodeUpstreamSpec ¶
func DecodeUpstreamSpec(generic v1.UpstreamSpec) (*UpstreamSpec, error)
func (*UpstreamSpec) Descriptor ¶
func (*UpstreamSpec) Descriptor() ([]byte, []int)
func (*UpstreamSpec) Equal ¶
func (this *UpstreamSpec) Equal(that interface{}) bool
func (*UpstreamSpec) GetLabels ¶
func (m *UpstreamSpec) GetLabels() map[string]string
func (*UpstreamSpec) GetServiceName ¶
func (m *UpstreamSpec) GetServiceName() string
func (*UpstreamSpec) GetServiceNamespace ¶
func (m *UpstreamSpec) GetServiceNamespace() string
func (*UpstreamSpec) GetServicePort ¶
func (m *UpstreamSpec) GetServicePort() int32
func (*UpstreamSpec) ProtoMessage ¶
func (*UpstreamSpec) ProtoMessage()
func (*UpstreamSpec) Reset ¶
func (m *UpstreamSpec) Reset()
func (*UpstreamSpec) String ¶
func (m *UpstreamSpec) String() string
Click to show internal directories.
Click to hide internal directories.