Documentation
¶
Index ¶
- func New(cluster *lang.Cluster, cfg config.Plugins) (plugin.ClusterPlugin, error)
- type ClusterConfig
- type Plugin
- func (plugin *Plugin) AddEndpointsFromService(service *api.Service, endpoints map[string]string)
- func (plugin *Plugin) Cleanup() error
- func (plugin *Plugin) EnsureNamespace(client kubernetes.Interface, namespace string) error
- func (plugin *Plugin) Init() error
- func (plugin *Plugin) NewClient() (kubernetes.Interface, error)
- func (plugin *Plugin) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClusterConfig ¶
type ClusterConfig struct {
Namespace string `yaml:",omitempty"`
Local bool `yaml:",omitempty"`
Context string `yaml:",omitempty"`
KubeConfig interface{} `yaml:",omitempty"` // it's just a kubeconfig, we don't need to parse it
}
ClusterConfig represents Kubernetes cluster plugin configuration
type Plugin ¶
type Plugin struct {
Cluster *lang.Cluster
RestConfig *rest.Config
ClientConfig clientcmd.ClientConfig
Namespace string
ExternalAddress string
// contains filtered or unexported fields
}
Plugin represents Kubernetes cluster plugin
func (*Plugin) AddEndpointsFromService ¶
AddEndpointsFromService searches for the available endpoints in specified service and writes them into provided map
func (*Plugin) Cleanup ¶
Cleanup intended to run cleanup operations for plugin, but it's not used in Kubernetes cluster plugin
func (*Plugin) EnsureNamespace ¶
func (plugin *Plugin) EnsureNamespace(client kubernetes.Interface, namespace string) error
EnsureNamespace ensures configured Kubernetes namespace
func (*Plugin) Init ¶
Init parses Kubernetes cluster config and retrieves external address for Kubernetes cluster
Click to show internal directories.
Click to hide internal directories.