Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateK8SRestClient ¶
func CreateK8SRestClient(kubeconfig, apiPath, group, version string) (*rest.RESTClient, error)
CreateK8SRestClient returns the kubernetes client for RESTful API calls
Types ¶
type DestinationRuleResult ¶
type DestinationRuleResult struct {
Items []MinDestinationRule
}
DestinationRuleResult is the list of MinDestinationRules
type MinDestinationRule ¶
type MinDestinationRule struct { Metadata struct { Name string `json:"name"` Namespace string `json:"namespace"` } `json:"metadata"` Spec struct { Host string `json:"host"` Subsets []struct { Labels map[string]string `json:"labels"` Name string `json:"name"` } `json:"subsets"` } `json:"spec"` }
MinDestinationRule is the minimum structure we need to get subsets
Click to show internal directories.
Click to hide internal directories.