Documentation ¶
Index ¶
- Constants
- func CreateClient(kubeconfig *string) (*kubernetes.Clientset, error)
- func CurrentContext(config *api.Config) *api.Context
- func CurrentNamespace(config *api.Config) string
- func CurrentServer(config *api.Config) string
- func FindServiceURL(client *kubernetes.Clientset, namespace string, name string) (string, error)
- func LoadConfig() (*api.Config, *clientcmd.PathOptions, error)
- func Server(config *api.Config, context *api.Context) string
- type ServiceURL
Constants ¶
View Source
const (
DefaultNamespace = "default"
)
View Source
const (
ExposeURLAnnotation = "fabric8.io/exposeUrl"
)
View Source
const (
ServiceJenkins = "jenkins"
)
Variables ¶
This section is empty.
Functions ¶
func CreateClient ¶
func CreateClient(kubeconfig *string) (*kubernetes.Clientset, error)
CreateClient creates a new kubernetes client
func CurrentContext ¶
CurrentContext returns the current context
func CurrentNamespace ¶
CurrentNamespace returns the current namespace in the context
func CurrentServer ¶
CurrentServer returns the current context's server
func FindServiceURL ¶
func LoadConfig ¶
func LoadConfig() (*api.Config, *clientcmd.PathOptions, error)
LoadConfig loads the kubernetes configuration
Types ¶
type ServiceURL ¶
func FindServiceURLs ¶
func FindServiceURLs(client *kubernetes.Clientset, namespace string) ([]ServiceURL, error)
Click to show internal directories.
Click to hide internal directories.