Documentation
¶
Index ¶
Constants ¶
View Source
const ( // masterservice filter is used to mutate the ClusterIP and https port of default/kubernetes service // in order to pods on edge nodes can access kube-apiserver directly by inClusterConfig. MasterServiceFilterName = "masterservice" // servicetopology filter is used to reassemble endpointslice in order to make the service traffic // under the topology that defined by service.Annotation["openyurt.io/topologyKeys"] ServiceTopologyFilterName = "servicetopology" // discardcloudservice filter is used to discard cloud service(like loadBalancer service) // on kube-proxy list/watch service request from edge nodes. DiscardCloudServiceFilterName = "discardcloudservice" )
Variables ¶
View Source
var DisabledInCloudMode = []string{DiscardCloudServiceFilterName}
DisabledInCloudMode contains the filters that should be disabled when yurthub is working in cloud mode.
Functions ¶
func NewFilterReadCloser ¶
func NewFilterReadCloser( req *http.Request, rc io.ReadCloser, handler Handler, serializer *serializer.Serializer, ownerName string, stopCh <-chan struct{}) (int, io.ReadCloser, error)
NewFilterReadCloser create an filterReadCloser object
Types ¶
type Approver ¶
type Approver struct {
// contains filtered or unexported fields
}
func NewApprover ¶
type FilterInitializer ¶
type FilterInitializers ¶
type FilterInitializers []FilterInitializer
func (FilterInitializers) Initialize ¶
func (fis FilterInitializers) Initialize(ins Interface) error
type Filters ¶
func NewFilters ¶
func (*Filters) NewFromFilters ¶
func (fs *Filters) NewFromFilters(initializer FilterInitializer) (Interface, error)
type Interface ¶
type Interface interface { Approve(comp, resource, verb string) bool Filter(req *http.Request, rc io.ReadCloser, stopCh <-chan struct{}) (int, io.ReadCloser, error) }
type NodeGetter ¶
Click to show internal directories.
Click to hide internal directories.